natscli

package
v0.0.0-...-6aa13fe Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckProfileDir

func CheckProfileDir(cCxt *cli.Context) (err error)

func ConnectDaemon

func ConnectDaemon(cCtx *cli.Context) (*grpc.ClientConn, error)

func NewAddressHandler

func NewAddressHandler(logger *logrus.Logger) cli.ActionFunc

func NewCreateChatHandler

func NewCreateChatHandler(logger *logrus.Logger) cli.ActionFunc

func NewGenerateHandler

func NewGenerateHandler(logger *logrus.Logger) cli.ActionFunc

func NewOfflineHandler

func NewOfflineHandler(logger *logrus.Logger) cli.ActionFunc

func NewOnlineHandler

func NewOnlineHandler(logger *logrus.Logger) cli.ActionFunc

func NewOpenChatHandler

func NewOpenChatHandler(logger *logrus.Logger) cli.ActionFunc

func NewRmChatHandler

func NewRmChatHandler(logger *logrus.Logger) cli.ActionFunc

func WrapCliHandler

func WrapCliHandler(handler CliHandler, logger *logrus.Entry) cli.ActionFunc

Types

type CliDaemonHandler

type CliDaemonHandler func(*cli.Context, *logrus.Entry, api.DaemonClient) error

type CliHandler

type CliHandler func(*cli.Context, *logrus.Entry) error

func WrapCliDaemonHandler

func WrapCliDaemonHandler(handler CliDaemonHandler) CliHandler

Jump to

Keyboard shortcuts

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