external

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package external implements functionality for communicating and parsing external or 3rd party data sources.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoProfile = errors.New("no profile")
)

Functions

func FetchCompHist added in v0.1.8

func FetchCompHist(ctx context.Context, sid steamid.SID64, hist *CompHist) error

func GetRGLProfile added in v0.1.8

func GetRGLProfile(ctx context.Context, sid steamid.SID64, profile *RGLProfile) error

func Import

func Import(list config.BanList) error

Import is used to download and load block lists into memory

Types

type CompHist added in v0.1.8

type CompHist struct {
	RGLDiv    string
	RGLTeam   string
	LogsCount int
}

type LogsTFResult added in v0.1.2

type LogsTFResult struct {
	Success    bool `json:"success"`
	Results    int  `json:"results"`
	Total      int  `json:"total"`
	Parameters struct {
		Player   string      `json:"player"`
		Uploader interface{} `json:"uploader"`
		Title    interface{} `json:"title"`
		Map      interface{} `json:"map"`
		Limit    int         `json:"limit"`
		Offset   int         `json:"offset"`
	} `json:"parameters"`
	Logs []struct {
		ID      int    `json:"id"`
		Title   string `json:"title"`
		Map     string `json:"map"`
		Date    int    `json:"date"`
		Views   int    `json:"views"`
		Players int    `json:"players"`
	} `json:"logs"`
}

func LogsTFOverview added in v0.1.2

func LogsTFOverview(sid steamid.SID64) (*LogsTFResult, error)

LogsTFOverview queries the logstf api for metadata about a players logs http://logs.tf/api/v1/log?title=X&uploader=Y&player=Z&limit=N&offset=N

type RGLProfile added in v0.1.8

type RGLProfile struct {
	SteamId  steamid.SID64
	Division string
	Team     string
}

Jump to

Keyboard shortcuts

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