client

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Port = "8080"
)

Variables

View Source
var (
	Version = "0"
)

Functions

This section is empty.

Types

type Request

type Request map[string]interface{}

type Response

type Response struct {
	ResponseData map[string]interface{}
	Raw          []byte
}

type Storage

type Storage struct {
	Client             unsafe.Pointer
	AuthorizationState string
	Updates            chan Update
	BotToken           string

	Version  string
	CommitID string
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Storage

func (*Storage) Close

func (clientStorage *Storage) Close()

func (*Storage) SendAndCatch

func (clientStorage *Storage) SendAndCatch(jsonQuery interface{}) (Response, error)

type Update

type Update struct {
	UpdateData map[string]interface{}
	Raw        []byte
}

Jump to

Keyboard shortcuts

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