client

package
v0.0.0-...-ca68a2b Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CF_URL = "http://codeforces.com/api"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(conf *Config) *Client

func (*Client) Call

func (c *Client) Call(apiURL string, params map[string][]string, result interface{}) error

func (*Client) Sig

func (c *Client) Sig(method string, params map[string][]string) (string, error)

type Config

type Config struct {
	ApiKey    string
	ApiSecret string
	Lang      string
}

type Response

type Response struct {
	Status  string          `json:"status"`
	Comment string          `json:"comment,omitempty"`
	Result  json.RawMessage `json:"result,omitempty"`
}

Jump to

Keyboard shortcuts

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