bot

package
v0.12.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const HeaderAccessToken = "Platform-Access-Token"

HeaderAccessToken defines the header name of the Platform Access Token.

View Source
const InactiveCloneCheckInterval = time.Minute

InactiveCloneCheckInterval defines an interval for check of idleness sessions.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Config *config.Config
	// contains filtered or unexported fields
}

App defines a application struct.

func NewApp

func NewApp(cfg *config.Config, platformClient *platform.Client,
	enterprise *features.Pack, sessions storage.PersistentSessionStorage) *App

Creates a new application.

func (*App) RunServer

func (a *App) RunServer(ctx context.Context) error

RunServer starts a server for message processing.

func (*App) SaveSessions

func (a *App) SaveSessions() error

SaveSessions dumps session data to the disk.

func (*App) Shutdown

func (a *App) Shutdown(ctx context.Context) error

Shutdown gracefully shuts down the server and deregister assistants.

type HealthResponse

type HealthResponse struct {
	Version            string   `json:"version"`
	Edition            string   `json:"edition"`
	CommunicationTypes []string `json:"communication_types"`
}

HealthResponse represents a response for heath-check requests.

Directories

Path Synopsis
Package command provides assistant commands.
Package command provides assistant commands.

Jump to

Keyboard shortcuts

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