client

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GraphvizCmd = "dot"
	CmdTimeout  = 25 * time.Second

	UploadFileType            = "png"
	UploadImageFileNamePrefix = "lattice"
)

Variables

This section is empty.

Functions

func BotVersionFromContext

func BotVersionFromContext(ctx context.Context) string

func TokenizerVersionFromContext

func TokenizerVersionFromContext(ctx context.Context) string

func WithBotVersion

func WithBotVersion(ctx context.Context, v string) context.Context

func WithTokenizerVersion

func WithTokenizerVersion(ctx context.Context, v string) context.Context

Types

type Bot

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

func New

func New(appToken, botToken string, debug bool) (*Bot, error)

func (Bot) Run

func (bot Bot) Run(ctx context.Context) error

type Versions

type Versions struct {
	Kagome string
	Bot    string
}

Jump to

Keyboard shortcuts

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