sys

package
v0.0.0-...-382259f Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Status_name = map[int32]string{
		0: "SysOK",
		1: "SysUnauthorized",
		2: "SysOffline",
		3: "SysDisabled",
		4: "SysRatelimited",
	}
	Status_value = map[string]int32{
		"SysOK":           0,
		"SysUnauthorized": 1,
		"SysOffline":      2,
		"SysDisabled":     3,
		"SysRatelimited":  4,
	}
)

Enum value maps for Status.

View Source
var (
	Tier_name = map[int32]string{
		0: "NormalPlayer",
		1: "Privileged",
		2: "GameMaster",
		3: "Admin",
	}
	Tier_value = map[string]int32{
		"NormalPlayer": 0,
		"Privileged":   1,
		"GameMaster":   2,
		"Admin":        3,
	}
)

Enum value maps for Tier.

Functions

func GetCertFileFingerprint

func GetCertFileFingerprint(at string) (string, error)

func GetCertFingerprint

func GetCertFingerprint(cert *x509.Certificate) (string, error)

func GetPeerFingerprint

func GetPeerFingerprint(ctx context.Context) (string, error)

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)

func RegisterWorldListenerServer

func RegisterWorldListenerServer(s *grpc.Server, srv WorldListenerServer)

Types

type AddRealmRequest

type AddRealmRequest struct {
	Credentials      *Credentials `protobuf:"bytes,1,opt,name=Credentials,proto3" json:"Credentials,omitempty"`
	RealmID          uint64       `protobuf:"varint,2,opt,name=RealmID,proto3" json:"RealmID,omitempty"`
	RealmFingerprint string       `protobuf:"bytes,3,opt,name=RealmFingerprint,proto3" json:"RealmFingerprint,omitempty"`
	// contains filtered or unexported fields
}

func (*AddRealmRequest) Descriptor deprecated

func (*AddRealmRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddRealmRequest.ProtoReflect.Descriptor instead.

func (*AddRealmRequest) GetCredentials

func (x *AddRealmRequest) GetCredentials() *Credentials

func (*AddRealmRequest) GetRealmFingerprint

func (x *AddRealmRequest) GetRealmFingerprint() string

func (*AddRealmRequest) GetRealmID

func (x *AddRealmRequest) GetRealmID() uint64

func (*AddRealmRequest) ProtoMessage

func (*AddRealmRequest) ProtoMessage()

func (*AddRealmRequest) ProtoReflect

func (x *AddRealmRequest) ProtoReflect() protoreflect.Message

func (*AddRealmRequest) Reset

func (x *AddRealmRequest) Reset()

func (*AddRealmRequest) String

func (x *AddRealmRequest) String() string

type AnnounceRealmMsg

type AnnounceRealmMsg struct {
	RealmID          uint64 `protobuf:"varint,1,opt,name=RealmID,proto3" json:"RealmID,omitempty"`
	Type             uint32 `protobuf:"varint,3,opt,name=Type,proto3" json:"Type,omitempty"`
	RealmName        string `protobuf:"bytes,4,opt,name=RealmName,proto3" json:"RealmName,omitempty"`
	RealmDescription string `protobuf:"bytes,5,opt,name=RealmDescription,proto3" json:"RealmDescription,omitempty"`
	Build            uint32 `protobuf:"varint,6,opt,name=Build,proto3" json:"Build,omitempty"`
	Address          string `protobuf:"bytes,7,opt,name=Address,proto3" json:"Address,omitempty"`
	ActivePlayers    uint32 `protobuf:"varint,8,opt,name=ActivePlayers,proto3" json:"ActivePlayers,omitempty"`
	// contains filtered or unexported fields
}

func (*AnnounceRealmMsg) Descriptor deprecated

func (*AnnounceRealmMsg) Descriptor() ([]byte, []int)

Deprecated: Use AnnounceRealmMsg.ProtoReflect.Descriptor instead.

func (*AnnounceRealmMsg) GetActivePlayers

func (x *AnnounceRealmMsg) GetActivePlayers() uint32

func (*AnnounceRealmMsg) GetAddress

func (x *AnnounceRealmMsg) GetAddress() string

func (*AnnounceRealmMsg) GetBuild

func (x *AnnounceRealmMsg) GetBuild() uint32

func (*AnnounceRealmMsg) GetRealmDescription

func (x *AnnounceRealmMsg) GetRealmDescription() string

func (*AnnounceRealmMsg) GetRealmID

func (x *AnnounceRealmMsg) GetRealmID() uint64

func (*AnnounceRealmMsg) GetRealmName

func (x *AnnounceRealmMsg) GetRealmName() string

func (*AnnounceRealmMsg) GetType

func (x *AnnounceRealmMsg) GetType() uint32

func (*AnnounceRealmMsg) ProtoMessage

func (*AnnounceRealmMsg) ProtoMessage()

func (*AnnounceRealmMsg) ProtoReflect

func (x *AnnounceRealmMsg) ProtoReflect() protoreflect.Message

func (*AnnounceRealmMsg) Reset

func (x *AnnounceRealmMsg) Reset()

func (*AnnounceRealmMsg) String

func (x *AnnounceRealmMsg) String() string

type AuthServiceClient

type AuthServiceClient interface {
	GetVersionData(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*VersionData, error)
	Ping(ctx context.Context, in *PingMsg, opts ...grpc.CallOption) (*PingMsg, error)
	AnnounceRealm(ctx context.Context, in *AnnounceRealmMsg, opts ...grpc.CallOption) (*StatusMsg, error)
	VerifyWorld(ctx context.Context, in *VerifyWorldQuery, opts ...grpc.CallOption) (*VerifyWorldResponse, error)
	ReportInfo(ctx context.Context, in *Info, opts ...grpc.CallOption) (*StatusMsg, error)
	CheckCredentials(ctx context.Context, in *Credentials, opts ...grpc.CallOption) (*CredentialsResponse, error)
	GetNextRealmID(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*AddRealmRequest, error)
	AddRealmToConfig(ctx context.Context, in *AddRealmRequest, opts ...grpc.CallOption) (*StatusMsg, error)
}

AuthServiceClient is the client API for AuthService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type AuthServiceServer

type AuthServiceServer interface {
	GetVersionData(context.Context, *empty.Empty) (*VersionData, error)
	Ping(context.Context, *PingMsg) (*PingMsg, error)
	AnnounceRealm(context.Context, *AnnounceRealmMsg) (*StatusMsg, error)
	VerifyWorld(context.Context, *VerifyWorldQuery) (*VerifyWorldResponse, error)
	ReportInfo(context.Context, *Info) (*StatusMsg, error)
	CheckCredentials(context.Context, *Credentials) (*CredentialsResponse, error)
	GetNextRealmID(context.Context, *empty.Empty) (*AddRealmRequest, error)
	AddRealmToConfig(context.Context, *AddRealmRequest) (*StatusMsg, error)
}

AuthServiceServer is the server API for AuthService service.

type Credentials

type Credentials struct {
	Account  string `protobuf:"bytes,1,opt,name=Account,proto3" json:"Account,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=Password,proto3" json:"Password,omitempty"`
	// contains filtered or unexported fields
}

func (*Credentials) Descriptor deprecated

func (*Credentials) Descriptor() ([]byte, []int)

Deprecated: Use Credentials.ProtoReflect.Descriptor instead.

func (*Credentials) GetAccount

func (x *Credentials) GetAccount() string

func (*Credentials) GetPassword

func (x *Credentials) GetPassword() string

func (*Credentials) ProtoMessage

func (*Credentials) ProtoMessage()

func (*Credentials) ProtoReflect

func (x *Credentials) ProtoReflect() protoreflect.Message

func (*Credentials) Reset

func (x *Credentials) Reset()

func (*Credentials) String

func (x *Credentials) String() string

type CredentialsResponse

type CredentialsResponse struct {
	Status Status `protobuf:"varint,1,opt,name=Status,proto3,enum=Status" json:"Status,omitempty"`
	Tier   Tier   `protobuf:"varint,2,opt,name=Tier,proto3,enum=Tier" json:"Tier,omitempty"`
	// contains filtered or unexported fields
}

func (*CredentialsResponse) Descriptor deprecated

func (*CredentialsResponse) Descriptor() ([]byte, []int)

Deprecated: Use CredentialsResponse.ProtoReflect.Descriptor instead.

func (*CredentialsResponse) GetStatus

func (x *CredentialsResponse) GetStatus() Status

func (*CredentialsResponse) GetTier

func (x *CredentialsResponse) GetTier() Tier

func (*CredentialsResponse) ProtoMessage

func (*CredentialsResponse) ProtoMessage()

func (*CredentialsResponse) ProtoReflect

func (x *CredentialsResponse) ProtoReflect() protoreflect.Message

func (*CredentialsResponse) Reset

func (x *CredentialsResponse) Reset()

func (*CredentialsResponse) String

func (x *CredentialsResponse) String() string

type Info

type Info struct {
	// contains filtered or unexported fields
}

func (*Info) Descriptor deprecated

func (*Info) Descriptor() ([]byte, []int)

Deprecated: Use Info.ProtoReflect.Descriptor instead.

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) ProtoReflect

func (x *Info) ProtoReflect() protoreflect.Message

func (*Info) Reset

func (x *Info) Reset()

func (*Info) String

func (x *Info) String() string

type PingMsg

type PingMsg struct {
	Time uint64 `protobuf:"varint,1,opt,name=Time,proto3" json:"Time,omitempty"`
	// contains filtered or unexported fields
}

func (*PingMsg) Descriptor deprecated

func (*PingMsg) Descriptor() ([]byte, []int)

Deprecated: Use PingMsg.ProtoReflect.Descriptor instead.

func (*PingMsg) GetTime

func (x *PingMsg) GetTime() uint64

func (*PingMsg) ProtoMessage

func (*PingMsg) ProtoMessage()

func (*PingMsg) ProtoReflect

func (x *PingMsg) ProtoReflect() protoreflect.Message

func (*PingMsg) Reset

func (x *PingMsg) Reset()

func (*PingMsg) String

func (x *PingMsg) String() string

type Status

type Status int32
const (
	Status_SysOK           Status = 0
	Status_SysUnauthorized Status = 1
	Status_SysOffline      Status = 2
	Status_SysDisabled     Status = 3
	Status_SysRatelimited  Status = 4
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

func (Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

type StatusMsg

type StatusMsg struct {
	Status Status `protobuf:"varint,1,opt,name=Status,proto3,enum=Status" json:"Status,omitempty"`
	// contains filtered or unexported fields
}

func Code

func Code(s Status) *StatusMsg

func (*StatusMsg) Descriptor deprecated

func (*StatusMsg) Descriptor() ([]byte, []int)

Deprecated: Use StatusMsg.ProtoReflect.Descriptor instead.

func (*StatusMsg) GetStatus

func (x *StatusMsg) GetStatus() Status

func (*StatusMsg) ProtoMessage

func (*StatusMsg) ProtoMessage()

func (*StatusMsg) ProtoReflect

func (x *StatusMsg) ProtoReflect() protoreflect.Message

func (*StatusMsg) Reset

func (x *StatusMsg) Reset()

func (*StatusMsg) String

func (x *StatusMsg) String() string

type Tier

type Tier int32
const (
	Tier_NormalPlayer Tier = 0
	Tier_Privileged   Tier = 1
	Tier_GameMaster   Tier = 2
	Tier_Admin        Tier = 3
)

func (Tier) Descriptor

func (Tier) Descriptor() protoreflect.EnumDescriptor

func (Tier) Enum

func (x Tier) Enum() *Tier

func (Tier) EnumDescriptor deprecated

func (Tier) EnumDescriptor() ([]byte, []int)

Deprecated: Use Tier.Descriptor instead.

func (Tier) Number

func (x Tier) Number() protoreflect.EnumNumber

func (Tier) String

func (x Tier) String() string

func (Tier) Type

func (Tier) Type() protoreflect.EnumType

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAuthServiceServer) AddRealmToConfig

func (*UnimplementedAuthServiceServer) AnnounceRealm

func (*UnimplementedAuthServiceServer) CheckCredentials

func (*UnimplementedAuthServiceServer) GetNextRealmID

func (*UnimplementedAuthServiceServer) GetVersionData

func (*UnimplementedAuthServiceServer) Ping

func (*UnimplementedAuthServiceServer) ReportInfo

func (*UnimplementedAuthServiceServer) VerifyWorld

type UnimplementedWorldListenerServer

type UnimplementedWorldListenerServer struct {
}

UnimplementedWorldListenerServer can be embedded to have forward compatible implementations.

type VerifyWorldQuery

type VerifyWorldQuery struct {
	RealmID     uint64 `protobuf:"varint,1,opt,name=RealmID,proto3" json:"RealmID,omitempty"`
	Build       uint32 `protobuf:"varint,2,opt,name=Build,proto3" json:"Build,omitempty"`
	Account     string `protobuf:"bytes,3,opt,name=Account,proto3" json:"Account,omitempty"`
	IP          string `protobuf:"bytes,4,opt,name=IP,proto3" json:"IP,omitempty"`
	Digest      []byte `protobuf:"bytes,5,opt,name=Digest,proto3" json:"Digest,omitempty"`
	Seed        []byte `protobuf:"bytes,6,opt,name=Seed,proto3" json:"Seed,omitempty"`
	Salt        []byte `protobuf:"bytes,7,opt,name=Salt,proto3" json:"Salt,omitempty"`
	GameAccount string `protobuf:"bytes,8,opt,name=GameAccount,proto3" json:"GameAccount,omitempty"`
	// contains filtered or unexported fields
}

Sent from worldserver to gcore server upon a player connection.

func (*VerifyWorldQuery) Descriptor deprecated

func (*VerifyWorldQuery) Descriptor() ([]byte, []int)

Deprecated: Use VerifyWorldQuery.ProtoReflect.Descriptor instead.

func (*VerifyWorldQuery) GetAccount

func (x *VerifyWorldQuery) GetAccount() string

func (*VerifyWorldQuery) GetBuild

func (x *VerifyWorldQuery) GetBuild() uint32

func (*VerifyWorldQuery) GetDigest

func (x *VerifyWorldQuery) GetDigest() []byte

func (*VerifyWorldQuery) GetGameAccount

func (x *VerifyWorldQuery) GetGameAccount() string

func (*VerifyWorldQuery) GetIP

func (x *VerifyWorldQuery) GetIP() string

func (*VerifyWorldQuery) GetRealmID

func (x *VerifyWorldQuery) GetRealmID() uint64

func (*VerifyWorldQuery) GetSalt

func (x *VerifyWorldQuery) GetSalt() []byte

func (*VerifyWorldQuery) GetSeed

func (x *VerifyWorldQuery) GetSeed() []byte

func (*VerifyWorldQuery) ProtoMessage

func (*VerifyWorldQuery) ProtoMessage()

func (*VerifyWorldQuery) ProtoReflect

func (x *VerifyWorldQuery) ProtoReflect() protoreflect.Message

func (*VerifyWorldQuery) Reset

func (x *VerifyWorldQuery) Reset()

func (*VerifyWorldQuery) String

func (x *VerifyWorldQuery) String() string

type VerifyWorldResponse

type VerifyWorldResponse struct {
	Status      Status `protobuf:"varint,1,opt,name=Status,proto3,enum=Status" json:"Status,omitempty"`
	Tier        Tier   `protobuf:"varint,2,opt,name=Tier,proto3,enum=Tier" json:"Tier,omitempty"`
	SessionKey  []byte `protobuf:"bytes,3,opt,name=SessionKey,proto3" json:"SessionKey,omitempty"`
	Account     uint64 `protobuf:"varint,4,opt,name=Account,proto3" json:"Account,omitempty"`
	GameAccount uint64 `protobuf:"varint,5,opt,name=GameAccount,proto3" json:"GameAccount,omitempty"`
	Locale      uint32 `protobuf:"varint,6,opt,name=Locale,proto3" json:"Locale,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyWorldResponse) Descriptor deprecated

func (*VerifyWorldResponse) Descriptor() ([]byte, []int)

Deprecated: Use VerifyWorldResponse.ProtoReflect.Descriptor instead.

func (*VerifyWorldResponse) GetAccount

func (x *VerifyWorldResponse) GetAccount() uint64

func (*VerifyWorldResponse) GetGameAccount

func (x *VerifyWorldResponse) GetGameAccount() uint64

func (*VerifyWorldResponse) GetLocale

func (x *VerifyWorldResponse) GetLocale() uint32

func (*VerifyWorldResponse) GetSessionKey

func (x *VerifyWorldResponse) GetSessionKey() []byte

func (*VerifyWorldResponse) GetStatus

func (x *VerifyWorldResponse) GetStatus() Status

func (*VerifyWorldResponse) GetTier

func (x *VerifyWorldResponse) GetTier() Tier

func (*VerifyWorldResponse) ProtoMessage

func (*VerifyWorldResponse) ProtoMessage()

func (*VerifyWorldResponse) ProtoReflect

func (x *VerifyWorldResponse) ProtoReflect() protoreflect.Message

func (*VerifyWorldResponse) Reset

func (x *VerifyWorldResponse) Reset()

func (*VerifyWorldResponse) String

func (x *VerifyWorldResponse) String() string

type VersionData

type VersionData struct {
	CoreVersion string `protobuf:"bytes,1,opt,name=CoreVersion,proto3" json:"CoreVersion,omitempty"`
	// contains filtered or unexported fields
}

func (*VersionData) Descriptor deprecated

func (*VersionData) Descriptor() ([]byte, []int)

Deprecated: Use VersionData.ProtoReflect.Descriptor instead.

func (*VersionData) GetCoreVersion

func (x *VersionData) GetCoreVersion() string

func (*VersionData) ProtoMessage

func (*VersionData) ProtoMessage()

func (*VersionData) ProtoReflect

func (x *VersionData) ProtoReflect() protoreflect.Message

func (*VersionData) Reset

func (x *VersionData) Reset()

func (*VersionData) String

func (x *VersionData) String() string

type WorldListenerClient

type WorldListenerClient interface {
}

WorldListenerClient is the client API for WorldListener service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type WorldListenerServer

type WorldListenerServer interface {
}

WorldListenerServer is the server API for WorldListener service.

Jump to

Keyboard shortcuts

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