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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TaskID string
	// udp or tcp
	Proto string
	Addr  string
	// reporter
	ReporterAddr string
}

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 infoc2 logger.

func (*Infoc) Close

func (i *Infoc) Close()

Close close resource.

func (*Infoc) Flush

func (i *Infoc) Flush()

Flush flush reporter count.

func (*Infoc) Rows

func (i *Infoc) Rows(rows int64)

Rows the affected by binlog enent.

func (*Infoc) Send

func (i *Infoc) Send(ctx context.Context, key string, v interface{}) (err error)

Send send message.

Jump to

Keyboard shortcuts

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