Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type AdminsService ¶
type AdminsService service
func (*AdminsService) Get ¶
func (s *AdminsService) Get(ctx context.Context, serverID int) (*apiclient.AdminsResponse, error)
type Client ¶
type Client struct {
Admins *AdminsService
Families *FamiliesService
Fractions *FractionsService
Ghetto *GhettoService
Leadership *LeadershipService
Map *MapService
Online *OnlineService
Player *PlayerService
Sobes *SobesService
Status *StatusService
// contains filtered or unexported fields
}
type FamiliesService ¶
type FamiliesService service
func (*FamiliesService) Get ¶
func (s *FamiliesService) Get(ctx context.Context, serverID, famID int) (*apiclient.FamilyResponse, error)
func (*FamiliesService) List ¶
func (s *FamiliesService) List(ctx context.Context, serverID int) (*apiclient.FamilyListResponse, error)
type FractionsService ¶
type FractionsService service
func (*FractionsService) GetMembers ¶
func (s *FractionsService) GetMembers(ctx context.Context, serverID int, fractionID string) (*apiclient.FractionResponse, error)
func (*FractionsService) List ¶
func (s *FractionsService) List(ctx context.Context, serverID int) (*apiclient.FractionsListResponse, error)
type GhettoService ¶
type GhettoService service
func (*GhettoService) Get ¶
func (s *GhettoService) Get(ctx context.Context, serverID int) (*apiclient.GhettoResponse, error)
type LeadershipService ¶
type LeadershipService service
func (*LeadershipService) GetLeaders ¶
func (s *LeadershipService) GetLeaders(ctx context.Context, serverID int) (*apiclient.LeadersResponse, error)
func (*LeadershipService) GetSubleaders ¶
func (s *LeadershipService) GetSubleaders(ctx context.Context, serverID int) (*apiclient.SubleadersResponse, error)
type MapService ¶
type MapService service
func (*MapService) Get ¶
func (s *MapService) Get(ctx context.Context, serverID int) (*apiclient.MapResponse, error)
type OnlineService ¶
type OnlineService service
func (*OnlineService) Get ¶
func (s *OnlineService) Get(ctx context.Context, serverID int) (*apiclient.OnlinePlayersResponse, error)
type PlayerService ¶
type PlayerService service
func (*PlayerService) Find ¶
func (s *PlayerService) Find(ctx context.Context, serverID int, nickname string) (*apiclient.PlayerResponse, error)
type SobesService ¶
type SobesService service
func (*SobesService) Get ¶
func (s *SobesService) Get(ctx context.Context, serverID int) (*apiclient.SobesResponse, error)
type StatusService ¶
type StatusService service
func (*StatusService) Get ¶
func (s *StatusService) Get(ctx context.Context) (*apiclient.StatusResponse, error)
Click to show internal directories.
Click to hide internal directories.