ribbit

package module
v0.0.0-...-778aad6 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2019 License: MIT Imports: 9 Imported by: 3

README

ribbit-go

A golang version of the ribbit client used by battle.net

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetTimeout

func SetTimeout(out time.Duration)

Types

type CdnItem

type CdnItem struct {
	Name        string   `json:"-"`
	Region      string   `json:"region"`
	Path        string   `json:"path"`
	Hosts       string   `json:"-"`
	HostsList   []string `json:"hosts_list"`
	Servers     string   `json:"-"`
	ServersList []string `json:"servers_lists"`
	ConfigPath  string   `json:"config_path"`
}

type RegionItem

type RegionItem struct {
	Buildconfig   string `json:"build_config"`
	Buildid       string `json:"build_id"`
	Cdnconfig     string `json:"cdn_config"`
	Keyring       string `json:"keyring,omitempty"`
	Region        string `json:"region"`
	Versionsname  string `json:"version_name"`
	Productconfig string `json:"product_config,omitempty"`
}

type RibbitClient

type RibbitClient struct {
	Region string
	Proxy  string
}

func NewRibbitClient

func NewRibbitClient(reg string) *RibbitClient

func NewRibbitClientProxy

func NewRibbitClientProxy(server string) *RibbitClient

func (*RibbitClient) BGDL

func (client *RibbitClient) BGDL(game string) ([]RegionItem, string, string, error)

func (*RibbitClient) CDNS

func (client *RibbitClient) CDNS(game string) ([]CdnItem, string, string, error)

func (*RibbitClient) Summary

func (client *RibbitClient) Summary() ([]SummaryItem, string, string, error)

func (*RibbitClient) Versions

func (client *RibbitClient) Versions(game string) ([]RegionItem, string, string, error)

type SummaryItem

type SummaryItem struct {
	Product string `json:"product"`
	Seqn    string `json:"seqn"`
	Flags   string `json:"flags"`
}

func (SummaryItem) BGDL

func (item SummaryItem) BGDL() ([]RegionItem, string, string, error)

func (SummaryItem) CDNS

func (item SummaryItem) CDNS() ([]CdnItem, string, string, error)

func (SummaryItem) Versions

func (item SummaryItem) Versions() ([]RegionItem, string, string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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