api

package
v0.0.0-...-1c89688 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UnauthorizedResponse = []byte(`{"ok":false,"error_code":403,"description":"Token is not authorized in the BotManager"}`)

Functions

This section is empty.

Types

type API

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

type RunFunc

type RunFunc func() error

func NewAPI

func NewAPI(config *config.Config, manager *manager.Manager) (RunFunc, error)

NewAPI initializes an API instance and returns the ListerAndServe method

Jump to

Keyboard shortcuts

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