dst

package
v0.0.0-...-1d5bf40 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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 (a *ArchiveService) CreateBackup(ctx context.Context, opt *pb.BackupOpt) (*pb.Notify, error)

func (*ArchiveService) DeleteBackUp

func (a *ArchiveService) DeleteBackUp(ctx context.Context, opt *pb.BackupOpt) (*pb.Notify, error)

func (*ArchiveService) DownloadBackup

func (a *ArchiveService) DownloadBackup(ctx context.Context, opt *pb.BackupOpt) (*pb.BackupFile, error)

func (*ArchiveService) Info

func (*ArchiveService) ListBackups

func (a *ArchiveService) ListBackups(ctx context.Context, id *pb.ContainerId) (*pb.BackUpList, error)

func (*ArchiveService) RestoreBackUp

func (a *ArchiveService) RestoreBackUp(ctx context.Context, opt *pb.BackupOpt) (*pb.Notify, error)

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) Subscribe

func (m *ModService) Subscribe(ctx context.Context, id *pb.ModId) (*pb.Notify, error)

func (*ModService) Unsubscribe

func (m *ModService) Unsubscribe(ctx context.Context, id *pb.ModId) (*pb.Notify, error)

func (*ModService) UpdateMod

func (m *ModService) UpdateMod(ctx context.Context, id *pb.ModId) (*pb.Notify, error)

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)

Jump to

Keyboard shortcuts

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