Versions in this module Expand all Collapse all v0 v0.0.1 Jan 7, 2022 Changes in this version + type Ban struct + Created int64 + Source string + func (b *Ban) CreatedTime() time.Time + type Bans []*Ban + type Broadcast struct + From string + Message string + type Client struct + func NewClient(endpoint string, opts ...ClientOption) *Client + func (c *Client) Ban(b Ban) (int, error) + func (c *Client) Bans() (bans Ban, err error) + func (c *Client) Broadcast(b Broadcast) (int, error) + func (c *Client) Custom(cu Custom) (int, error) + func (c *Client) GraphQL() *gql.Client + func (c *Client) GraphQLRequest(query string) *gql.Request + func (c *Client) Kick(k Kick) (int, error) + func (c *Client) Ping() (ping *Ping, err error) + func (c *Client) Players() (players Players, err error) + func (c *Client) Plugins() (plugins Plugins, err error) + func (c *Client) TPS() (tps *TPS, err error) + func (c *Client) TempBan(t TempBan) (int, error) + func (c *Client) Unban(u Unban) (int, error) + func (c *Client) World(name string) (world *World, err error) + func (c *Client) Worlds() (worlds Worlds, err error) + type ClientOption func(c *Client) + func WithHTTP(http *http.Client) ClientOption + func WithToken(token string) ClientOption + type Custom struct + Args []string + Command string + type Kick struct + Reason string + type Ping struct + CurrentPlayers int + MOTD string + MaxPlayers int + Type string + Version string + type Player struct + Name string + UUID string + type Players []*Player + type Plugin struct + Authors []string + Name string + Version string + Website string + type Plugins []*Plugin + type TPS struct + Average float64 + History []float64 + type TempBan struct + Expiration int64 + func (t *TempBan) ExpirationTime() time.Time + type Unban struct + Target string + type Weather int + const WeatherClear + const WeatherStorm + const WeatherThunder + func (w Weather) String() string + type World struct + FullTime int64 + Name string + Time int64 + Weather Weather + func (w *World) FullTimeHours() int64 + func (w *World) TimeHours() int64 + type Worlds []*World