Documentation
¶
Index ¶
- Constants
- Variables
- type Service
- func (s *Service) Auth(ctx context.Context, in xnet.Pack) (out xnet.Pack, session xnet.Session, err error)
- func (s *Service) CreateAppTunnel(ctx context.Context, ss xnet.Session, tp int32, oid int64, worker xnet.Worker) (xnet.AppTunnel, error)
- func (s *Service) Handle(ctx context.Context, ss xnet.Session, th xnet.TunnelManager, in xnet.Pack) (err error)
- func (s *Service) OnConnected(ctx context.Context, ss xnet.Session) (err error)
- func (s *Service) OnDisconnect(ctx context.Context, ss xnet.Session) (err error)
- func (s *Service) Tick(ctx context.Context, ss xnet.Session) (err error)
- func (s *Service) TunnelType(mod int32) (t int32, initCapacity int, err error)
Constants ¶
View Source
const HandshakeTimeLimit = 5 * time.Second
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewTCPService)
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewTCPService ¶
func NewTCPService(logger log.Logger, label *conf.Label, gateRT *router.RouteTable, playerRT *player.RouteTable, playerClient playerv1.TunnelServiceClient, roomRT *room.RouteTable, roomClient roomv1.TunnelServiceClient, ) *Service
func (*Service) CreateAppTunnel ¶ added in v0.0.4
func (*Service) OnConnected ¶
func (*Service) OnDisconnect ¶
Click to show internal directories.
Click to hide internal directories.