Versions in this module Expand all Collapse all v0 v0.5.1 Jan 15, 2023 Changes in this version + var File_RpcNet_proto protoreflect.FileDescriptor + var HomeService_ServiceDesc = grpc.ServiceDesc + var Status_name = map[int32]string + var Status_value = map[string]int32 + var SupportDomain_name = map[int32]string + var SupportDomain_value = map[string]int32 + var SupportType_name = map[int32]string + var SupportType_value = map[string]int32 + var Tier_name = map[int32]string + var Tier_value = map[string]int32 + func DialConn(address string, fingerprint string, cert *tls.Certificate) (*grpc.ClientConn, error) + func FingerprintServer(address string) (string, error) + func FingerprintsEqual(f1, f2 string) bool + func GetCertFileFingerprint(at string) (string, error) + func GetCertFingerprint(cert *x509.Certificate) (string, error) + func GetPeerFingerprint(ctx context.Context) (string, error) + func RegisterHomeServiceServer(s grpc.ServiceRegistrar, srv HomeServiceServer) + type AnnounceRealmMsg struct + ActivePlayers uint32 + Address string + Build uint32 + RealmDescription string + RealmID uint64 + RealmName string + RedirectAddress string + Timezone uint32 + TotalPlayers uint32 + Type uint32 + func (*AnnounceRealmMsg) Descriptor() ([]byte, []int) + func (*AnnounceRealmMsg) ProtoMessage() + func (x *AnnounceRealmMsg) GetActivePlayers() uint32 + func (x *AnnounceRealmMsg) GetAddress() string + func (x *AnnounceRealmMsg) GetBuild() uint32 + func (x *AnnounceRealmMsg) GetRealmDescription() string + func (x *AnnounceRealmMsg) GetRealmID() uint64 + func (x *AnnounceRealmMsg) GetRealmName() string + func (x *AnnounceRealmMsg) GetRedirectAddress() string + func (x *AnnounceRealmMsg) GetTimezone() uint32 + func (x *AnnounceRealmMsg) GetTotalPlayers() uint32 + func (x *AnnounceRealmMsg) GetType() uint32 + func (x *AnnounceRealmMsg) ProtoReflect() protoreflect.Message + func (x *AnnounceRealmMsg) Reset() + func (x *AnnounceRealmMsg) String() string + type Credentials struct + Account string + Password string + func (*Credentials) Descriptor() ([]byte, []int) + func (*Credentials) ProtoMessage() + func (x *Credentials) GetAccount() string + func (x *Credentials) GetPassword() string + func (x *Credentials) ProtoReflect() protoreflect.Message + func (x *Credentials) Reset() + func (x *Credentials) String() string + type EnlistRealmRequest struct + RealmFingerprint string + RealmName string + WebToken string + func (*EnlistRealmRequest) Descriptor() ([]byte, []int) + func (*EnlistRealmRequest) ProtoMessage() + func (x *EnlistRealmRequest) GetRealmFingerprint() string + func (x *EnlistRealmRequest) GetRealmName() string + func (x *EnlistRealmRequest) GetWebToken() string + func (x *EnlistRealmRequest) ProtoReflect() protoreflect.Message + func (x *EnlistRealmRequest) Reset() + func (x *EnlistRealmRequest) String() string + type EnlistRealmResponse struct + RealmID uint64 + Status Status + func (*EnlistRealmResponse) Descriptor() ([]byte, []int) + func (*EnlistRealmResponse) ProtoMessage() + func (x *EnlistRealmResponse) GetRealmID() uint64 + func (x *EnlistRealmResponse) GetStatus() Status + func (x *EnlistRealmResponse) ProtoReflect() protoreflect.Message + func (x *EnlistRealmResponse) Reset() + func (x *EnlistRealmResponse) String() string + type HomeServiceClient interface + AnnounceRealm func(ctx context.Context, in *AnnounceRealmMsg, opts ...grpc.CallOption) (*StatusMsg, error) + EnlistRealm func(ctx context.Context, in *EnlistRealmRequest, opts ...grpc.CallOption) (*EnlistRealmResponse, error) + GetVersionData func(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*VersionData, error) + Ping func(ctx context.Context, in *PingMsg, opts ...grpc.CallOption) (*PingMsg, error) + QueryTickets func(ctx context.Context, in *TicketQuery, opts ...grpc.CallOption) (*TicketQueryResponse, error) + SignIn func(ctx context.Context, in *Credentials, opts ...grpc.CallOption) (*SessionInfo, error) + SubmitTicket func(ctx context.Context, in *SupportTicket, opts ...grpc.CallOption) (*TicketSubmissionResult, error) + VerifyWorld func(ctx context.Context, in *VerifyWorldQuery, opts ...grpc.CallOption) (*VerifyWorldResponse, error) + func NewHomeServiceClient(cc grpc.ClientConnInterface) HomeServiceClient + type HomeServiceServer interface + AnnounceRealm func(context.Context, *AnnounceRealmMsg) (*StatusMsg, error) + EnlistRealm func(context.Context, *EnlistRealmRequest) (*EnlistRealmResponse, error) + GetVersionData func(context.Context, *emptypb.Empty) (*VersionData, error) + Ping func(context.Context, *PingMsg) (*PingMsg, error) + QueryTickets func(context.Context, *TicketQuery) (*TicketQueryResponse, error) + SignIn func(context.Context, *Credentials) (*SessionInfo, error) + SubmitTicket func(context.Context, *SupportTicket) (*TicketSubmissionResult, error) + VerifyWorld func(context.Context, *VerifyWorldQuery) (*VerifyWorldResponse, error) + type PingMsg struct + Time uint64 + func (*PingMsg) Descriptor() ([]byte, []int) + func (*PingMsg) ProtoMessage() + func (x *PingMsg) GetTime() uint64 + func (x *PingMsg) ProtoReflect() protoreflect.Message + func (x *PingMsg) Reset() + func (x *PingMsg) String() string + type SessionInfo struct + Status Status + Tier Tier + WebToken string + func (*SessionInfo) Descriptor() ([]byte, []int) + func (*SessionInfo) ProtoMessage() + func (x *SessionInfo) GetStatus() Status + func (x *SessionInfo) GetTier() Tier + func (x *SessionInfo) GetWebToken() string + func (x *SessionInfo) ProtoReflect() protoreflect.Message + func (x *SessionInfo) Reset() + func (x *SessionInfo) String() string + type Status int32 + const Status_Disabled + const Status_MaxResourceReached + const Status_OK + const Status_Offline + const Status_Ratelimited + const Status_Unauthorized + func (Status) Descriptor() protoreflect.EnumDescriptor + func (Status) EnumDescriptor() ([]byte, []int) + func (Status) Type() protoreflect.EnumType + func (x Status) Enum() *Status + func (x Status) Number() protoreflect.EnumNumber + func (x Status) String() string + type StatusMsg struct + Status Status + func Code(s Status) *StatusMsg + func (*StatusMsg) Descriptor() ([]byte, []int) + func (*StatusMsg) ProtoMessage() + func (x *StatusMsg) GetStatus() Status + func (x *StatusMsg) ProtoReflect() protoreflect.Message + func (x *StatusMsg) Reset() + func (x *StatusMsg) String() string + type SupportDomain int32 + const SupportDomain_Other + const SupportDomain_Realm + const SupportDomain_Website + func (SupportDomain) Descriptor() protoreflect.EnumDescriptor + func (SupportDomain) EnumDescriptor() ([]byte, []int) + func (SupportDomain) Type() protoreflect.EnumType + func (x SupportDomain) Enum() *SupportDomain + func (x SupportDomain) Number() protoreflect.EnumNumber + func (x SupportDomain) String() string + type SupportTicket struct + Account uint64 + Domain SupportDomain + GameAccount uint64 + Player uint64 + RealmID uint64 + ReportText string + Time uint64 + Type SupportType + func (*SupportTicket) Descriptor() ([]byte, []int) + func (*SupportTicket) ProtoMessage() + func (x *SupportTicket) GetAccount() uint64 + func (x *SupportTicket) GetDomain() SupportDomain + func (x *SupportTicket) GetGameAccount() uint64 + func (x *SupportTicket) GetPlayer() uint64 + func (x *SupportTicket) GetRealmID() uint64 + func (x *SupportTicket) GetReportText() string + func (x *SupportTicket) GetTime() uint64 + func (x *SupportTicket) GetType() SupportType + func (x *SupportTicket) ProtoReflect() protoreflect.Message + func (x *SupportTicket) Reset() + func (x *SupportTicket) String() string + type SupportType int32 + const SupportType_BugReport + const SupportType_Suggestion + const SupportType_UserReport + func (SupportType) Descriptor() protoreflect.EnumDescriptor + func (SupportType) EnumDescriptor() ([]byte, []int) + func (SupportType) Type() protoreflect.EnumType + func (x SupportType) Enum() *SupportType + func (x SupportType) Number() protoreflect.EnumNumber + func (x SupportType) String() string + type TicketEntry struct + ID string + Ticket *SupportTicket + func (*TicketEntry) Descriptor() ([]byte, []int) + func (*TicketEntry) ProtoMessage() + func (x *TicketEntry) GetID() string + func (x *TicketEntry) GetTicket() *SupportTicket + func (x *TicketEntry) ProtoReflect() protoreflect.Message + func (x *TicketEntry) Reset() + func (x *TicketEntry) String() string + type TicketQuery struct + DomainMask uint32 + RealmID int64 + TypeMask uint32 + WebToken string + func (*TicketQuery) Descriptor() ([]byte, []int) + func (*TicketQuery) ProtoMessage() + func (x *TicketQuery) GetDomainMask() uint32 + func (x *TicketQuery) GetRealmID() int64 + func (x *TicketQuery) GetTypeMask() uint32 + func (x *TicketQuery) GetWebToken() string + func (x *TicketQuery) ProtoReflect() protoreflect.Message + func (x *TicketQuery) Reset() + func (x *TicketQuery) String() string + type TicketQueryResponse struct + Entries []*TicketEntry + func (*TicketQueryResponse) Descriptor() ([]byte, []int) + func (*TicketQueryResponse) ProtoMessage() + func (x *TicketQueryResponse) GetEntries() []*TicketEntry + func (x *TicketQueryResponse) ProtoReflect() protoreflect.Message + func (x *TicketQueryResponse) Reset() + func (x *TicketQueryResponse) String() string + type TicketSubmissionResult struct + TicketID string + func (*TicketSubmissionResult) Descriptor() ([]byte, []int) + func (*TicketSubmissionResult) ProtoMessage() + func (x *TicketSubmissionResult) GetTicketID() string + func (x *TicketSubmissionResult) ProtoReflect() protoreflect.Message + func (x *TicketSubmissionResult) Reset() + func (x *TicketSubmissionResult) String() string + type Tier int32 + const Tier_Admin + const Tier_GameMaster + const Tier_NormalPlayer + const Tier_Privileged + func (Tier) Descriptor() protoreflect.EnumDescriptor + func (Tier) EnumDescriptor() ([]byte, []int) + func (Tier) Type() protoreflect.EnumType + func (x Tier) Enum() *Tier + func (x Tier) Number() protoreflect.EnumNumber + func (x Tier) String() string + type UnimplementedHomeServiceServer struct + func (UnimplementedHomeServiceServer) AnnounceRealm(context.Context, *AnnounceRealmMsg) (*StatusMsg, error) + func (UnimplementedHomeServiceServer) EnlistRealm(context.Context, *EnlistRealmRequest) (*EnlistRealmResponse, error) + func (UnimplementedHomeServiceServer) GetVersionData(context.Context, *emptypb.Empty) (*VersionData, error) + func (UnimplementedHomeServiceServer) Ping(context.Context, *PingMsg) (*PingMsg, error) + func (UnimplementedHomeServiceServer) QueryTickets(context.Context, *TicketQuery) (*TicketQueryResponse, error) + func (UnimplementedHomeServiceServer) SignIn(context.Context, *Credentials) (*SessionInfo, error) + func (UnimplementedHomeServiceServer) SubmitTicket(context.Context, *SupportTicket) (*TicketSubmissionResult, error) + func (UnimplementedHomeServiceServer) VerifyWorld(context.Context, *VerifyWorldQuery) (*VerifyWorldResponse, error) + type UnsafeHomeServiceServer interface + type VerifyWorldQuery struct + Account string + Build uint32 + Digest []byte + GameAccount string + IP string + RealmID uint64 + Salt []byte + Seed []byte + func (*VerifyWorldQuery) Descriptor() ([]byte, []int) + func (*VerifyWorldQuery) ProtoMessage() + func (x *VerifyWorldQuery) GetAccount() string + func (x *VerifyWorldQuery) GetBuild() uint32 + func (x *VerifyWorldQuery) GetDigest() []byte + func (x *VerifyWorldQuery) GetGameAccount() string + func (x *VerifyWorldQuery) GetIP() string + func (x *VerifyWorldQuery) GetRealmID() uint64 + func (x *VerifyWorldQuery) GetSalt() []byte + func (x *VerifyWorldQuery) GetSeed() []byte + func (x *VerifyWorldQuery) ProtoReflect() protoreflect.Message + func (x *VerifyWorldQuery) Reset() + func (x *VerifyWorldQuery) String() string + type VerifyWorldResponse struct + Account uint64 + GameAccount uint64 + Locale uint32 + SessionKey []byte + Status Status + Tier Tier + func (*VerifyWorldResponse) Descriptor() ([]byte, []int) + func (*VerifyWorldResponse) ProtoMessage() + func (x *VerifyWorldResponse) GetAccount() uint64 + func (x *VerifyWorldResponse) GetGameAccount() uint64 + func (x *VerifyWorldResponse) GetLocale() uint32 + func (x *VerifyWorldResponse) GetSessionKey() []byte + func (x *VerifyWorldResponse) GetStatus() Status + func (x *VerifyWorldResponse) GetTier() Tier + func (x *VerifyWorldResponse) ProtoReflect() protoreflect.Message + func (x *VerifyWorldResponse) Reset() + func (x *VerifyWorldResponse) String() string + type VersionData struct + CoreVersion string + func (*VersionData) Descriptor() ([]byte, []int) + func (*VersionData) ProtoMessage() + func (x *VersionData) GetCoreVersion() string + func (x *VersionData) ProtoReflect() protoreflect.Message + func (x *VersionData) Reset() + func (x *VersionData) String() string