infoc

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ClientWeb ...
	ClientWeb     = "web"
	ClientIphone  = "iphone"
	ClientIpad    = "ipad"
	ClientAndroid = "android"

	ItemTypeAv       = "av"
	ItemTypeBangumi  = "bangumi"
	ItemTypeLive     = "live"
	ItemTypeTopic    = "topic"
	ItemTypeRank     = "rank"
	ItemTypeActivity = "activity"
	ItemTypeTag      = "tag"
	ItemTypeAD       = "ad"
	ItemTypeLV       = "lv"

	ActionClick     = "click"
	ActionPlay      = "play"
	ActionFav       = "fav"
	ActionCoin      = "coin"
	ActionDM        = "dm"
	ActionToView    = "toview"
	ActionShare     = "share"
	ActionSpace     = "space"
	Actionfollow    = "follow"
	ActionHeartbeat = "heartbeat"
	ActionAnswer    = "answer"
)
View Source
var (

	// ErrFull error chan buffer full.
	ErrFull = errors.New("infoc: chan buffer full")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	TaskID string
	// udp or tcp
	Proto        string
	Addr         string
	ChanSize     int
	DialTimeout  xtime.Duration
	WriteTimeout xtime.Duration
}

Config is infoc config.

type Infoc

type Infoc struct {
	// contains filtered or unexported fields
}

Infoc infoc struct.

func New

func New(c *Config) (i *Infoc)

New new infoc logger.

func (*Infoc) Close

func (i *Infoc) Close() error

Close close the connection.

func (*Infoc) Info

func (i *Infoc) Info(args ...interface{}) (err error)

Info record log to file.

func (*Infoc) Infov

func (i *Infoc) Infov(ctx context.Context, args ...interface{}) (err error)

Infov support filter mirror request

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL