repository

package
v0.0.0-...-9b5ed8b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GCURL  = "https://csgo.gamersclub.gg/api/box/history/{playerID}"
	CMSURL = "https://panelabot.win/json/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Players

type Players struct {
	Players []PlayersURL `json:"players"`
}

type PlayersURL

type PlayersURL struct {
	Nick string `json:"nick"`
	Url  string `json:"url"`
}

type ReplyWordStruct

type ReplyWordStruct struct {
	BadwordReply []string `json:"badwordReply"`
	KuyReply     []string `json:"kuyReply"`
}

ReplyWordStruct structure

type Repository

type Repository interface {
	GetPlayersURL() (Players, error)
	GetPlayerStats(playerID string, data *Response) error
	GetPlayerStatsAsync(playerID string, rchan chan Response)
	GetAudioItems() (*ResponseCMS, error)
}

Repository interface

func NewMessageRepository

func NewMessageRepository() Repository

NewMessageRepository new message repository

type Response

type Response struct {
	Matches struct {
		Wins    int `json:"wins"`
		Loss    int `json:"loss"`
		Matches int `json:"matches"`
	} `json:"matches"`
	Stat []struct {
		Stat  string `json:"stat"`
		Value string `json:"value"`
	} `json:"stat"`
}

type ResponseCMS

type ResponseCMS struct {
	Items []struct {
		Title       string `json:"title"`
		Attachments []struct {
			Url string `json:"url"`
		} `json:"attachments"`
	} `json:"items"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL