reporter

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

README

omo-mod-reporter

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Test_RunReporter

func Test_RunReporter(_t *testing.T)

Types

type Report

type Report struct {
	Conn      *net.UDPConn
	Addr      *net.UDPAddr
	Processor func([]byte, interface{}) ([]byte, error)
	Content   []byte //接收的内容
	Comment   []byte //发送的内容
}

type Reporter

type Reporter struct {
	Conn *net.UDPConn
	// contains filtered or unexported fields
}

func NewReporter

func NewReporter() (*Reporter, error)

func (*Reporter) Run

func (this *Reporter) Run(_proc string, _processor func([]byte, interface{}) ([]byte, error))

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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