signaling

package
v0.0.0-...-115e584 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigJson

type ConfigJson = master.ConfigJson

type Configs

type Configs = master.Configs

type Region

type Region = master.Region

type Signaling

type Signaling interface {
	// 从master同步到slave
	SyncToSlave(ctx context.Context, in *UpdateVersions) (*SyncData, error)
	// 从slave同步到master
	SyncToMaster(ctx context.Context, in *SyncData) (*UpdateVersions, error)
	// 从master更新本地config缓存
	UpdateConfigsCache(ctx context.Context, in *Region) (*Configs, error)
}

func NewSignaling

func NewSignaling(cli krpc.Client) Signaling

type SyncData

type SyncData = master.SyncData

type UpdateVersions

type UpdateVersions = master.UpdateVersions

type Version

type Version = master.Version

Jump to

Keyboard shortcuts

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