Documentation ¶
Index ¶
- Variables
- func AddTagFilter(tag string)
- func Call(source, destination uint64, msgName string, msg []byte) (respSession, respSource uint64, respName string, respData []byte, err error)
- func Debugf(tag, format string, args ...any)
- func DelTagFilter(tag string)
- func Errorf(tag, format string, args ...any)
- func Fatalf(tag, format string, args ...any)
- func Infof(tag, format string, args ...any)
- func Init(dotenv string)
- func KillService(serviceID uint64)
- func ListService() (res map[string][]uint64)
- func LogServiceCallback(callback port.LogServiceCallBack)
- func NewCommunicator[T any](ctx context.Context, host network.ICommHost[T]) *network.Communicator[T]
- func NewService(instance IService) error
- func Panicf(tag, format string, args ...any)
- func QueryService(srvName string) (list []uint64)
- func ResetFilter()
- func Response(source, destination, sequence uint64, msgName string, msg []byte)
- func Run()
- func Send(source, destination uint64, msgName string, msg []byte)
- func SetLogLevel(level string) error
- func Shutdown()
- func Tracef(tag, format string, args ...any)
- func Warnf(tag, format string, args ...any)
- type IService
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NodeID uint16
)
Functions ¶
func KillService ¶
func KillService(serviceID uint64)
KillService Shutdwon a local service, and notify to cluster.
func ListService ¶
ListService Divided all service to a map according to service name and return the map.
func LogServiceCallback ¶
func LogServiceCallback(callback port.LogServiceCallBack)
LogServiceCallback Intercepts log data to callback function.
func NewCommunicator ¶ added in v0.1.0
func NewService ¶
NewService Launch a local service, and notify to cluster.
func QueryService ¶
QueryService Match service name of everyone service with 'srvName', put the service id of matched service to a slice, and return the slice.
Types ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
logutil包提供一个日志对象 日志对象提供一下功能: 1、提供 Panic Fatal Error Warn Info Debug Trace 七个日志级别,以及动态设置 2、支持指定日志路径与日志文件名 3、支持动态设置tag过滤
|
logutil包提供一个日志对象 日志对象提供一下功能: 1、提供 Panic Fatal Error Warn Info Debug Trace 七个日志级别,以及动态设置 2、支持指定日志路径与日志文件名 3、支持动态设置tag过滤 |
Click to show internal directories.
Click to hide internal directories.