Documentation ¶
Index ¶
- Constants
- func LoadUser(mcUser *model.User) (*model.User, error)
- func LoadUserById(id int) (*model.User, error)
- func LoadUserByUUID(uuid string) (*model.User, error)
- func MutePlayer(mute *model.Mute) (time.Time, error)
- func PlayerName(uuid string) (string, error)
- func PlayerNameHost() string
- func PlayerUUIDByName(name string) (string, error)
- func UnmutePlayer(unmute *model.Unmute) error
- type ApiClient
- type ChatApi
- type McConnectApi
- type MuteRequest
- type MuteResponse
- type PaymentApi
- type UnMuteRequest
Constants ¶
View Source
const (
PaymentTraceName = "payment-api"
)
Variables ¶
This section is empty.
Functions ¶
func LoadUserById ¶
UserById loads a user, potentially cached
func MutePlayer ¶
MutePlayer sends a mute request to the cofl chat service and saves the mute in the internal database
func PlayerName ¶
func PlayerNameHost ¶
func PlayerNameHost() string
func PlayerUUIDByName ¶
func UnmutePlayer ¶
Types ¶
type ApiClient ¶
type ApiClient struct {
// contains filtered or unexported fields
}
func NewApiClient ¶
func NewApiClient() *ApiClient
type ChatApi ¶
type ChatApi struct {
// contains filtered or unexported fields
}
func NewChatApi ¶
func NewChatApi() *ChatApi
func (*ChatApi) SendMessage ¶
type McConnectApi ¶
type McConnectApi struct {
// contains filtered or unexported fields
}
func NewMcConnectApi ¶
func NewMcConnectApi() *McConnectApi
func (*McConnectApi) PlayerByUUID ¶
type MuteRequest ¶
type MuteResponse ¶
type MuteResponse struct { UUID string `json:"uuid"` Muter string `json:"muter"` UnMuter string `json:"unMuter"` Message string `json:"message"` Reason string `json:"reason"` ClientID int `json:"clientId"` UnMuteClientID int `json:"unMuteClientId"` Timestamp string `json:"timestamp"` Expires string `json:"expires"` Status int `json:"status"` }
type PaymentApi ¶
type PaymentApi struct {
// contains filtered or unexported fields
}
func NewPaymentApi ¶
func NewPaymentApi() *PaymentApi
func (*PaymentApi) OwningTimeProductOfUser ¶
func (*PaymentApi) OwningTimesOfUser ¶
func (p *PaymentApi) OwningTimesOfUser(ctx context.Context, userId int) ([]model.OwnedProducts, error)
type UnMuteRequest ¶
Click to show internal directories.
Click to hide internal directories.