Documentation ¶
Index ¶
- type SignalingServer
- func (s *SignalingServer) SyncToMaster(ctx context.Context, in *master.SyncData) (*master.UpdateVersions, error)
- func (s *SignalingServer) SyncToSlave(ctx context.Context, in *master.UpdateVersions) (*master.SyncData, error)
- func (s *SignalingServer) UpdateConfigsCache(ctx context.Context, in *master.Region) (*master.Configs, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SignalingServer ¶
type SignalingServer struct {
// contains filtered or unexported fields
}
func NewSignalingServer ¶
func NewSignalingServer(svcCtx *svc.ServiceContext) *SignalingServer
func (*SignalingServer) SyncToMaster ¶
func (s *SignalingServer) SyncToMaster(ctx context.Context, in *master.SyncData) (*master.UpdateVersions, error)
从slave同步到master
func (*SignalingServer) SyncToSlave ¶
func (s *SignalingServer) SyncToSlave(ctx context.Context, in *master.UpdateVersions) (*master.SyncData, error)
从master同步到slave
func (*SignalingServer) UpdateConfigsCache ¶
func (s *SignalingServer) UpdateConfigsCache(ctx context.Context, in *master.Region) (*master.Configs, error)
从master更新本地config缓存
Click to show internal directories.
Click to hide internal directories.