Documentation ¶
Overview ¶
Package rpc is a generated protocol buffer package.
It is generated from these files:
common.proto events.proto profile.proto server.proto system.proto
It has these top-level messages:
Profile ProfileProperty ProfileTextures Event ProfileIdKey IdKey IdRequest GetIdRequest ProfileId NameHistory NameHistoryEntry BulkIdRequest BulkIdResponse Blacklist CheckBlacklistRequest CheckBlacklistResponse LoginRequest Status PluginList Plugin * Copyright 2018 Johannes Donath <johannesd@torchmind.com> * and other copyright owners as documented in the project's IP log. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
Index ¶
- Constants
- Variables
- func BlacklistFromRpc(blacklist *Blacklist) (*entity.Blacklist, error)
- func BulkIdsFromRpc(rpc *BulkIdResponse) ([]*entity.ProfileId, error)
- func EventFromRpc(event *Event) (*entity.Event, error)
- func EventKeyFromRpc(key *any.Any) (interface{}, error)
- func EventKeyToRpc(key interface{}) (*any.Any, error)
- func EventPayloadFromRpc(payload *any.Any) (interface{}, error)
- func EventPayloadToRpc(payload interface{}) (proto.Message, error)
- func EventTypeFromRpc(typ EventType) (entity.EventType, error)
- func NameChangeFromRpc(rpc *NameHistoryEntry) *entity.NameChange
- func NameChangesFromRpcArray(rpc []*NameHistoryEntry) []*entity.NameChange
- func NameHistoryFromRpc(history *NameHistory) *entity.NameChangeHistory
- func PluginMetadataFromRpc(metadata *Plugin) *plugin.Metadata
- func PluginMetadataListFromRpc(list *PluginList) []*plugin.Metadata
- func ProfileFromRpc(rpc *Profile) (*entity.Profile, error)
- func ProfileIdFromRpc(rpc *ProfileId) (*entity.ProfileId, error)
- func ProfileIdsFromRpcArray(rpc []*ProfileId) ([]*entity.ProfileId, error)
- func ProfilePropertiesFromRpcArray(rpc []*ProfileProperty) map[string]*entity.ProfileProperty
- func ProfilePropertyFromRpc(rpc *ProfileProperty) *entity.ProfileProperty
- func ProfileTexturesFromRpc(rpc *ProfileTextures) (*entity.ProfileTextures, error)
- func RegisterEventServiceServer(s *grpc.Server, srv EventServiceServer)
- func RegisterProfileServiceServer(s *grpc.Server, srv ProfileServiceServer)
- func RegisterServerServiceServer(s *grpc.Server, srv ServerServiceServer)
- func RegisterSystemServiceServer(s *grpc.Server, srv SystemServiceServer)
- func StatusFromRpc(rpc *Status) *entity.Status
- type Blacklist
- type BulkIdRequest
- type BulkIdResponse
- type CheckBlacklistRequest
- type CheckBlacklistResponse
- type Event
- type EventAction
- type EventServiceClient
- type EventServiceServer
- type EventService_StreamEventsClient
- type EventService_StreamEventsServer
- type EventType
- type GetIdRequest
- type IdKey
- type IdRequest
- type LoginRequest
- type NameHistory
- type NameHistoryEntry
- func (*NameHistoryEntry) Descriptor() ([]byte, []int)
- func (m *NameHistoryEntry) GetChangedToAt() int64
- func (m *NameHistoryEntry) GetName() string
- func (m *NameHistoryEntry) GetValidUntil() int64
- func (*NameHistoryEntry) ProtoMessage()
- func (m *NameHistoryEntry) Reset()
- func (m *NameHistoryEntry) String() string
- type Plugin
- type PluginList
- type Profile
- func (*Profile) Descriptor() ([]byte, []int)
- func (m *Profile) GetId() string
- func (m *Profile) GetName() string
- func (m *Profile) GetProperties() []*ProfileProperty
- func (m *Profile) GetTextures() *ProfileTextures
- func (p *Profile) IsPopulated() bool
- func (*Profile) ProtoMessage()
- func (m *Profile) Reset()
- func (m *Profile) String() string
- type ProfileId
- func (*ProfileId) Descriptor() ([]byte, []int)
- func (m *ProfileId) GetFirstSeenAt() int64
- func (m *ProfileId) GetId() string
- func (m *ProfileId) GetLastSeenAt() int64
- func (m *ProfileId) GetName() string
- func (m *ProfileId) GetValidUntil() int64
- func (p *ProfileId) IsPopulated() bool
- func (*ProfileId) ProtoMessage()
- func (m *ProfileId) Reset()
- func (m *ProfileId) String() string
- type ProfileIdKey
- type ProfileProperty
- func (*ProfileProperty) Descriptor() ([]byte, []int)
- func (m *ProfileProperty) GetName() string
- func (m *ProfileProperty) GetSignature() string
- func (m *ProfileProperty) GetValue() string
- func (*ProfileProperty) ProtoMessage()
- func (m *ProfileProperty) Reset()
- func (m *ProfileProperty) String() string
- type ProfileServiceClient
- type ProfileServiceServer
- type ProfileTextures
- func (*ProfileTextures) Descriptor() ([]byte, []int)
- func (m *ProfileTextures) GetCapeUrl() string
- func (m *ProfileTextures) GetProfileId() string
- func (m *ProfileTextures) GetProfileName() string
- func (m *ProfileTextures) GetSkinUrl() string
- func (m *ProfileTextures) GetTimestamp() int64
- func (*ProfileTextures) ProtoMessage()
- func (m *ProfileTextures) Reset()
- func (m *ProfileTextures) String() string
- type ServerServiceClient
- type ServerServiceServer
- type Status
- func (*Status) Descriptor() ([]byte, []int)
- func (m *Status) GetBrand() string
- func (m *Status) GetBuildTimestamp() int64
- func (m *Status) GetCommitHash() string
- func (m *Status) GetVersion() string
- func (m *Status) GetVersionFull() string
- func (*Status) ProtoMessage()
- func (m *Status) Reset()
- func (m *Status) String() string
- type SystemServiceClient
- type SystemServiceServer
Constants ¶
const MessageTypeBaseUrl = "github.com/dotStart/Stockpile/stockpile/server/rpc/"
Variables ¶
var EventAction_name = map[int32]string{
0: "POPULATED",
1: "UPDATED",
}
var EventAction_value = map[string]int32{
"POPULATED": 0,
"UPDATED": 1,
}
var EventType_name = map[int32]string{
0: "PROFILE_ID",
1: "NAME_HISTORY",
2: "PROFILE",
3: "BLACKLIST",
}
var EventType_value = map[string]int32{
"PROFILE_ID": 0,
"NAME_HISTORY": 1,
"PROFILE": 2,
"BLACKLIST": 3,
}
Functions ¶
func BulkIdsFromRpc ¶
func BulkIdsFromRpc(rpc *BulkIdResponse) ([]*entity.ProfileId, error)
converts the result of a bulk id resolve operation from its rpc representation
func EventKeyFromRpc ¶
decodes an arbitrary key type from its rpc representation
func EventKeyToRpc ¶
encodes an arbitrary key type into its rpc representation
func EventPayloadFromRpc ¶
converts an event payload from its rpc format
func EventPayloadToRpc ¶
converts an event payload into its rpc format
func EventTypeFromRpc ¶
converts an event type from its rpc representation
func NameChangeFromRpc ¶
func NameChangeFromRpc(rpc *NameHistoryEntry) *entity.NameChange
converts a name change from its rpc representation
func NameChangesFromRpcArray ¶
func NameChangesFromRpcArray(rpc []*NameHistoryEntry) []*entity.NameChange
converts an array of name changes from their rpc representation
func NameHistoryFromRpc ¶
func NameHistoryFromRpc(history *NameHistory) *entity.NameChangeHistory
converts a name history from its rpc representation
func PluginMetadataFromRpc ¶
func PluginMetadataListFromRpc ¶
func PluginMetadataListFromRpc(list *PluginList) []*plugin.Metadata
func ProfileFromRpc ¶
converts a profile from its rpc representation
func ProfileIdFromRpc ¶
Converts a profileId into its fully parsed representation
func ProfileIdsFromRpcArray ¶
Converts an array of profileIds into their fully parsed representation
func ProfilePropertiesFromRpcArray ¶
func ProfilePropertiesFromRpcArray(rpc []*ProfileProperty) map[string]*entity.ProfileProperty
converts an array of profile properties from their rpc representation
func ProfilePropertyFromRpc ¶
func ProfilePropertyFromRpc(rpc *ProfileProperty) *entity.ProfileProperty
converts a profile property from its rpc representation
func ProfileTexturesFromRpc ¶
func ProfileTexturesFromRpc(rpc *ProfileTextures) (*entity.ProfileTextures, error)
func RegisterEventServiceServer ¶
func RegisterEventServiceServer(s *grpc.Server, srv EventServiceServer)
func RegisterProfileServiceServer ¶
func RegisterProfileServiceServer(s *grpc.Server, srv ProfileServiceServer)
func RegisterServerServiceServer ¶
func RegisterServerServiceServer(s *grpc.Server, srv ServerServiceServer)
func RegisterSystemServiceServer ¶
func RegisterSystemServiceServer(s *grpc.Server, srv SystemServiceServer)
func StatusFromRpc ¶
Types ¶
type Blacklist ¶
type Blacklist struct {
Hashes []string `protobuf:"bytes,1,rep,name=hashes" json:"hashes,omitempty"`
}
* Represents the current server blacklist.
func BlacklistToRpc ¶
func (*Blacklist) Descriptor ¶
func (*Blacklist) ProtoMessage ¶
func (*Blacklist) ProtoMessage()
type BulkIdRequest ¶
type BulkIdRequest struct {
Names []string `protobuf:"bytes,1,rep,name=names" json:"names,omitempty"`
}
* Stores the parameters for bulk id requests.
func (*BulkIdRequest) Descriptor ¶
func (*BulkIdRequest) Descriptor() ([]byte, []int)
func (*BulkIdRequest) GetNames ¶
func (m *BulkIdRequest) GetNames() []string
func (*BulkIdRequest) ProtoMessage ¶
func (*BulkIdRequest) ProtoMessage()
func (*BulkIdRequest) Reset ¶
func (m *BulkIdRequest) Reset()
func (*BulkIdRequest) String ¶
func (m *BulkIdRequest) String() string
type BulkIdResponse ¶
type BulkIdResponse struct {
Ids []*ProfileId `protobuf:"bytes,1,rep,name=ids" json:"ids,omitempty"`
}
* Represents a list of bulk id responses.
func BulkIdsToRpc ¶
func BulkIdsToRpc(ids []*entity.ProfileId) *BulkIdResponse
converts the result of a bulk id resolve operation into its rpc representation
func (*BulkIdResponse) Descriptor ¶
func (*BulkIdResponse) Descriptor() ([]byte, []int)
func (*BulkIdResponse) GetIds ¶
func (m *BulkIdResponse) GetIds() []*ProfileId
func (*BulkIdResponse) IsPopulated ¶
func (r *BulkIdResponse) IsPopulated() bool
evaluates whether the message has been populated with actual data (e.g. whether it is not empty)
func (*BulkIdResponse) ProtoMessage ¶
func (*BulkIdResponse) ProtoMessage()
func (*BulkIdResponse) Reset ¶
func (m *BulkIdResponse) Reset()
func (*BulkIdResponse) String ¶
func (m *BulkIdResponse) String() string
type CheckBlacklistRequest ¶
type CheckBlacklistRequest struct {
Addresses []string `protobuf:"bytes,1,rep,name=addresses" json:"addresses,omitempty"`
}
* Represents a request which evaluates whether the passed hostnames or ip addresses match the server blacklist
func (*CheckBlacklistRequest) Descriptor ¶
func (*CheckBlacklistRequest) Descriptor() ([]byte, []int)
func (*CheckBlacklistRequest) GetAddresses ¶
func (m *CheckBlacklistRequest) GetAddresses() []string
func (*CheckBlacklistRequest) ProtoMessage ¶
func (*CheckBlacklistRequest) ProtoMessage()
func (*CheckBlacklistRequest) Reset ¶
func (m *CheckBlacklistRequest) Reset()
func (*CheckBlacklistRequest) String ¶
func (m *CheckBlacklistRequest) String() string
type CheckBlacklistResponse ¶
type CheckBlacklistResponse struct {
MatchedAddresses []string `protobuf:"bytes,1,rep,name=matchedAddresses" json:"matchedAddresses,omitempty"`
}
* represents a response to a prior blacklist check
func (*CheckBlacklistResponse) Descriptor ¶
func (*CheckBlacklistResponse) Descriptor() ([]byte, []int)
func (*CheckBlacklistResponse) GetMatchedAddresses ¶
func (m *CheckBlacklistResponse) GetMatchedAddresses() []string
func (*CheckBlacklistResponse) ProtoMessage ¶
func (*CheckBlacklistResponse) ProtoMessage()
func (*CheckBlacklistResponse) Reset ¶
func (m *CheckBlacklistResponse) Reset()
func (*CheckBlacklistResponse) String ¶
func (m *CheckBlacklistResponse) String() string
type Event ¶
type Event struct { Type EventType `protobuf:"varint,1,opt,name=type,enum=rpc.EventType" json:"type,omitempty"` Action EventAction `protobuf:"varint,2,opt,name=action,enum=rpc.EventAction" json:"action,omitempty"` Key *google_protobuf.Any `protobuf:"bytes,3,opt,name=key" json:"key,omitempty"` Object *google_protobuf.Any `protobuf:"bytes,4,opt,name=object" json:"object,omitempty"` }
func EventToRpc ¶
converts an arbitrary event into its rpc representation
func (*Event) Descriptor ¶
func (*Event) GetAction ¶
func (m *Event) GetAction() EventAction
func (*Event) GetKey ¶
func (m *Event) GetKey() *google_protobuf.Any
func (*Event) GetObject ¶
func (m *Event) GetObject() *google_protobuf.Any
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
type EventAction ¶
type EventAction int32
const ( EventAction_POPULATED EventAction = 0 EventAction_UPDATED EventAction = 1 )
func (EventAction) EnumDescriptor ¶
func (EventAction) EnumDescriptor() ([]byte, []int)
func (EventAction) String ¶
func (x EventAction) String() string
type EventServiceClient ¶
type EventServiceClient interface {
StreamEvents(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (EventService_StreamEventsClient, error)
}
func NewEventServiceClient ¶
func NewEventServiceClient(cc *grpc.ClientConn) EventServiceClient
type EventServiceServer ¶
type EventServiceServer interface {
StreamEvents(*google_protobuf1.Empty, EventService_StreamEventsServer) error
}
type EventService_StreamEventsClient ¶
type EventService_StreamEventsClient interface { Recv() (*Event, error) grpc.ClientStream }
type EventService_StreamEventsServer ¶
type EventService_StreamEventsServer interface { Send(*Event) error grpc.ServerStream }
type EventType ¶
type EventType int32
func EventTypeToRpc ¶
converts an event type into its rpc representation
func (EventType) EnumDescriptor ¶
type GetIdRequest ¶
type GetIdRequest struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Timestamp int64 `protobuf:"varint,2,opt,name=timestamp" json:"timestamp,omitempty"` }
* Stores the parameters for id requests (based on the respective display name and timestamp)
func (*GetIdRequest) Descriptor ¶
func (*GetIdRequest) Descriptor() ([]byte, []int)
func (*GetIdRequest) GetName ¶
func (m *GetIdRequest) GetName() string
func (*GetIdRequest) GetTimestamp ¶
func (m *GetIdRequest) GetTimestamp() int64
func (*GetIdRequest) ProtoMessage ¶
func (*GetIdRequest) ProtoMessage()
func (*GetIdRequest) Reset ¶
func (m *GetIdRequest) Reset()
func (*GetIdRequest) String ¶
func (m *GetIdRequest) String() string
type IdKey ¶
type IdKey struct {
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}
func (*IdKey) Descriptor ¶
func (*IdKey) ProtoMessage ¶
func (*IdKey) ProtoMessage()
type IdRequest ¶
type IdRequest struct {
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}
* Used to transmit Mojang or RFC formatted UUIDs as the sole parameter.
func (*IdRequest) Descriptor ¶
func (*IdRequest) ProtoMessage ¶
func (*IdRequest) ProtoMessage()
type LoginRequest ¶
type LoginRequest struct { DisplayName string `protobuf:"bytes,1,opt,name=displayName" json:"displayName,omitempty"` ServerId string `protobuf:"bytes,2,opt,name=serverId" json:"serverId,omitempty"` Ip string `protobuf:"bytes,3,opt,name=ip" json:"ip,omitempty"` }
func (*LoginRequest) Descriptor ¶
func (*LoginRequest) Descriptor() ([]byte, []int)
func (*LoginRequest) GetDisplayName ¶
func (m *LoginRequest) GetDisplayName() string
func (*LoginRequest) GetIp ¶
func (m *LoginRequest) GetIp() string
func (*LoginRequest) GetServerId ¶
func (m *LoginRequest) GetServerId() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) Reset ¶
func (m *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (m *LoginRequest) String() string
type NameHistory ¶
type NameHistory struct { History []*NameHistoryEntry `protobuf:"bytes,1,rep,name=history" json:"history,omitempty"` ValidUntil int64 `protobuf:"varint,2,opt,name=validUntil" json:"validUntil,omitempty"` }
* Represents a complete name history.
func NameHistoryToRpc ¶
func NameHistoryToRpc(history *entity.NameChangeHistory) *NameHistory
converts a name history element into its rpc representation
func (*NameHistory) Descriptor ¶
func (*NameHistory) Descriptor() ([]byte, []int)
func (*NameHistory) GetHistory ¶
func (m *NameHistory) GetHistory() []*NameHistoryEntry
func (*NameHistory) GetValidUntil ¶
func (m *NameHistory) GetValidUntil() int64
func (*NameHistory) IsPopulated ¶
func (r *NameHistory) IsPopulated() bool
evaluates whether the message has been populated with actual data (e.g. whether it is not empty)
func (*NameHistory) ProtoMessage ¶
func (*NameHistory) ProtoMessage()
func (*NameHistory) Reset ¶
func (m *NameHistory) Reset()
func (*NameHistory) String ¶
func (m *NameHistory) String() string
type NameHistoryEntry ¶
type NameHistoryEntry struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` ChangedToAt int64 `protobuf:"varint,2,opt,name=changedToAt" json:"changedToAt,omitempty"` ValidUntil int64 `protobuf:"varint,3,opt,name=validUntil" json:"validUntil,omitempty"` }
* Represents a single entry in the name history.
func NameChangeToRpc ¶
func NameChangeToRpc(change *entity.NameChange) *NameHistoryEntry
converts a name change into its rpc representation
func NameChangesToRpcArray ¶
func NameChangesToRpcArray(changes []*entity.NameChange) []*NameHistoryEntry
converts an array of name changes into their rpc representation
func (*NameHistoryEntry) Descriptor ¶
func (*NameHistoryEntry) Descriptor() ([]byte, []int)
func (*NameHistoryEntry) GetChangedToAt ¶
func (m *NameHistoryEntry) GetChangedToAt() int64
func (*NameHistoryEntry) GetName ¶
func (m *NameHistoryEntry) GetName() string
func (*NameHistoryEntry) GetValidUntil ¶
func (m *NameHistoryEntry) GetValidUntil() int64
func (*NameHistoryEntry) ProtoMessage ¶
func (*NameHistoryEntry) ProtoMessage()
func (*NameHistoryEntry) Reset ¶
func (m *NameHistoryEntry) Reset()
func (*NameHistoryEntry) String ¶
func (m *NameHistoryEntry) String() string
type Plugin ¶
type Plugin struct { Name string `protobuf:"bytes,1,opt,name=Name,json=name" json:"Name,omitempty"` Version string `protobuf:"bytes,2,opt,name=Version,json=version" json:"Version,omitempty"` Authors []string `protobuf:"bytes,3,rep,name=Authors,json=authors" json:"Authors,omitempty"` Website string `protobuf:"bytes,4,opt,name=Website,json=website" json:"Website,omitempty"` }
func PluginMetadataToRpc ¶
func (*Plugin) Descriptor ¶
func (*Plugin) GetAuthors ¶
func (*Plugin) GetVersion ¶
func (*Plugin) GetWebsite ¶
func (*Plugin) ProtoMessage ¶
func (*Plugin) ProtoMessage()
type PluginList ¶
type PluginList struct {
Plugins []*Plugin `protobuf:"bytes,1,rep,name=Plugins,json=plugins" json:"Plugins,omitempty"`
}
func PluginMetadataListToRpc ¶
func PluginMetadataListToRpc(list []*plugin.Metadata) *PluginList
func (*PluginList) Descriptor ¶
func (*PluginList) Descriptor() ([]byte, []int)
func (*PluginList) GetPlugins ¶
func (m *PluginList) GetPlugins() []*Plugin
func (*PluginList) ProtoMessage ¶
func (*PluginList) ProtoMessage()
func (*PluginList) Reset ¶
func (m *PluginList) Reset()
func (*PluginList) String ¶
func (m *PluginList) String() string
type Profile ¶
type Profile struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Properties []*ProfileProperty `protobuf:"bytes,3,rep,name=properties" json:"properties,omitempty"` Textures *ProfileTextures `protobuf:"bytes,4,opt,name=textures" json:"textures,omitempty"` }
* Represents a complete user profile.
func ProfileToRpc ¶
converts a profile into its rpc representation
func (*Profile) Descriptor ¶
func (*Profile) GetProperties ¶
func (m *Profile) GetProperties() []*ProfileProperty
func (*Profile) GetTextures ¶
func (m *Profile) GetTextures() *ProfileTextures
func (*Profile) IsPopulated ¶
evaluates whether the message has been populated with actual data (e.g. whether it is not empty)
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
type ProfileId ¶
type ProfileId struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` ValidUntil int64 `protobuf:"varint,5,opt,name=validUntil" json:"validUntil,omitempty"` FirstSeenAt int64 `protobuf:"varint,6,opt,name=firstSeenAt" json:"firstSeenAt,omitempty"` LastSeenAt int64 `protobuf:"varint,7,opt,name=lastSeenAt" json:"lastSeenAt,omitempty"` }
* Represents a profile <-> name mapping at a specified time.
func ProfileIdToRpc ¶
Converts a profileId into its rpc representation
func ProfileIdsToRpcArray ¶
Converts an array of profileIds into their rpc representation
func (*ProfileId) Descriptor ¶
func (*ProfileId) GetFirstSeenAt ¶
func (*ProfileId) GetLastSeenAt ¶
func (*ProfileId) GetValidUntil ¶
func (*ProfileId) IsPopulated ¶
evaluates whether the message has been populated with actual data (e.g. whether it is not empty)
func (*ProfileId) ProtoMessage ¶
func (*ProfileId) ProtoMessage()
type ProfileIdKey ¶
type ProfileIdKey struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` At int64 `protobuf:"varint,2,opt,name=at" json:"at,omitempty"` }
func (*ProfileIdKey) Descriptor ¶
func (*ProfileIdKey) Descriptor() ([]byte, []int)
func (*ProfileIdKey) GetAt ¶
func (m *ProfileIdKey) GetAt() int64
func (*ProfileIdKey) GetName ¶
func (m *ProfileIdKey) GetName() string
func (*ProfileIdKey) ProtoMessage ¶
func (*ProfileIdKey) ProtoMessage()
func (*ProfileIdKey) Reset ¶
func (m *ProfileIdKey) Reset()
func (*ProfileIdKey) String ¶
func (m *ProfileIdKey) String() string
type ProfileProperty ¶
type ProfileProperty struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` Signature string `protobuf:"bytes,3,opt,name=signature" json:"signature,omitempty"` }
func ProfilePropertiesToRpcArray ¶
func ProfilePropertiesToRpcArray(props map[string]*entity.ProfileProperty) []*ProfileProperty
converts a map of profile properties into their rpc representation
func ProfilePropertyToRpc ¶
func ProfilePropertyToRpc(prop *entity.ProfileProperty) *ProfileProperty
converts a profile property into its rpc representation
func (*ProfileProperty) Descriptor ¶
func (*ProfileProperty) Descriptor() ([]byte, []int)
func (*ProfileProperty) GetName ¶
func (m *ProfileProperty) GetName() string
func (*ProfileProperty) GetSignature ¶
func (m *ProfileProperty) GetSignature() string
func (*ProfileProperty) GetValue ¶
func (m *ProfileProperty) GetValue() string
func (*ProfileProperty) ProtoMessage ¶
func (*ProfileProperty) ProtoMessage()
func (*ProfileProperty) Reset ¶
func (m *ProfileProperty) Reset()
func (*ProfileProperty) String ¶
func (m *ProfileProperty) String() string
type ProfileServiceClient ¶
type ProfileServiceClient interface { // * // Resolves the profile identifier and correct casing of a given name. // // When unix epoch (e.g. zero) is passed instead of an actual timestamp, the // original user of a name will be resolved (e.g. associations prior to name // changing support). // // If no profile has been associated with the specified name, an unpopulated // object is returned instead. GetId(ctx context.Context, in *GetIdRequest, opts ...grpc.CallOption) (*ProfileId, error) // * // Retrieves a complete history of name changes for the profile associated // with a given identifier. // // Names which have been changed to at unix epoch (e.g. zero) refer to the // original account name. // // When no profile with the specified identifier exists, an unpopulated object // is returned instead. GetNameHistory(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*NameHistory, error) // * // Resolves the profile identifiers and correct casings of multiple names at // once. // // If a name cannot be found, its association will be omitted from the // resulting array. // // Bulk requests do not accept timestamps and will always resolve associations // at the current time. BulkGetId(ctx context.Context, in *BulkIdRequest, opts ...grpc.CallOption) (*BulkIdResponse, error) // * // Retrieves a profile based on its associated identifier. // // If no profile with the specified identifier exists, an unpopulated object // is returned instead. GetProfile(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*Profile, error) }
func NewProfileServiceClient ¶
func NewProfileServiceClient(cc *grpc.ClientConn) ProfileServiceClient
type ProfileServiceServer ¶
type ProfileServiceServer interface { // * // Resolves the profile identifier and correct casing of a given name. // // When unix epoch (e.g. zero) is passed instead of an actual timestamp, the // original user of a name will be resolved (e.g. associations prior to name // changing support). // // If no profile has been associated with the specified name, an unpopulated // object is returned instead. GetId(context.Context, *GetIdRequest) (*ProfileId, error) // * // Retrieves a complete history of name changes for the profile associated // with a given identifier. // // Names which have been changed to at unix epoch (e.g. zero) refer to the // original account name. // // When no profile with the specified identifier exists, an unpopulated object // is returned instead. GetNameHistory(context.Context, *IdRequest) (*NameHistory, error) // * // Resolves the profile identifiers and correct casings of multiple names at // once. // // If a name cannot be found, its association will be omitted from the // resulting array. // // Bulk requests do not accept timestamps and will always resolve associations // at the current time. BulkGetId(context.Context, *BulkIdRequest) (*BulkIdResponse, error) // * // Retrieves a profile based on its associated identifier. // // If no profile with the specified identifier exists, an unpopulated object // is returned instead. GetProfile(context.Context, *IdRequest) (*Profile, error) }
type ProfileTextures ¶
type ProfileTextures struct { ProfileId string `protobuf:"bytes,1,opt,name=profileId" json:"profileId,omitempty"` ProfileName string `protobuf:"bytes,2,opt,name=profileName" json:"profileName,omitempty"` SkinUrl string `protobuf:"bytes,3,opt,name=skinUrl" json:"skinUrl,omitempty"` CapeUrl string `protobuf:"bytes,4,opt,name=capeUrl" json:"capeUrl,omitempty"` Timestamp int64 `protobuf:"varint,5,opt,name=timestamp" json:"timestamp,omitempty"` }
func ProfileTexturesToRpc ¶
func ProfileTexturesToRpc(tex *entity.ProfileTextures) *ProfileTextures
converts a profile textures attribute into its rpc representation
func (*ProfileTextures) Descriptor ¶
func (*ProfileTextures) Descriptor() ([]byte, []int)
func (*ProfileTextures) GetCapeUrl ¶
func (m *ProfileTextures) GetCapeUrl() string
func (*ProfileTextures) GetProfileId ¶
func (m *ProfileTextures) GetProfileId() string
func (*ProfileTextures) GetProfileName ¶
func (m *ProfileTextures) GetProfileName() string
func (*ProfileTextures) GetSkinUrl ¶
func (m *ProfileTextures) GetSkinUrl() string
func (*ProfileTextures) GetTimestamp ¶
func (m *ProfileTextures) GetTimestamp() int64
func (*ProfileTextures) ProtoMessage ¶
func (*ProfileTextures) ProtoMessage()
func (*ProfileTextures) Reset ¶
func (m *ProfileTextures) Reset()
func (*ProfileTextures) String ¶
func (m *ProfileTextures) String() string
type ServerServiceClient ¶
type ServerServiceClient interface { // * // Retrieves a cached version of the entire server blacklist. GetBlacklist(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*Blacklist, error) // * // Evaluates whether a given address has been blacklisted. // // This method accepts both IP v4 addresses and regular hostnames. CheckBlacklist(ctx context.Context, in *CheckBlacklistRequest, opts ...grpc.CallOption) (*CheckBlacklistResponse, error) // * // Performs a cache assisted login (e.g. when a player joins). // // The player profile will automatically be placed inside the cache storage // backend when this method is invoked and will thus greatly reduce the // latency of succeeding requests. // // Logins do not count towards the API rate limit. Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*Profile, error) }
func NewServerServiceClient ¶
func NewServerServiceClient(cc *grpc.ClientConn) ServerServiceClient
type ServerServiceServer ¶
type ServerServiceServer interface { // * // Retrieves a cached version of the entire server blacklist. GetBlacklist(context.Context, *google_protobuf1.Empty) (*Blacklist, error) // * // Evaluates whether a given address has been blacklisted. // // This method accepts both IP v4 addresses and regular hostnames. CheckBlacklist(context.Context, *CheckBlacklistRequest) (*CheckBlacklistResponse, error) // * // Performs a cache assisted login (e.g. when a player joins). // // The player profile will automatically be placed inside the cache storage // backend when this method is invoked and will thus greatly reduce the // latency of succeeding requests. // // Logins do not count towards the API rate limit. Login(context.Context, *LoginRequest) (*Profile, error) }
type Status ¶
type Status struct { Brand string `protobuf:"bytes,1,opt,name=Brand,json=brand" json:"Brand,omitempty"` Version string `protobuf:"bytes,2,opt,name=Version,json=version" json:"Version,omitempty"` VersionFull string `protobuf:"bytes,3,opt,name=VersionFull,json=versionFull" json:"VersionFull,omitempty"` CommitHash string `protobuf:"bytes,4,opt,name=CommitHash,json=commitHash" json:"CommitHash,omitempty"` BuildTimestamp int64 `protobuf:"varint,5,opt,name=BuildTimestamp,json=buildTimestamp" json:"BuildTimestamp,omitempty"` }
func (*Status) Descriptor ¶
func (*Status) GetBuildTimestamp ¶
func (*Status) GetCommitHash ¶
func (*Status) GetVersion ¶
func (*Status) GetVersionFull ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
type SystemServiceClient ¶
type SystemServiceClient interface { GetStatus(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*Status, error) GetPlugins(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*PluginList, error) }
func NewSystemServiceClient ¶
func NewSystemServiceClient(cc *grpc.ClientConn) SystemServiceClient
type SystemServiceServer ¶
type SystemServiceServer interface { GetStatus(context.Context, *google_protobuf1.Empty) (*Status, error) GetPlugins(context.Context, *google_protobuf1.Empty) (*PluginList, error) }