robot

package
v0.0.0-...-2692626 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OnEventDefault

func OnEventDefault(v interface{}) error

func OnEventEtcd

func OnEventEtcd(key string, value string) error

OnEventEtcd etcd 处理函数

Types

type Bus

type Bus struct {
}

Bus 总线

func (*Bus) OnEventBus

func (p *Bus) OnEventBus(v interface{}) error

OnEventBus 处理事件-总线

func (*Bus) OnEventEtcd

func (p *Bus) OnEventEtcd(key string, value string) error

OnEventEtcd 处理事件-etcd

type Gate

type Gate struct {
	IP   string `json:"ip"`
	Port uint16 `json:"port"`
}

type Robot

type Robot struct {
	*pkgserver.Normal
	// contains filtered or unexported fields
}

func NewRobot

func NewRobot(normal *pkgserver.Normal) *Robot

func (*Robot) OnPreStop

func (p *Robot) OnPreStop(ctx context.Context) (err error)

func (*Robot) OnStart

func (p *Robot) OnStart(ctx context.Context) (err error)

type SubBenchMgr

type SubBenchMgr struct {
	Gate Gate `json:"gate"`
}

func (*SubBenchMgr) Parse

func (p *SubBenchMgr) Parse(pathFile string) error

Directories

Path Synopsis
Package config 逻辑配置
Package config 逻辑配置

Jump to

Keyboard shortcuts

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