Documentation
¶
Index ¶
- Variables
- type Account
- func (m *Account) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Account) CloneVT() *Account
- func (this *Account) EqualMessageVT(thatMsg any) bool
- func (this *Account) EqualVT(that *Account) bool
- func (x *Account) GetDisplayName() string
- func (x *Account) GetSteamId64() uint64
- func (x *Account) MarshalJSON() ([]byte, error)
- func (x *Account) MarshalProtoJSON(s *json.MarshalState)
- func (x *Account) MarshalProtoText() string
- func (m *Account) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Account) MarshalToVT(dAtA []byte) (int, error)
- func (m *Account) MarshalVT() (dAtA []byte, err error)
- func (*Account) ProtoMessage()
- func (x *Account) Reset()
- func (m *Account) SizeVT() (n int)
- func (x *Account) String() string
- func (x *Account) UnmarshalJSON(b []byte) error
- func (x *Account) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Account) UnmarshalVT(dAtA []byte) error
- type Error
- func (m *Error) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Error) CloneVT() *Error
- func (this *Error) EqualMessageVT(thatMsg any) bool
- func (this *Error) EqualVT(that *Error) bool
- func (x *Error) GetCode() string
- func (x *Error) GetMessage() string
- func (x *Error) MarshalJSON() ([]byte, error)
- func (x *Error) MarshalProtoJSON(s *json.MarshalState)
- func (x *Error) MarshalProtoText() string
- func (m *Error) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Error) MarshalToVT(dAtA []byte) (int, error)
- func (m *Error) MarshalVT() (dAtA []byte, err error)
- func (*Error) ProtoMessage()
- func (x *Error) Reset()
- func (m *Error) SizeVT() (n int)
- func (x *Error) String() string
- func (x *Error) UnmarshalJSON(b []byte) error
- func (x *Error) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Error) UnmarshalVT(dAtA []byte) error
- type Release
- func (m *Release) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Release) CloneVT() *Release
- func (this *Release) EqualMessageVT(thatMsg any) bool
- func (this *Release) EqualVT(that *Release) bool
- func (x *Release) GetName() string
- func (x *Release) GetReviewNote() string
- func (x *Release) GetReviewState() ReviewState
- func (x *Release) GetSlug() string
- func (x *Release) GetVersion() string
- func (x *Release) MarshalJSON() ([]byte, error)
- func (x *Release) MarshalProtoJSON(s *json.MarshalState)
- func (x *Release) MarshalProtoText() string
- func (m *Release) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Release) MarshalToVT(dAtA []byte) (int, error)
- func (m *Release) MarshalVT() (dAtA []byte, err error)
- func (*Release) ProtoMessage()
- func (x *Release) Reset()
- func (m *Release) SizeVT() (n int)
- func (x *Release) String() string
- func (x *Release) UnmarshalJSON(b []byte) error
- func (x *Release) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Release) UnmarshalVT(dAtA []byte) error
- type ReviewState
- func (x ReviewState) Enum() *ReviewState
- func (x ReviewState) MarshalJSON() ([]byte, error)
- func (x ReviewState) MarshalProtoJSON(s *json.MarshalState)
- func (x ReviewState) MarshalProtoText() string
- func (x ReviewState) MarshalText() ([]byte, error)
- func (x ReviewState) String() string
- func (x *ReviewState) UnmarshalJSON(b []byte) error
- func (x *ReviewState) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *ReviewState) UnmarshalText(b []byte) error
- type Session
- func (m *Session) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Session) CloneVT() *Session
- func (this *Session) EqualMessageVT(thatMsg any) bool
- func (this *Session) EqualVT(that *Session) bool
- func (x *Session) GetExpiresAt() int64
- func (x *Session) GetName() string
- func (x *Session) GetOrigin() string
- func (x *Session) GetToken() string
- func (x *Session) MarshalJSON() ([]byte, error)
- func (x *Session) MarshalProtoJSON(s *json.MarshalState)
- func (x *Session) MarshalProtoText() string
- func (m *Session) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Session) MarshalToVT(dAtA []byte) (int, error)
- func (m *Session) MarshalVT() (dAtA []byte, err error)
- func (*Session) ProtoMessage()
- func (x *Session) Reset()
- func (m *Session) SizeVT() (n int)
- func (x *Session) String() string
- func (x *Session) UnmarshalJSON(b []byte) error
- func (x *Session) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Session) UnmarshalVT(dAtA []byte) error
- type SignInExchange
- func (m *SignInExchange) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *SignInExchange) CloneVT() *SignInExchange
- func (this *SignInExchange) EqualMessageVT(thatMsg any) bool
- func (this *SignInExchange) EqualVT(that *SignInExchange) bool
- func (x *SignInExchange) GetCode() string
- func (x *SignInExchange) GetVerifier() string
- func (x *SignInExchange) MarshalJSON() ([]byte, error)
- func (x *SignInExchange) MarshalProtoJSON(s *json.MarshalState)
- func (x *SignInExchange) MarshalProtoText() string
- func (m *SignInExchange) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SignInExchange) MarshalToVT(dAtA []byte) (int, error)
- func (m *SignInExchange) MarshalVT() (dAtA []byte, err error)
- func (*SignInExchange) ProtoMessage()
- func (x *SignInExchange) Reset()
- func (m *SignInExchange) SizeVT() (n int)
- func (x *SignInExchange) String() string
- func (x *SignInExchange) UnmarshalJSON(b []byte) error
- func (x *SignInExchange) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *SignInExchange) UnmarshalVT(dAtA []byte) error
- type SignedIn
- func (m *SignedIn) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *SignedIn) CloneVT() *SignedIn
- func (this *SignedIn) EqualMessageVT(thatMsg any) bool
- func (this *SignedIn) EqualVT(that *SignedIn) bool
- func (x *SignedIn) GetAccount() *Account
- func (x *SignedIn) GetExpiresAt() int64
- func (x *SignedIn) GetToken() string
- func (x *SignedIn) MarshalJSON() ([]byte, error)
- func (x *SignedIn) MarshalProtoJSON(s *json.MarshalState)
- func (x *SignedIn) MarshalProtoText() string
- func (m *SignedIn) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SignedIn) MarshalToVT(dAtA []byte) (int, error)
- func (m *SignedIn) MarshalVT() (dAtA []byte, err error)
- func (*SignedIn) ProtoMessage()
- func (x *SignedIn) Reset()
- func (m *SignedIn) SizeVT() (n int)
- func (x *SignedIn) String() string
- func (x *SignedIn) UnmarshalJSON(b []byte) error
- func (x *SignedIn) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *SignedIn) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ReviewState_name = map[int32]string{ 0: "REVIEW_STATE_UNKNOWN", 1: "REVIEW_STATE_PENDING", 2: "REVIEW_STATE_APPROVED", 3: "REVIEW_STATE_REJECTED", } ReviewState_value = map[string]int32{ "REVIEW_STATE_UNKNOWN": 0, "REVIEW_STATE_PENDING": 1, "REVIEW_STATE_APPROVED": 2, "REVIEW_STATE_REJECTED": 3, } )
Enum value maps for ReviewState.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
// DisplayName is the player's name.
DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"displayName,omitempty"`
// SteamId64 is the player's Steam account.
SteamId64 uint64 `protobuf:"varint,6,opt,name=steam_id64,json=steamId64,proto3" json:"steamId64,omitempty"`
// contains filtered or unexported fields
}
Account names the signed-in player.
func (*Account) CloneMessageVT ¶
func (m *Account) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Account) EqualMessageVT ¶
func (*Account) GetDisplayName ¶
func (*Account) GetSteamId64 ¶
func (*Account) MarshalJSON ¶
MarshalJSON marshals the Account to JSON.
func (*Account) MarshalProtoJSON ¶
func (x *Account) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Account message to JSON.
func (*Account) MarshalProtoText ¶
func (*Account) MarshalToSizedBufferVT ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Account from JSON.
func (*Account) UnmarshalProtoJSON ¶
func (x *Account) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Account message from JSON.
func (*Account) UnmarshalVT ¶
type Error ¶
type Error struct {
// Code names the refusal for programs.
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
// Message explains the refusal to the creator.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
Error is a refused request's explanation.
func (*Error) CloneMessageVT ¶
func (m *Error) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Error) EqualMessageVT ¶
func (*Error) GetMessage ¶
func (*Error) MarshalJSON ¶
MarshalJSON marshals the Error to JSON.
func (*Error) MarshalProtoJSON ¶
func (x *Error) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Error message to JSON.
func (*Error) MarshalProtoText ¶
func (*Error) MarshalToSizedBufferVT ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Error from JSON.
func (*Error) UnmarshalProtoJSON ¶
func (x *Error) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Error message from JSON.
func (*Error) UnmarshalVT ¶
type Release ¶
type Release struct {
// Slug is the mod's slug.
Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"`
// Version is the release's version.
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// Name is the mod's name.
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// ReviewState is the release's review decision.
ReviewState ReviewState `protobuf:"varint,10,opt,name=review_state,json=reviewState,proto3" json:"reviewState,omitempty"`
// ReviewNote explains the decision.
ReviewNote string `protobuf:"bytes,13,opt,name=review_note,json=reviewNote,proto3" json:"reviewNote,omitempty"`
// contains filtered or unexported fields
}
Release is a published release as the service reports it.
func (*Release) CloneMessageVT ¶
func (m *Release) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Release) EqualMessageVT ¶
func (*Release) GetReviewNote ¶
func (*Release) GetReviewState ¶
func (x *Release) GetReviewState() ReviewState
func (*Release) GetVersion ¶
func (*Release) MarshalJSON ¶
MarshalJSON marshals the Release to JSON.
func (*Release) MarshalProtoJSON ¶
func (x *Release) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Release message to JSON.
func (*Release) MarshalProtoText ¶
func (*Release) MarshalToSizedBufferVT ¶
func (*Release) ProtoMessage ¶
func (*Release) ProtoMessage()
func (*Release) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Release from JSON.
func (*Release) UnmarshalProtoJSON ¶
func (x *Release) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Release message from JSON.
func (*Release) UnmarshalVT ¶
type ReviewState ¶
type ReviewState int32
ReviewState is a release's review decision.
const ( // REVIEW_STATE_UNKNOWN awaits a decision, as PENDING does. ReviewState_REVIEW_STATE_UNKNOWN ReviewState = 0 // REVIEW_STATE_PENDING awaits a person's decision. ReviewState_REVIEW_STATE_PENDING ReviewState = 1 // REVIEW_STATE_APPROVED may be played. ReviewState_REVIEW_STATE_APPROVED ReviewState = 2 // REVIEW_STATE_REJECTED was refused. ReviewState_REVIEW_STATE_REJECTED ReviewState = 3 )
func (ReviewState) Enum ¶
func (x ReviewState) Enum() *ReviewState
func (ReviewState) MarshalJSON ¶
func (x ReviewState) MarshalJSON() ([]byte, error)
MarshalJSON marshals the ReviewState to JSON.
func (ReviewState) MarshalProtoJSON ¶
func (x ReviewState) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the ReviewState to JSON.
func (ReviewState) MarshalProtoText ¶
func (x ReviewState) MarshalProtoText() string
func (ReviewState) MarshalText ¶
func (x ReviewState) MarshalText() ([]byte, error)
MarshalText marshals the ReviewState to text.
func (ReviewState) String ¶
func (x ReviewState) String() string
func (*ReviewState) UnmarshalJSON ¶
func (x *ReviewState) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the ReviewState from JSON.
func (*ReviewState) UnmarshalProtoJSON ¶
func (x *ReviewState) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the ReviewState from JSON.
func (*ReviewState) UnmarshalText ¶
func (x *ReviewState) UnmarshalText(b []byte) error
UnmarshalText unmarshals the ReviewState from text.
type Session ¶
type Session struct {
// Origin is the service that issued the session.
Origin string `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"`
// Token is the bearer credential.
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
// ExpiresAt is the session's expiry in Unix milliseconds.
ExpiresAt int64 `protobuf:"varint,3,opt,name=expires_at,json=expiresAt,proto3" json:"expiresAt,omitempty"`
// Name is the signed-in player's name.
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Session is the saved sign-in for one service origin.
func (*Session) CloneMessageVT ¶
func (m *Session) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Session) EqualMessageVT ¶
func (*Session) GetExpiresAt ¶
func (*Session) MarshalJSON ¶
MarshalJSON marshals the Session to JSON.
func (*Session) MarshalProtoJSON ¶
func (x *Session) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Session message to JSON.
func (*Session) MarshalProtoText ¶
func (*Session) MarshalToSizedBufferVT ¶
func (*Session) ProtoMessage ¶
func (*Session) ProtoMessage()
func (*Session) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Session from JSON.
func (*Session) UnmarshalProtoJSON ¶
func (x *Session) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Session message from JSON.
func (*Session) UnmarshalVT ¶
type SignInExchange ¶
type SignInExchange struct {
// Code is the one-use code from the browser.
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
// Verifier is the secret whose hash the sign-in page received.
Verifier string `protobuf:"bytes,2,opt,name=verifier,proto3" json:"verifier,omitempty"`
// contains filtered or unexported fields
}
SignInExchange trades the one-use code the browser handed back, with the verifier that proves this command line started the sign-in, for a session.
func (*SignInExchange) CloneMessageVT ¶
func (m *SignInExchange) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*SignInExchange) CloneVT ¶
func (m *SignInExchange) CloneVT() *SignInExchange
func (*SignInExchange) EqualMessageVT ¶
func (this *SignInExchange) EqualMessageVT(thatMsg any) bool
func (*SignInExchange) EqualVT ¶
func (this *SignInExchange) EqualVT(that *SignInExchange) bool
func (*SignInExchange) GetCode ¶
func (x *SignInExchange) GetCode() string
func (*SignInExchange) GetVerifier ¶
func (x *SignInExchange) GetVerifier() string
func (*SignInExchange) MarshalJSON ¶
func (x *SignInExchange) MarshalJSON() ([]byte, error)
MarshalJSON marshals the SignInExchange to JSON.
func (*SignInExchange) MarshalProtoJSON ¶
func (x *SignInExchange) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the SignInExchange message to JSON.
func (*SignInExchange) MarshalProtoText ¶
func (x *SignInExchange) MarshalProtoText() string
func (*SignInExchange) MarshalToSizedBufferVT ¶
func (m *SignInExchange) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SignInExchange) MarshalToVT ¶
func (m *SignInExchange) MarshalToVT(dAtA []byte) (int, error)
func (*SignInExchange) MarshalVT ¶
func (m *SignInExchange) MarshalVT() (dAtA []byte, err error)
func (*SignInExchange) ProtoMessage ¶
func (*SignInExchange) ProtoMessage()
func (*SignInExchange) Reset ¶
func (x *SignInExchange) Reset()
func (*SignInExchange) SizeVT ¶
func (m *SignInExchange) SizeVT() (n int)
func (*SignInExchange) String ¶
func (x *SignInExchange) String() string
func (*SignInExchange) UnmarshalJSON ¶
func (x *SignInExchange) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the SignInExchange from JSON.
func (*SignInExchange) UnmarshalProtoJSON ¶
func (x *SignInExchange) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the SignInExchange message from JSON.
func (*SignInExchange) UnmarshalVT ¶
func (m *SignInExchange) UnmarshalVT(dAtA []byte) error
type SignedIn ¶
type SignedIn struct {
// Token is the bearer credential.
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
// ExpiresAt is the session's expiry in Unix milliseconds.
ExpiresAt int64 `protobuf:"varint,2,opt,name=expires_at,json=expiresAt,proto3" json:"expiresAt,omitempty"`
// Account is the signed-in account.
Account *Account `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"`
// contains filtered or unexported fields
}
SignedIn is the session the exchange returns.
func (*SignedIn) CloneMessageVT ¶
func (m *SignedIn) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*SignedIn) EqualMessageVT ¶
func (*SignedIn) GetAccount ¶
func (*SignedIn) GetExpiresAt ¶
func (*SignedIn) MarshalJSON ¶
MarshalJSON marshals the SignedIn to JSON.
func (*SignedIn) MarshalProtoJSON ¶
func (x *SignedIn) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the SignedIn message to JSON.
func (*SignedIn) MarshalProtoText ¶
func (*SignedIn) MarshalToSizedBufferVT ¶
func (*SignedIn) ProtoMessage ¶
func (*SignedIn) ProtoMessage()
func (*SignedIn) UnmarshalJSON ¶
UnmarshalJSON unmarshals the SignedIn from JSON.
func (*SignedIn) UnmarshalProtoJSON ¶
func (x *SignedIn) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the SignedIn message from JSON.