Documentation
¶
Overview ¶
Package publish hands a built mod to a provider: hyperline.gg, an archive players unpack and run, or a GitHub release that holds the archive.
Index ¶
- Constants
- Variables
- func Archive(ctx context.Context, mod *Mod, version, dir string) (string, error)
- func GitHub(ctx context.Context, dir, tag, archive, notes string, output io.Writer) error
- func WindowsCommand(ctx context.Context, version string) (string, error)
- 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 DevLobbyHost
- func (m *DevLobbyHost) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *DevLobbyHost) CloneVT() *DevLobbyHost
- func (this *DevLobbyHost) EqualMessageVT(thatMsg any) bool
- func (this *DevLobbyHost) EqualVT(that *DevLobbyHost) bool
- func (x *DevLobbyHost) GetPeerId() string
- func (x *DevLobbyHost) GetSecret() uint64
- func (x *DevLobbyHost) MarshalJSON() ([]byte, error)
- func (x *DevLobbyHost) MarshalProtoJSON(s *json.MarshalState)
- func (x *DevLobbyHost) MarshalProtoText() string
- func (m *DevLobbyHost) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DevLobbyHost) MarshalToVT(dAtA []byte) (int, error)
- func (m *DevLobbyHost) MarshalVT() (dAtA []byte, err error)
- func (*DevLobbyHost) ProtoMessage()
- func (x *DevLobbyHost) Reset()
- func (m *DevLobbyHost) SizeVT() (n int)
- func (x *DevLobbyHost) String() string
- func (x *DevLobbyHost) UnmarshalJSON(b []byte) error
- func (x *DevLobbyHost) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *DevLobbyHost) UnmarshalVT(dAtA []byte) error
- type DevLobbyJoin
- func (m *DevLobbyJoin) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *DevLobbyJoin) CloneVT() *DevLobbyJoin
- func (this *DevLobbyJoin) EqualMessageVT(thatMsg any) bool
- func (this *DevLobbyJoin) EqualVT(that *DevLobbyJoin) bool
- func (x *DevLobbyJoin) GetLobby() string
- func (x *DevLobbyJoin) MarshalJSON() ([]byte, error)
- func (x *DevLobbyJoin) MarshalProtoJSON(s *json.MarshalState)
- func (x *DevLobbyJoin) MarshalProtoText() string
- func (m *DevLobbyJoin) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DevLobbyJoin) MarshalToVT(dAtA []byte) (int, error)
- func (m *DevLobbyJoin) MarshalVT() (dAtA []byte, err error)
- func (*DevLobbyJoin) ProtoMessage()
- func (x *DevLobbyJoin) Reset()
- func (m *DevLobbyJoin) SizeVT() (n int)
- func (x *DevLobbyJoin) String() string
- func (x *DevLobbyJoin) UnmarshalJSON(b []byte) error
- func (x *DevLobbyJoin) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *DevLobbyJoin) UnmarshalVT(dAtA []byte) error
- type DevLobbyOpen
- func (m *DevLobbyOpen) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *DevLobbyOpen) CloneVT() *DevLobbyOpen
- func (this *DevLobbyOpen) EqualMessageVT(thatMsg any) bool
- func (this *DevLobbyOpen) EqualVT(that *DevLobbyOpen) bool
- func (x *DevLobbyOpen) GetModName() string
- func (x *DevLobbyOpen) GetSecret() uint64
- func (x *DevLobbyOpen) GetVersion() string
- func (x *DevLobbyOpen) MarshalJSON() ([]byte, error)
- func (x *DevLobbyOpen) MarshalProtoJSON(s *json.MarshalState)
- func (x *DevLobbyOpen) MarshalProtoText() string
- func (m *DevLobbyOpen) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DevLobbyOpen) MarshalToVT(dAtA []byte) (int, error)
- func (m *DevLobbyOpen) MarshalVT() (dAtA []byte, err error)
- func (*DevLobbyOpen) ProtoMessage()
- func (x *DevLobbyOpen) Reset()
- func (m *DevLobbyOpen) SizeVT() (n int)
- func (x *DevLobbyOpen) String() string
- func (x *DevLobbyOpen) UnmarshalJSON(b []byte) error
- func (x *DevLobbyOpen) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *DevLobbyOpen) UnmarshalVT(dAtA []byte) error
- type DevLobbyState
- func (m *DevLobbyState) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *DevLobbyState) CloneVT() *DevLobbyState
- func (this *DevLobbyState) EqualMessageVT(thatMsg any) bool
- func (this *DevLobbyState) EqualVT(that *DevLobbyState) bool
- func (x *DevLobbyState) GetRefused() *Error
- func (x *DevLobbyState) GetRelay() *Relay
- func (m *DevLobbyState) GetState() isDevLobbyState_State
- func (x *DevLobbyState) GetUrl() string
- func (x *DevLobbyState) MarshalJSON() ([]byte, error)
- func (x *DevLobbyState) MarshalProtoJSON(s *json.MarshalState)
- func (x *DevLobbyState) MarshalProtoText() string
- func (m *DevLobbyState) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DevLobbyState) MarshalToVT(dAtA []byte) (int, error)
- func (m *DevLobbyState) MarshalVT() (dAtA []byte, err error)
- func (*DevLobbyState) ProtoMessage()
- func (x *DevLobbyState) Reset()
- func (m *DevLobbyState) SizeVT() (n int)
- func (x *DevLobbyState) String() string
- func (x *DevLobbyState) UnmarshalJSON(b []byte) error
- func (x *DevLobbyState) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *DevLobbyState) UnmarshalVT(dAtA []byte) error
- type DevLobbyState_Refused
- func (m *DevLobbyState_Refused) CloneOneofVT() isDevLobbyState_State
- func (m *DevLobbyState_Refused) CloneVT() *DevLobbyState_Refused
- func (this *DevLobbyState_Refused) EqualVT(thatIface isDevLobbyState_State) bool
- func (m *DevLobbyState_Refused) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DevLobbyState_Refused) MarshalToVT(dAtA []byte) (int, error)
- func (m *DevLobbyState_Refused) SizeVT() (n int)
- type DevLobbyState_Url
- func (m *DevLobbyState_Url) CloneOneofVT() isDevLobbyState_State
- func (m *DevLobbyState_Url) CloneVT() *DevLobbyState_Url
- func (this *DevLobbyState_Url) EqualVT(thatIface isDevLobbyState_State) bool
- func (m *DevLobbyState_Url) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DevLobbyState_Url) MarshalToVT(dAtA []byte) (int, error)
- func (m *DevLobbyState_Url) SizeVT() (n int)
- 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 Hyperline
- type Mod
- type Relay
- func (m *Relay) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Relay) CloneVT() *Relay
- func (this *Relay) EqualMessageVT(thatMsg any) bool
- func (this *Relay) EqualVT(that *Relay) bool
- func (x *Relay) GetExpiresAt() int64
- func (x *Relay) GetServers() []*RelayServer
- func (x *Relay) MarshalJSON() ([]byte, error)
- func (x *Relay) MarshalProtoJSON(s *json.MarshalState)
- func (x *Relay) MarshalProtoText() string
- func (m *Relay) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Relay) MarshalToVT(dAtA []byte) (int, error)
- func (m *Relay) MarshalVT() (dAtA []byte, err error)
- func (*Relay) ProtoMessage()
- func (x *Relay) Reset()
- func (m *Relay) SizeVT() (n int)
- func (x *Relay) String() string
- func (x *Relay) UnmarshalJSON(b []byte) error
- func (x *Relay) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Relay) UnmarshalVT(dAtA []byte) error
- type RelayServer
- func (m *RelayServer) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *RelayServer) CloneVT() *RelayServer
- func (this *RelayServer) EqualMessageVT(thatMsg any) bool
- func (this *RelayServer) EqualVT(that *RelayServer) bool
- func (x *RelayServer) GetCredential() string
- func (x *RelayServer) GetUrls() []string
- func (x *RelayServer) GetUsername() string
- func (x *RelayServer) MarshalJSON() ([]byte, error)
- func (x *RelayServer) MarshalProtoJSON(s *json.MarshalState)
- func (x *RelayServer) MarshalProtoText() string
- func (m *RelayServer) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *RelayServer) MarshalToVT(dAtA []byte) (int, error)
- func (m *RelayServer) MarshalVT() (dAtA []byte, err error)
- func (*RelayServer) ProtoMessage()
- func (x *RelayServer) Reset()
- func (m *RelayServer) SizeVT() (n int)
- func (x *RelayServer) String() string
- func (x *RelayServer) UnmarshalJSON(b []byte) error
- func (x *RelayServer) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *RelayServer) 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 ¶
const DefaultOrigin = "https://hyperline.gg"
DefaultOrigin is the service modlock publish uses by default.
Variables ¶
var ( ReviewState_name = map[int32]string{ 0: "REVIEW_STATE_UNKNOWN", 1: "REVIEW_STATE_PENDING", 2: "REVIEW_STATE_APPROVED", 3: "REVIEW_STATE_REJECTED", 4: "REVIEW_STATE_APPROVED_FOR_SERVERS", } ReviewState_value = map[string]int32{ "REVIEW_STATE_UNKNOWN": 0, "REVIEW_STATE_PENDING": 1, "REVIEW_STATE_APPROVED": 2, "REVIEW_STATE_REJECTED": 3, "REVIEW_STATE_APPROVED_FOR_SERVERS": 4, } )
Enum value maps for ReviewState.
Functions ¶
func Archive ¶
Archive writes a zip players unpack and run on Windows: Play.cmd, the command line of release version, and mod under mod/, in one folder named for the mod. It returns the archive's path in dir.
Types ¶
type Account ¶ added in v0.1.8
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 ¶ added in v0.1.8
func (m *Account) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Account) EqualMessageVT ¶ added in v0.1.8
func (*Account) GetDisplayName ¶ added in v0.1.8
func (*Account) GetSteamId64 ¶ added in v0.1.8
func (*Account) MarshalJSON ¶ added in v0.1.8
MarshalJSON marshals the Account to JSON.
func (*Account) MarshalProtoJSON ¶ added in v0.1.8
func (x *Account) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Account message to JSON.
func (*Account) MarshalProtoText ¶ added in v0.1.8
func (*Account) MarshalToSizedBufferVT ¶ added in v0.1.8
func (*Account) MarshalToVT ¶ added in v0.1.8
func (*Account) ProtoMessage ¶ added in v0.1.8
func (*Account) ProtoMessage()
func (*Account) UnmarshalJSON ¶ added in v0.1.8
UnmarshalJSON unmarshals the Account from JSON.
func (*Account) UnmarshalProtoJSON ¶ added in v0.1.8
func (x *Account) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Account message from JSON.
func (*Account) UnmarshalVT ¶ added in v0.1.8
type DevLobbyHost ¶ added in v0.1.14
type DevLobbyHost struct {
// PeerId is the host session's peer.
PeerId string `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peerId,omitempty"`
// Secret admits the guest's game to the host session.
Secret uint64 `protobuf:"varint,2,opt,name=secret,proto3" json:"secret,omitempty"`
// contains filtered or unexported fields
}
DevLobbyHost names a dev lobby's host session.
func (*DevLobbyHost) CloneMessageVT ¶ added in v0.1.14
func (m *DevLobbyHost) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*DevLobbyHost) CloneVT ¶ added in v0.1.14
func (m *DevLobbyHost) CloneVT() *DevLobbyHost
func (*DevLobbyHost) EqualMessageVT ¶ added in v0.1.14
func (this *DevLobbyHost) EqualMessageVT(thatMsg any) bool
func (*DevLobbyHost) EqualVT ¶ added in v0.1.14
func (this *DevLobbyHost) EqualVT(that *DevLobbyHost) bool
func (*DevLobbyHost) GetPeerId ¶ added in v0.1.14
func (x *DevLobbyHost) GetPeerId() string
func (*DevLobbyHost) GetSecret ¶ added in v0.1.14
func (x *DevLobbyHost) GetSecret() uint64
func (*DevLobbyHost) MarshalJSON ¶ added in v0.1.14
func (x *DevLobbyHost) MarshalJSON() ([]byte, error)
MarshalJSON marshals the DevLobbyHost to JSON.
func (*DevLobbyHost) MarshalProtoJSON ¶ added in v0.1.14
func (x *DevLobbyHost) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the DevLobbyHost message to JSON.
func (*DevLobbyHost) MarshalProtoText ¶ added in v0.1.14
func (x *DevLobbyHost) MarshalProtoText() string
func (*DevLobbyHost) MarshalToSizedBufferVT ¶ added in v0.1.14
func (m *DevLobbyHost) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DevLobbyHost) MarshalToVT ¶ added in v0.1.14
func (m *DevLobbyHost) MarshalToVT(dAtA []byte) (int, error)
func (*DevLobbyHost) MarshalVT ¶ added in v0.1.14
func (m *DevLobbyHost) MarshalVT() (dAtA []byte, err error)
func (*DevLobbyHost) ProtoMessage ¶ added in v0.1.14
func (*DevLobbyHost) ProtoMessage()
func (*DevLobbyHost) Reset ¶ added in v0.1.14
func (x *DevLobbyHost) Reset()
func (*DevLobbyHost) SizeVT ¶ added in v0.1.14
func (m *DevLobbyHost) SizeVT() (n int)
func (*DevLobbyHost) String ¶ added in v0.1.14
func (x *DevLobbyHost) String() string
func (*DevLobbyHost) UnmarshalJSON ¶ added in v0.1.14
func (x *DevLobbyHost) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the DevLobbyHost from JSON.
func (*DevLobbyHost) UnmarshalProtoJSON ¶ added in v0.1.14
func (x *DevLobbyHost) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the DevLobbyHost message from JSON.
func (*DevLobbyHost) UnmarshalVT ¶ added in v0.1.14
func (m *DevLobbyHost) UnmarshalVT(dAtA []byte) error
type DevLobbyJoin ¶ added in v0.1.14
type DevLobbyJoin struct {
// Lobby is the lobby's ID, from its page's lobby parameter.
Lobby string `protobuf:"bytes,1,opt,name=lobby,proto3" json:"lobby,omitempty"`
// contains filtered or unexported fields
}
DevLobbyJoin asks for the host session of a dev lobby the signed-in player is a member of, so their modlock join reaches its game.
func (*DevLobbyJoin) CloneMessageVT ¶ added in v0.1.14
func (m *DevLobbyJoin) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*DevLobbyJoin) CloneVT ¶ added in v0.1.14
func (m *DevLobbyJoin) CloneVT() *DevLobbyJoin
func (*DevLobbyJoin) EqualMessageVT ¶ added in v0.1.14
func (this *DevLobbyJoin) EqualMessageVT(thatMsg any) bool
func (*DevLobbyJoin) EqualVT ¶ added in v0.1.14
func (this *DevLobbyJoin) EqualVT(that *DevLobbyJoin) bool
func (*DevLobbyJoin) GetLobby ¶ added in v0.1.14
func (x *DevLobbyJoin) GetLobby() string
func (*DevLobbyJoin) MarshalJSON ¶ added in v0.1.14
func (x *DevLobbyJoin) MarshalJSON() ([]byte, error)
MarshalJSON marshals the DevLobbyJoin to JSON.
func (*DevLobbyJoin) MarshalProtoJSON ¶ added in v0.1.14
func (x *DevLobbyJoin) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the DevLobbyJoin message to JSON.
func (*DevLobbyJoin) MarshalProtoText ¶ added in v0.1.14
func (x *DevLobbyJoin) MarshalProtoText() string
func (*DevLobbyJoin) MarshalToSizedBufferVT ¶ added in v0.1.14
func (m *DevLobbyJoin) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DevLobbyJoin) MarshalToVT ¶ added in v0.1.14
func (m *DevLobbyJoin) MarshalToVT(dAtA []byte) (int, error)
func (*DevLobbyJoin) MarshalVT ¶ added in v0.1.14
func (m *DevLobbyJoin) MarshalVT() (dAtA []byte, err error)
func (*DevLobbyJoin) ProtoMessage ¶ added in v0.1.14
func (*DevLobbyJoin) ProtoMessage()
func (*DevLobbyJoin) Reset ¶ added in v0.1.14
func (x *DevLobbyJoin) Reset()
func (*DevLobbyJoin) SizeVT ¶ added in v0.1.14
func (m *DevLobbyJoin) SizeVT() (n int)
func (*DevLobbyJoin) String ¶ added in v0.1.14
func (x *DevLobbyJoin) String() string
func (*DevLobbyJoin) UnmarshalJSON ¶ added in v0.1.14
func (x *DevLobbyJoin) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the DevLobbyJoin from JSON.
func (*DevLobbyJoin) UnmarshalProtoJSON ¶ added in v0.1.14
func (x *DevLobbyJoin) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the DevLobbyJoin message from JSON.
func (*DevLobbyJoin) UnmarshalVT ¶ added in v0.1.14
func (m *DevLobbyJoin) UnmarshalVT(dAtA []byte) error
type DevLobbyOpen ¶ added in v0.1.13
type DevLobbyOpen struct {
// ModName is the mod's display name.
ModName string `protobuf:"bytes,1,opt,name=mod_name,json=modName,proto3" json:"modName,omitempty"`
// Version is the build's version label.
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// Secret admits a guest's game to the host session.
Secret uint64 `protobuf:"varint,3,opt,name=secret,proto3" json:"secret,omitempty"`
// contains filtered or unexported fields
}
DevLobbyOpen asks for a dev lobby running the mod a modlock host session serves, as the first message on the dev lobby socket. The socket's signing key names the host's peer, and the lobby stays open while the socket does. A socket from the same peer with the same secret resumes the lobby.
func (*DevLobbyOpen) CloneMessageVT ¶ added in v0.1.13
func (m *DevLobbyOpen) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*DevLobbyOpen) CloneVT ¶ added in v0.1.13
func (m *DevLobbyOpen) CloneVT() *DevLobbyOpen
func (*DevLobbyOpen) EqualMessageVT ¶ added in v0.1.13
func (this *DevLobbyOpen) EqualMessageVT(thatMsg any) bool
func (*DevLobbyOpen) EqualVT ¶ added in v0.1.13
func (this *DevLobbyOpen) EqualVT(that *DevLobbyOpen) bool
func (*DevLobbyOpen) GetModName ¶ added in v0.1.13
func (x *DevLobbyOpen) GetModName() string
func (*DevLobbyOpen) GetSecret ¶ added in v0.1.13
func (x *DevLobbyOpen) GetSecret() uint64
func (*DevLobbyOpen) GetVersion ¶ added in v0.1.13
func (x *DevLobbyOpen) GetVersion() string
func (*DevLobbyOpen) MarshalJSON ¶ added in v0.1.13
func (x *DevLobbyOpen) MarshalJSON() ([]byte, error)
MarshalJSON marshals the DevLobbyOpen to JSON.
func (*DevLobbyOpen) MarshalProtoJSON ¶ added in v0.1.13
func (x *DevLobbyOpen) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the DevLobbyOpen message to JSON.
func (*DevLobbyOpen) MarshalProtoText ¶ added in v0.1.13
func (x *DevLobbyOpen) MarshalProtoText() string
func (*DevLobbyOpen) MarshalToSizedBufferVT ¶ added in v0.1.13
func (m *DevLobbyOpen) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DevLobbyOpen) MarshalToVT ¶ added in v0.1.13
func (m *DevLobbyOpen) MarshalToVT(dAtA []byte) (int, error)
func (*DevLobbyOpen) MarshalVT ¶ added in v0.1.13
func (m *DevLobbyOpen) MarshalVT() (dAtA []byte, err error)
func (*DevLobbyOpen) ProtoMessage ¶ added in v0.1.13
func (*DevLobbyOpen) ProtoMessage()
func (*DevLobbyOpen) Reset ¶ added in v0.1.13
func (x *DevLobbyOpen) Reset()
func (*DevLobbyOpen) SizeVT ¶ added in v0.1.13
func (m *DevLobbyOpen) SizeVT() (n int)
func (*DevLobbyOpen) String ¶ added in v0.1.13
func (x *DevLobbyOpen) String() string
func (*DevLobbyOpen) UnmarshalJSON ¶ added in v0.1.13
func (x *DevLobbyOpen) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the DevLobbyOpen from JSON.
func (*DevLobbyOpen) UnmarshalProtoJSON ¶ added in v0.1.13
func (x *DevLobbyOpen) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the DevLobbyOpen message from JSON.
func (*DevLobbyOpen) UnmarshalVT ¶ added in v0.1.13
func (m *DevLobbyOpen) UnmarshalVT(dAtA []byte) error
type DevLobbyState ¶ added in v0.1.13
type DevLobbyState struct {
// Types that are assignable to State:
// *DevLobbyState_Url
// *DevLobbyState_Refused
State isDevLobbyState_State `protobuf_oneof:"state"`
// Relay is the TURN servers the host session may link through while its
// lobby is open, unset when the service has none. The service sends the
// state again with fresh credentials before these expire.
Relay *Relay `protobuf:"bytes,3,opt,name=relay,proto3" json:"relay,omitempty"`
// contains filtered or unexported fields
}
DevLobbyState is the service's answer on the dev lobby socket.
func (*DevLobbyState) CloneMessageVT ¶ added in v0.1.13
func (m *DevLobbyState) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*DevLobbyState) CloneVT ¶ added in v0.1.13
func (m *DevLobbyState) CloneVT() *DevLobbyState
func (*DevLobbyState) EqualMessageVT ¶ added in v0.1.13
func (this *DevLobbyState) EqualMessageVT(thatMsg any) bool
func (*DevLobbyState) EqualVT ¶ added in v0.1.13
func (this *DevLobbyState) EqualVT(that *DevLobbyState) bool
func (*DevLobbyState) GetRefused ¶ added in v0.1.13
func (x *DevLobbyState) GetRefused() *Error
func (*DevLobbyState) GetRelay ¶ added in v0.1.15
func (x *DevLobbyState) GetRelay() *Relay
func (*DevLobbyState) GetState ¶ added in v0.1.13
func (m *DevLobbyState) GetState() isDevLobbyState_State
func (*DevLobbyState) GetUrl ¶ added in v0.1.13
func (x *DevLobbyState) GetUrl() string
func (*DevLobbyState) MarshalJSON ¶ added in v0.1.13
func (x *DevLobbyState) MarshalJSON() ([]byte, error)
MarshalJSON marshals the DevLobbyState to JSON.
func (*DevLobbyState) MarshalProtoJSON ¶ added in v0.1.13
func (x *DevLobbyState) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the DevLobbyState message to JSON.
func (*DevLobbyState) MarshalProtoText ¶ added in v0.1.13
func (x *DevLobbyState) MarshalProtoText() string
func (*DevLobbyState) MarshalToSizedBufferVT ¶ added in v0.1.13
func (m *DevLobbyState) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DevLobbyState) MarshalToVT ¶ added in v0.1.13
func (m *DevLobbyState) MarshalToVT(dAtA []byte) (int, error)
func (*DevLobbyState) MarshalVT ¶ added in v0.1.13
func (m *DevLobbyState) MarshalVT() (dAtA []byte, err error)
func (*DevLobbyState) ProtoMessage ¶ added in v0.1.13
func (*DevLobbyState) ProtoMessage()
func (*DevLobbyState) Reset ¶ added in v0.1.13
func (x *DevLobbyState) Reset()
func (*DevLobbyState) SizeVT ¶ added in v0.1.13
func (m *DevLobbyState) SizeVT() (n int)
func (*DevLobbyState) String ¶ added in v0.1.13
func (x *DevLobbyState) String() string
func (*DevLobbyState) UnmarshalJSON ¶ added in v0.1.13
func (x *DevLobbyState) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the DevLobbyState from JSON.
func (*DevLobbyState) UnmarshalProtoJSON ¶ added in v0.1.13
func (x *DevLobbyState) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the DevLobbyState message from JSON.
func (*DevLobbyState) UnmarshalVT ¶ added in v0.1.13
func (m *DevLobbyState) UnmarshalVT(dAtA []byte) error
type DevLobbyState_Refused ¶ added in v0.1.13
type DevLobbyState_Refused struct {
// Refused explains why no lobby opened; the socket closes after it.
Refused *Error `protobuf:"bytes,2,opt,name=refused,proto3,oneof"`
}
func (*DevLobbyState_Refused) CloneOneofVT ¶ added in v0.1.13
func (m *DevLobbyState_Refused) CloneOneofVT() isDevLobbyState_State
func (*DevLobbyState_Refused) CloneVT ¶ added in v0.1.13
func (m *DevLobbyState_Refused) CloneVT() *DevLobbyState_Refused
func (*DevLobbyState_Refused) EqualVT ¶ added in v0.1.13
func (this *DevLobbyState_Refused) EqualVT(thatIface isDevLobbyState_State) bool
func (*DevLobbyState_Refused) MarshalToSizedBufferVT ¶ added in v0.1.13
func (m *DevLobbyState_Refused) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DevLobbyState_Refused) MarshalToVT ¶ added in v0.1.13
func (m *DevLobbyState_Refused) MarshalToVT(dAtA []byte) (int, error)
func (*DevLobbyState_Refused) SizeVT ¶ added in v0.1.13
func (m *DevLobbyState_Refused) SizeVT() (n int)
type DevLobbyState_Url ¶ added in v0.1.13
type DevLobbyState_Url struct {
// Url is the open lobby's page.
Url string `protobuf:"bytes,1,opt,name=url,proto3,oneof"`
}
func (*DevLobbyState_Url) CloneOneofVT ¶ added in v0.1.13
func (m *DevLobbyState_Url) CloneOneofVT() isDevLobbyState_State
func (*DevLobbyState_Url) CloneVT ¶ added in v0.1.13
func (m *DevLobbyState_Url) CloneVT() *DevLobbyState_Url
func (*DevLobbyState_Url) EqualVT ¶ added in v0.1.13
func (this *DevLobbyState_Url) EqualVT(thatIface isDevLobbyState_State) bool
func (*DevLobbyState_Url) MarshalToSizedBufferVT ¶ added in v0.1.13
func (m *DevLobbyState_Url) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DevLobbyState_Url) MarshalToVT ¶ added in v0.1.13
func (m *DevLobbyState_Url) MarshalToVT(dAtA []byte) (int, error)
func (*DevLobbyState_Url) SizeVT ¶ added in v0.1.13
func (m *DevLobbyState_Url) SizeVT() (n int)
type Error ¶ added in v0.1.8
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 ¶ added in v0.1.8
func (m *Error) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Error) EqualMessageVT ¶ added in v0.1.8
func (*Error) GetMessage ¶ added in v0.1.8
func (*Error) MarshalJSON ¶ added in v0.1.8
MarshalJSON marshals the Error to JSON.
func (*Error) MarshalProtoJSON ¶ added in v0.1.8
func (x *Error) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Error message to JSON.
func (*Error) MarshalProtoText ¶ added in v0.1.8
func (*Error) MarshalToSizedBufferVT ¶ added in v0.1.8
func (*Error) ProtoMessage ¶ added in v0.1.8
func (*Error) ProtoMessage()
func (*Error) UnmarshalJSON ¶ added in v0.1.8
UnmarshalJSON unmarshals the Error from JSON.
func (*Error) UnmarshalProtoJSON ¶ added in v0.1.8
func (x *Error) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Error message from JSON.
func (*Error) UnmarshalVT ¶ added in v0.1.8
type Hyperline ¶
type Hyperline struct {
// Origin is the service, such as DefaultOrigin.
Origin string
// SessionFile holds the saved sign-in, readable only by the creator.
SessionFile string
// Output receives the sign-in instructions.
Output io.Writer
}
Hyperline publishes to hyperline.gg or another service with its API.
func (*Hyperline) JoinDevLobby ¶ added in v0.1.14
JoinDevLobby returns the host session of the dev lobby with id lobby, whose member the signed-in player is. It signs in through the browser when no saved session is valid.
func (*Hyperline) Publish ¶
Publish uploads mod with its notes and returns the release the service recorded. It signs in through the browser when no saved session is valid.
type Mod ¶
type Mod struct {
// Dir is the built mod's directory.
Dir string
// Manifest is its mod.json.
Manifest *manifest.Manifest
// Notes say what the release changed, for providers that show them.
Notes string
}
Mod is a checked built mod.
type Relay ¶ added in v0.1.15
type Relay struct {
// Servers are the relay servers.
Servers []*RelayServer `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"`
// ExpiresAt is when the credentials stop working, in Unix milliseconds.
ExpiresAt int64 `protobuf:"varint,2,opt,name=expires_at,json=expiresAt,proto3" json:"expiresAt,omitempty"`
// contains filtered or unexported fields
}
Relay is a set of TURN servers and the credentials they share.
func (*Relay) CloneMessageVT ¶ added in v0.1.15
func (m *Relay) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Relay) EqualMessageVT ¶ added in v0.1.15
func (*Relay) GetExpiresAt ¶ added in v0.1.15
func (*Relay) GetServers ¶ added in v0.1.15
func (x *Relay) GetServers() []*RelayServer
func (*Relay) MarshalJSON ¶ added in v0.1.15
MarshalJSON marshals the Relay to JSON.
func (*Relay) MarshalProtoJSON ¶ added in v0.1.15
func (x *Relay) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Relay message to JSON.
func (*Relay) MarshalProtoText ¶ added in v0.1.15
func (*Relay) MarshalToSizedBufferVT ¶ added in v0.1.15
func (*Relay) ProtoMessage ¶ added in v0.1.15
func (*Relay) ProtoMessage()
func (*Relay) UnmarshalJSON ¶ added in v0.1.15
UnmarshalJSON unmarshals the Relay from JSON.
func (*Relay) UnmarshalProtoJSON ¶ added in v0.1.15
func (x *Relay) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Relay message from JSON.
func (*Relay) UnmarshalVT ¶ added in v0.1.15
type RelayServer ¶ added in v0.1.15
type RelayServer struct {
// Urls are the server's STUN and TURN addresses.
Urls []string `protobuf:"bytes,1,rep,name=urls,proto3" json:"urls,omitempty"`
// Username is the credential's identifier.
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
// Credential is the credential's secret.
Credential string `protobuf:"bytes,3,opt,name=credential,proto3" json:"credential,omitempty"`
// contains filtered or unexported fields
}
RelayServer is one relay server's addresses and credential.
func (*RelayServer) CloneMessageVT ¶ added in v0.1.15
func (m *RelayServer) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*RelayServer) CloneVT ¶ added in v0.1.15
func (m *RelayServer) CloneVT() *RelayServer
func (*RelayServer) EqualMessageVT ¶ added in v0.1.15
func (this *RelayServer) EqualMessageVT(thatMsg any) bool
func (*RelayServer) EqualVT ¶ added in v0.1.15
func (this *RelayServer) EqualVT(that *RelayServer) bool
func (*RelayServer) GetCredential ¶ added in v0.1.15
func (x *RelayServer) GetCredential() string
func (*RelayServer) GetUrls ¶ added in v0.1.15
func (x *RelayServer) GetUrls() []string
func (*RelayServer) GetUsername ¶ added in v0.1.15
func (x *RelayServer) GetUsername() string
func (*RelayServer) MarshalJSON ¶ added in v0.1.15
func (x *RelayServer) MarshalJSON() ([]byte, error)
MarshalJSON marshals the RelayServer to JSON.
func (*RelayServer) MarshalProtoJSON ¶ added in v0.1.15
func (x *RelayServer) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the RelayServer message to JSON.
func (*RelayServer) MarshalProtoText ¶ added in v0.1.15
func (x *RelayServer) MarshalProtoText() string
func (*RelayServer) MarshalToSizedBufferVT ¶ added in v0.1.15
func (m *RelayServer) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*RelayServer) MarshalToVT ¶ added in v0.1.15
func (m *RelayServer) MarshalToVT(dAtA []byte) (int, error)
func (*RelayServer) MarshalVT ¶ added in v0.1.15
func (m *RelayServer) MarshalVT() (dAtA []byte, err error)
func (*RelayServer) ProtoMessage ¶ added in v0.1.15
func (*RelayServer) ProtoMessage()
func (*RelayServer) Reset ¶ added in v0.1.15
func (x *RelayServer) Reset()
func (*RelayServer) SizeVT ¶ added in v0.1.15
func (m *RelayServer) SizeVT() (n int)
func (*RelayServer) String ¶ added in v0.1.15
func (x *RelayServer) String() string
func (*RelayServer) UnmarshalJSON ¶ added in v0.1.15
func (x *RelayServer) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the RelayServer from JSON.
func (*RelayServer) UnmarshalProtoJSON ¶ added in v0.1.15
func (x *RelayServer) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the RelayServer message from JSON.
func (*RelayServer) UnmarshalVT ¶ added in v0.1.15
func (m *RelayServer) UnmarshalVT(dAtA []byte) error
type Release ¶ added in v0.1.8
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 ¶ added in v0.1.8
func (m *Release) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Release) EqualMessageVT ¶ added in v0.1.8
func (*Release) GetReviewNote ¶ added in v0.1.8
func (*Release) GetReviewState ¶ added in v0.1.8
func (x *Release) GetReviewState() ReviewState
func (*Release) GetVersion ¶ added in v0.1.8
func (*Release) MarshalJSON ¶ added in v0.1.8
MarshalJSON marshals the Release to JSON.
func (*Release) MarshalProtoJSON ¶ added in v0.1.8
func (x *Release) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Release message to JSON.
func (*Release) MarshalProtoText ¶ added in v0.1.8
func (*Release) MarshalToSizedBufferVT ¶ added in v0.1.8
func (*Release) MarshalToVT ¶ added in v0.1.8
func (*Release) ProtoMessage ¶ added in v0.1.8
func (*Release) ProtoMessage()
func (*Release) UnmarshalJSON ¶ added in v0.1.8
UnmarshalJSON unmarshals the Release from JSON.
func (*Release) UnmarshalProtoJSON ¶ added in v0.1.8
func (x *Release) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Release message from JSON.
func (*Release) UnmarshalVT ¶ added in v0.1.8
type ReviewState ¶ added in v0.1.8
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 // REVIEW_STATE_APPROVED_FOR_SERVERS may be played on the service's game // servers, and on players' PCs once a reviewer approves it. ReviewState_REVIEW_STATE_APPROVED_FOR_SERVERS ReviewState = 4 )
func (ReviewState) Enum ¶ added in v0.1.8
func (x ReviewState) Enum() *ReviewState
func (ReviewState) MarshalJSON ¶ added in v0.1.8
func (x ReviewState) MarshalJSON() ([]byte, error)
MarshalJSON marshals the ReviewState to JSON.
func (ReviewState) MarshalProtoJSON ¶ added in v0.1.8
func (x ReviewState) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the ReviewState to JSON.
func (ReviewState) MarshalProtoText ¶ added in v0.1.8
func (x ReviewState) MarshalProtoText() string
func (ReviewState) MarshalText ¶ added in v0.1.8
func (x ReviewState) MarshalText() ([]byte, error)
MarshalText marshals the ReviewState to text.
func (ReviewState) String ¶ added in v0.1.8
func (x ReviewState) String() string
func (*ReviewState) UnmarshalJSON ¶ added in v0.1.8
func (x *ReviewState) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the ReviewState from JSON.
func (*ReviewState) UnmarshalProtoJSON ¶ added in v0.1.8
func (x *ReviewState) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the ReviewState from JSON.
func (*ReviewState) UnmarshalText ¶ added in v0.1.8
func (x *ReviewState) UnmarshalText(b []byte) error
UnmarshalText unmarshals the ReviewState from text.
type Session ¶ added in v0.1.8
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 SavedSession ¶ added in v0.1.12
SavedSession returns the session saved at path for origin, or nil when none is saved, it is for another origin, or it has expired.
func (*Session) CloneMessageVT ¶ added in v0.1.8
func (m *Session) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Session) EqualMessageVT ¶ added in v0.1.8
func (*Session) GetExpiresAt ¶ added in v0.1.8
func (*Session) MarshalJSON ¶ added in v0.1.8
MarshalJSON marshals the Session to JSON.
func (*Session) MarshalProtoJSON ¶ added in v0.1.8
func (x *Session) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Session message to JSON.
func (*Session) MarshalProtoText ¶ added in v0.1.8
func (*Session) MarshalToSizedBufferVT ¶ added in v0.1.8
func (*Session) MarshalToVT ¶ added in v0.1.8
func (*Session) ProtoMessage ¶ added in v0.1.8
func (*Session) ProtoMessage()
func (*Session) UnmarshalJSON ¶ added in v0.1.8
UnmarshalJSON unmarshals the Session from JSON.
func (*Session) UnmarshalProtoJSON ¶ added in v0.1.8
func (x *Session) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Session message from JSON.
func (*Session) UnmarshalVT ¶ added in v0.1.8
type SignInExchange ¶ added in v0.1.8
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 ¶ added in v0.1.8
func (m *SignInExchange) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*SignInExchange) CloneVT ¶ added in v0.1.8
func (m *SignInExchange) CloneVT() *SignInExchange
func (*SignInExchange) EqualMessageVT ¶ added in v0.1.8
func (this *SignInExchange) EqualMessageVT(thatMsg any) bool
func (*SignInExchange) EqualVT ¶ added in v0.1.8
func (this *SignInExchange) EqualVT(that *SignInExchange) bool
func (*SignInExchange) GetCode ¶ added in v0.1.8
func (x *SignInExchange) GetCode() string
func (*SignInExchange) GetVerifier ¶ added in v0.1.8
func (x *SignInExchange) GetVerifier() string
func (*SignInExchange) MarshalJSON ¶ added in v0.1.8
func (x *SignInExchange) MarshalJSON() ([]byte, error)
MarshalJSON marshals the SignInExchange to JSON.
func (*SignInExchange) MarshalProtoJSON ¶ added in v0.1.8
func (x *SignInExchange) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the SignInExchange message to JSON.
func (*SignInExchange) MarshalProtoText ¶ added in v0.1.8
func (x *SignInExchange) MarshalProtoText() string
func (*SignInExchange) MarshalToSizedBufferVT ¶ added in v0.1.8
func (m *SignInExchange) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SignInExchange) MarshalToVT ¶ added in v0.1.8
func (m *SignInExchange) MarshalToVT(dAtA []byte) (int, error)
func (*SignInExchange) MarshalVT ¶ added in v0.1.8
func (m *SignInExchange) MarshalVT() (dAtA []byte, err error)
func (*SignInExchange) ProtoMessage ¶ added in v0.1.8
func (*SignInExchange) ProtoMessage()
func (*SignInExchange) Reset ¶ added in v0.1.8
func (x *SignInExchange) Reset()
func (*SignInExchange) SizeVT ¶ added in v0.1.8
func (m *SignInExchange) SizeVT() (n int)
func (*SignInExchange) String ¶ added in v0.1.8
func (x *SignInExchange) String() string
func (*SignInExchange) UnmarshalJSON ¶ added in v0.1.8
func (x *SignInExchange) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the SignInExchange from JSON.
func (*SignInExchange) UnmarshalProtoJSON ¶ added in v0.1.8
func (x *SignInExchange) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the SignInExchange message from JSON.
func (*SignInExchange) UnmarshalVT ¶ added in v0.1.8
func (m *SignInExchange) UnmarshalVT(dAtA []byte) error
type SignedIn ¶ added in v0.1.8
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 ¶ added in v0.1.8
func (m *SignedIn) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*SignedIn) EqualMessageVT ¶ added in v0.1.8
func (*SignedIn) GetAccount ¶ added in v0.1.8
func (*SignedIn) GetExpiresAt ¶ added in v0.1.8
func (*SignedIn) MarshalJSON ¶ added in v0.1.8
MarshalJSON marshals the SignedIn to JSON.
func (*SignedIn) MarshalProtoJSON ¶ added in v0.1.8
func (x *SignedIn) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the SignedIn message to JSON.
func (*SignedIn) MarshalProtoText ¶ added in v0.1.8
func (*SignedIn) MarshalToSizedBufferVT ¶ added in v0.1.8
func (*SignedIn) MarshalToVT ¶ added in v0.1.8
func (*SignedIn) ProtoMessage ¶ added in v0.1.8
func (*SignedIn) ProtoMessage()
func (*SignedIn) UnmarshalJSON ¶ added in v0.1.8
UnmarshalJSON unmarshals the SignedIn from JSON.
func (*SignedIn) UnmarshalProtoJSON ¶ added in v0.1.8
func (x *SignedIn) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the SignedIn message from JSON.