command

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

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

func NewRouter

func NewRouter(opts RouterOptions) *Router

func (*Router) Handle

func (r *Router) Handle(ctx context.Context, s *Session, args []string) []byte

type RouterOptions

type RouterOptions struct {
	Store    store.Store
	Cache    *cache.Memory
	Password string
	Logger   *zap.Logger
}

type Session

type Session struct {
	Authed  bool
	DB      int
	Name    string
	InMulti bool
	Queued  [][]string
}

Jump to

Keyboard shortcuts

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