service_mgr

package
v0.0.0-...-d098e83 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SERVICE_ID_MAP

type SERVICE_ID_MAP map[uint32]*Service //key:service id, val:service

type SERVICE_MAP

type SERVICE_MAP map[*tcp.Client]*Service

type Service

type Service struct {
	AddrJson addr.AddrJson
	Client   tcp.Client
}

type ServiceMgr

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

func (*ServiceMgr) AddService

func (p *ServiceMgr) AddService(service *Service)

func (*ServiceMgr) DelService

func (p *ServiceMgr) DelService(service *Service)

func (*ServiceMgr) Find

func (p *ServiceMgr) Find(client *tcp.Client) (service *Service)

func (*ServiceMgr) FindById

func (p *ServiceMgr) FindById(id uint32) (service *Service)

func (*ServiceMgr) Init

func (p *ServiceMgr) Init()

Jump to

Keyboard shortcuts

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