Versions in this module Expand all Collapse all v1 v1.0.2 May 14, 2024 v1.0.1 May 14, 2024 Changes in this version + const ACCOUNT + const CommandSetTypeAccount + const CommandSetTypeLocal + const CommandSetTypeRemote + const JSONArray + const JSONEnd + const JSONInt + const JSONMap + const JSONString + const LOCAL + func ExecuteFromFile(fileName string) + func Repl(opts ...Option) + func UnexpectedEventCb(pc *Client) func(data interface{}) + type Account struct + Aliases map[string][]string + CmdSets map[string]map[string]string + CurrentSet string + CurrentSetType int + Username string + func (a *Account) Load() (bool, error) + func (a *Account) Save() error + type CliLogger struct + func NewCliLogger(shell *ishell.Shell) *CliLogger + func (l CliLogger) Debug(v ...interface{}) + func (l CliLogger) Debugf(format string, v ...interface{}) + func (l CliLogger) Debugln(v ...interface{}) + func (l CliLogger) Error(v ...interface{}) + func (l CliLogger) Errorf(format string, v ...interface{}) + func (l CliLogger) Errorln(v ...interface{}) + func (l CliLogger) Fatal(v ...interface{}) + func (l CliLogger) Fatalf(format string, v ...interface{}) + func (l CliLogger) Fatalln(v ...interface{}) + func (l CliLogger) Info(v ...interface{}) + func (l CliLogger) Infof(format string, v ...interface{}) + func (l CliLogger) Infoln(v ...interface{}) + func (l CliLogger) Panic(v ...interface{}) + func (l CliLogger) Panicf(format string, v ...interface{}) + func (l CliLogger) Panicln(v ...interface{}) + func (l CliLogger) Print(v ...interface{}) + func (l CliLogger) Printf(format string, v ...interface{}) + func (l CliLogger) Println(v ...interface{}) + func (l CliLogger) Trace(v ...interface{}) + func (l CliLogger) Tracef(format string, v ...interface{}) + func (l CliLogger) Traceln(v ...interface{}) + func (l CliLogger) Warn(v ...interface{}) + func (l CliLogger) Warnf(format string, v ...interface{}) + func (l CliLogger) Warning(v ...interface{}) + func (l CliLogger) Warningf(format string, v ...interface{}) + func (l CliLogger) Warningln(v ...interface{}) + func (l CliLogger) Warnln(v ...interface{}) + type Client struct + IncomingMsgChan chan *message.Message + func NewClient() *Client + func (pc *Client) Connect(addr string) error + func (pc *Client) ConnectedStatus() bool + func (pc *Client) Disconnect() + func (pc *Client) MsgChannel() chan *message.Message + func (pc *Client) SendNotify(route string, data []byte) error + func (pc *Client) SendRequest(route string, data []byte) (uint, error) + type ErrorReader func(int64) string + type Logger interface + Print func(v ...interface{}) + Printf func(format string, v ...interface{}) + Println func(v ...interface{}) + type Option func(*Options) + func WithBranch(branch uint32) Option + func WithCodec(codec codec.Codec) Option + func WithComponents(components *component.Components) Option + func WithDictionary(dictionary message.Dictionary) Option + func WithEnableUnexpected(enableUnexpected bool) Option + func WithErrorReader(errorReader ErrorReader) Option + func WithIsWebSocket(isWebSocket bool) Option + func WithPrettyJSON(prettyJSON bool) Option + func WithReasonReader(reasonReader ReasonReader) Option + func WithRedisClient(redisOptions *redis.Options) Option + func WithSerializer(serializer serializer.Serializer) Option + func WithVersion(version string) Option + func WithWebSocketCompression(webSocketCompression bool) Option + func WithWebSocketPath(wsPath string) Option + type Options struct + Branch uint32 + Codec codec.Codec + Components *component.Components + Dictionary message.Dictionary + EnableUnexpected bool + ErrorReader ErrorReader + IsWebSocket bool + PrettyJSON bool + ReasonReader ReasonReader + RedisOptions *redis.Options + Serializer serializer.Serializer + WebSocketCompression bool + WebSocketPath string + type ReasonReader func(int64) string