Documentation ¶
Index ¶
- type ArchiveService
- func (a *ArchiveService) CreateBackup(ctx context.Context, opt *pb.BackupOpt) (*pb.Notify, error)
- func (a *ArchiveService) DeleteBackUp(ctx context.Context, opt *pb.BackupOpt) (*pb.Notify, error)
- func (a *ArchiveService) DownloadBackup(ctx context.Context, opt *pb.BackupOpt) (*pb.BackupFile, error)
- func (a *ArchiveService) Info(ctx context.Context, id *pb.ContainerId) (*pb.ArchiveInfo, error)
- func (a *ArchiveService) ListBackups(ctx context.Context, id *pb.ContainerId) (*pb.BackUpList, error)
- func (a *ArchiveService) RestoreBackUp(ctx context.Context, opt *pb.BackupOpt) (*pb.Notify, error)
- func (a *ArchiveService) UploadBackup(ctx context.Context, file *pb.BackupFile) (*pb.Notify, error)
- type ModService
- func (m *ModService) CheckUpdate(ctx context.Context, id *pb.ContainerId) (*pb.CheckUpdateResult, error)
- func (m *ModService) GetModSettings(ctx context.Context, id *pb.ContainerId) (*pb.ModSettings, error)
- func (m *ModService) GetRawModSettings(ctx context.Context, id *pb.ContainerId) (*pb.RawModSettings, error)
- func (m *ModService) GetWorkShopModList(ctx context.Context, req *pb.ModListReq) (*pb.ModListResp, error)
- func (m *ModService) SaveModSettings(ctx context.Context, req *pb.SaveModSettingsReq) (*pb.Notify, error)
- func (m *ModService) SaveRawModSettings(ctx context.Context, req *pb.SaveRawModSettingsReq) (*pb.Notify, error)
- func (m *ModService) Subscribe(ctx context.Context, id *pb.ModId) (*pb.Notify, error)
- func (m *ModService) Unsubscribe(ctx context.Context, id *pb.ModId) (*pb.Notify, error)
- func (m *ModService) UpdateMod(ctx context.Context, id *pb.ModId) (*pb.Notify, error)
- type PlayerService
- func (p *PlayerService) AddAdminList(ctx context.Context, req *pb.PlayerListReq) (*pb.Notify, error)
- func (p *PlayerService) AddBlackList(ctx context.Context, req *pb.PlayerListReq) (*pb.Notify, error)
- func (p *PlayerService) AddWhiteList(ctx context.Context, req *pb.PlayerListReq) (*pb.Notify, error)
- func (p *PlayerService) ExecutePlayer(ctx context.Context, req *pb.ExecutePlayerReq) (*pb.Notify, error)
- func (p *PlayerService) GetAdminList(ctx context.Context, id *pb.ContainerId) (*pb.PlayerListResp, error)
- func (p *PlayerService) GetBlackList(ctx context.Context, id *pb.ContainerId) (*pb.PlayerListResp, error)
- func (p *PlayerService) GetPlayerChatLog(ctx context.Context, id *pb.ContainerId) (*pb.PlayerChatLog, error)
- func (p *PlayerService) GetPlayerStats(ctx context.Context, id *pb.ContainerId) (*pb.PlayerStatisticInfo, error)
- func (p *PlayerService) GetWhiteList(ctx context.Context, id *pb.ContainerId) (*pb.PlayerListResp, error)
- func (p *PlayerService) RemoveAdminList(ctx context.Context, req *pb.PlayerListReq) (*pb.Notify, error)
- func (p *PlayerService) RemoveBlackList(ctx context.Context, req *pb.PlayerListReq) (*pb.Notify, error)
- func (p *PlayerService) RemoveWhiteList(ctx context.Context, req *pb.PlayerListReq) (*pb.Notify, error)
- type SettingService
- func (s *SettingService) GetRawWorldSetting(ctx context.Context, id *pb.ContainerId) (*pb.RawWorldSetting, error)
- func (s *SettingService) GetRoomSetting(ctx context.Context, id *pb.ContainerId) (*pb.RoomSetting, error)
- func (s *SettingService) GetWorldSetting(ctx context.Context, id *pb.ContainerId) (*pb.WorldSetting, error)
- func (s *SettingService) SaveRawWorldSetting(ctx context.Context, setting *pb.RawWorldSetting) (*pb.Notify, error)
- func (s *SettingService) SaveRoomSetting(ctx context.Context, setting *pb.RoomSetting) (*pb.Notify, error)
- func (s *SettingService) SaveWorldSetting(ctx context.Context, setting *pb.WorldSetting) (*pb.Notify, error)
- type ShardService
- func (s *ShardService) Clear(ctx context.Context, id *pb.ContainerId) (*pb.Notify, error)
- func (s *ShardService) Execute(ctx context.Context, request *pb.CommandRequest) (*pb.Notify, error)
- func (s *ShardService) Logs(ctx context.Context, request *pb.LogsRequest) (*pb.LogsResponse, error)
- func (s *ShardService) ReStart(ctx context.Context, request *pb.ControlRequest) (*pb.Notify, error)
- func (s *ShardService) Reset(ctx context.Context, id *pb.ContainerId) (*pb.Notify, error)
- func (s *ShardService) RollBack(ctx context.Context, id *pb.ContainerId) (*pb.Notify, error)
- func (s *ShardService) Start(ctx context.Context, request *pb.ControlRequest) (*pb.Notify, error)
- func (s *ShardService) State(ctx context.Context, request *pb.ControlRequest) (*pb.StateResp, error)
- func (s *ShardService) Stop(ctx context.Context, request *pb.ControlRequest) (*pb.Notify, error)
- func (s *ShardService) Update(ctx context.Context, id *pb.ContainerId) (*pb.Notify, error)
- func (s *ShardService) Version(ctx context.Context, id *pb.ContainerId) (*pb.VersionResp, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveService ¶
type ArchiveService struct { pb.UnimplementedArchiveServiceServer Archive *dst.ArchiveHandler }
func NewArchiveService ¶
func NewArchiveService(archive *dst.ArchiveHandler) *ArchiveService
func (*ArchiveService) CreateBackup ¶
func (*ArchiveService) DeleteBackUp ¶
func (*ArchiveService) DownloadBackup ¶
func (a *ArchiveService) DownloadBackup(ctx context.Context, opt *pb.BackupOpt) (*pb.BackupFile, error)
func (*ArchiveService) Info ¶
func (a *ArchiveService) Info(ctx context.Context, id *pb.ContainerId) (*pb.ArchiveInfo, error)
func (*ArchiveService) ListBackups ¶
func (a *ArchiveService) ListBackups(ctx context.Context, id *pb.ContainerId) (*pb.BackUpList, error)
func (*ArchiveService) RestoreBackUp ¶
func (*ArchiveService) UploadBackup ¶
func (a *ArchiveService) UploadBackup(ctx context.Context, file *pb.BackupFile) (*pb.Notify, error)
type ModService ¶
type ModService struct { pb.UnimplementedModServiceServer Mod *dst.ModHandler }
func NewModService ¶
func NewModService(mod *dst.ModHandler) *ModService
func (*ModService) CheckUpdate ¶
func (m *ModService) CheckUpdate(ctx context.Context, id *pb.ContainerId) (*pb.CheckUpdateResult, error)
func (*ModService) GetModSettings ¶
func (m *ModService) GetModSettings(ctx context.Context, id *pb.ContainerId) (*pb.ModSettings, error)
func (*ModService) GetRawModSettings ¶
func (m *ModService) GetRawModSettings(ctx context.Context, id *pb.ContainerId) (*pb.RawModSettings, error)
func (*ModService) GetWorkShopModList ¶
func (m *ModService) GetWorkShopModList(ctx context.Context, req *pb.ModListReq) (*pb.ModListResp, error)
func (*ModService) SaveModSettings ¶
func (m *ModService) SaveModSettings(ctx context.Context, req *pb.SaveModSettingsReq) (*pb.Notify, error)
func (*ModService) SaveRawModSettings ¶
func (m *ModService) SaveRawModSettings(ctx context.Context, req *pb.SaveRawModSettingsReq) (*pb.Notify, error)
func (*ModService) Unsubscribe ¶
type PlayerService ¶
type PlayerService struct { Player *dst.PlayerHandler pb.UnimplementedPlayerServiceServer }
func NewPlayerService ¶
func NewPlayerService(player *dst.PlayerHandler) *PlayerService
func (*PlayerService) AddAdminList ¶
func (p *PlayerService) AddAdminList(ctx context.Context, req *pb.PlayerListReq) (*pb.Notify, error)
func (*PlayerService) AddBlackList ¶
func (p *PlayerService) AddBlackList(ctx context.Context, req *pb.PlayerListReq) (*pb.Notify, error)
func (*PlayerService) AddWhiteList ¶
func (p *PlayerService) AddWhiteList(ctx context.Context, req *pb.PlayerListReq) (*pb.Notify, error)
func (*PlayerService) ExecutePlayer ¶
func (p *PlayerService) ExecutePlayer(ctx context.Context, req *pb.ExecutePlayerReq) (*pb.Notify, error)
func (*PlayerService) GetAdminList ¶
func (p *PlayerService) GetAdminList(ctx context.Context, id *pb.ContainerId) (*pb.PlayerListResp, error)
func (*PlayerService) GetBlackList ¶
func (p *PlayerService) GetBlackList(ctx context.Context, id *pb.ContainerId) (*pb.PlayerListResp, error)
func (*PlayerService) GetPlayerChatLog ¶
func (p *PlayerService) GetPlayerChatLog(ctx context.Context, id *pb.ContainerId) (*pb.PlayerChatLog, error)
func (*PlayerService) GetPlayerStats ¶
func (p *PlayerService) GetPlayerStats(ctx context.Context, id *pb.ContainerId) (*pb.PlayerStatisticInfo, error)
func (*PlayerService) GetWhiteList ¶
func (p *PlayerService) GetWhiteList(ctx context.Context, id *pb.ContainerId) (*pb.PlayerListResp, error)
func (*PlayerService) RemoveAdminList ¶
func (p *PlayerService) RemoveAdminList(ctx context.Context, req *pb.PlayerListReq) (*pb.Notify, error)
func (*PlayerService) RemoveBlackList ¶
func (p *PlayerService) RemoveBlackList(ctx context.Context, req *pb.PlayerListReq) (*pb.Notify, error)
func (*PlayerService) RemoveWhiteList ¶
func (p *PlayerService) RemoveWhiteList(ctx context.Context, req *pb.PlayerListReq) (*pb.Notify, error)
type SettingService ¶
type SettingService struct { Setting *dst.SettingHandler pb.UnimplementedSettingServiceServer }
func NewSettingService ¶
func NewSettingService(setting *dst.SettingHandler) *SettingService
func (*SettingService) GetRawWorldSetting ¶
func (s *SettingService) GetRawWorldSetting(ctx context.Context, id *pb.ContainerId) (*pb.RawWorldSetting, error)
func (*SettingService) GetRoomSetting ¶
func (s *SettingService) GetRoomSetting(ctx context.Context, id *pb.ContainerId) (*pb.RoomSetting, error)
func (*SettingService) GetWorldSetting ¶
func (s *SettingService) GetWorldSetting(ctx context.Context, id *pb.ContainerId) (*pb.WorldSetting, error)
func (*SettingService) SaveRawWorldSetting ¶
func (s *SettingService) SaveRawWorldSetting(ctx context.Context, setting *pb.RawWorldSetting) (*pb.Notify, error)
func (*SettingService) SaveRoomSetting ¶
func (s *SettingService) SaveRoomSetting(ctx context.Context, setting *pb.RoomSetting) (*pb.Notify, error)
func (*SettingService) SaveWorldSetting ¶
func (s *SettingService) SaveWorldSetting(ctx context.Context, setting *pb.WorldSetting) (*pb.Notify, error)
type ShardService ¶
type ShardService struct { Shards *dst.ShardHandler pb.UnimplementedShardServiceServer }
func NewShardService ¶
func NewShardService(shards *dst.ShardHandler) *ShardService
func (*ShardService) Clear ¶
func (s *ShardService) Clear(ctx context.Context, id *pb.ContainerId) (*pb.Notify, error)
func (*ShardService) Execute ¶
func (s *ShardService) Execute(ctx context.Context, request *pb.CommandRequest) (*pb.Notify, error)
func (*ShardService) Logs ¶
func (s *ShardService) Logs(ctx context.Context, request *pb.LogsRequest) (*pb.LogsResponse, error)
func (*ShardService) ReStart ¶
func (s *ShardService) ReStart(ctx context.Context, request *pb.ControlRequest) (*pb.Notify, error)
func (*ShardService) Reset ¶
func (s *ShardService) Reset(ctx context.Context, id *pb.ContainerId) (*pb.Notify, error)
func (*ShardService) RollBack ¶
func (s *ShardService) RollBack(ctx context.Context, id *pb.ContainerId) (*pb.Notify, error)
func (*ShardService) Start ¶
func (s *ShardService) Start(ctx context.Context, request *pb.ControlRequest) (*pb.Notify, error)
func (*ShardService) State ¶
func (s *ShardService) State(ctx context.Context, request *pb.ControlRequest) (*pb.StateResp, error)
func (*ShardService) Stop ¶
func (s *ShardService) Stop(ctx context.Context, request *pb.ControlRequest) (*pb.Notify, error)
func (*ShardService) Update ¶
func (s *ShardService) Update(ctx context.Context, id *pb.ContainerId) (*pb.Notify, error)
func (*ShardService) Version ¶
func (s *ShardService) Version(ctx context.Context, id *pb.ContainerId) (*pb.VersionResp, error)
Click to show internal directories.
Click to hide internal directories.