Documentation
¶
Index ¶
- Variables
- func ConfigureInApp(app *fisk.Application, cliOpts *options.Options, prepare bool, ...) (*options.Options, error)
- func ConfigureInCommand(cmd *fisk.CmdClause, cliOpts *options.Options, prepare bool, disable ...string) (*options.Options, error)
- func SetContext(c context.Context)
- func SetLogger(l Logger)
- func SetVersion(v string)
- type ActTLSCmd
- type ConsumerCheckCmd
- type ConsumerDetail
- type Logger
- type SchemaValidator
- type SrvCheckCmd
- type SrvClusterCmd
- type SrvConfigCmd
- type SrvGraphCmd
- type SrvInfoCmd
- type SrvLsCmd
- type SrvMappingCmd
- type SrvPasswdCmd
- type SrvPingCmd
- type SrvReportCmd
- type SrvRequestCmd
- type SrvRunCmd
- type SrvRunConfig
- type SrvWatchAccountCmd
- type SrvWatchJSCmd
- type SrvWatchServerCmd
- type StreamCheckCmd
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrContextNotFound = errors.New("context not found")
View Source
var SkipContexts bool
SkipContexts used during tests
View Source
var (
Version = "development"
)
Functions ¶
func ConfigureInApp ¶
func ConfigureInApp(app *fisk.Application, cliOpts *options.Options, prepare bool, disable ...string) (*options.Options, error)
ConfigureInApp attaches the cli commands to app, prepare will load the context on demand and should be true unless override nats, manager and js context is given in a custom PreAction in the caller. Disable is a list of command names to skip.
func ConfigureInCommand ¶
func ConfigureInCommand(cmd *fisk.CmdClause, cliOpts *options.Options, prepare bool, disable ...string) (*options.Options, error)
ConfigureInCommand attaches the cli commands to cmd, prepare will load the context on demand and should be true unless override nats, manager and js context is given in a custom PreAction in the caller. Disable is a list of command names to skip.
func SetVersion ¶
func SetVersion(v string)
Types ¶
type ActTLSCmd ¶ added in v0.1.0
type ActTLSCmd struct {
// contains filtered or unexported fields
}
type ConsumerCheckCmd ¶ added in v0.2.0
type ConsumerCheckCmd struct {
// contains filtered or unexported fields
}
type ConsumerDetail ¶ added in v0.2.0
type ConsumerDetail struct {
ServerID string
StreamName string
ConsumerName string
Account string
AccountID string
RaftGroup string
State server.StreamState
Cluster *server.ClusterInfo
StreamCluster *server.ClusterInfo
DeliveredStreamSeq uint64
DeliveredConsumerSeq uint64
AckFloorStreamSeq uint64
AckFloorConsumerSeq uint64
NumAckPending int
NumRedelivered int
NumWaiting int
NumPending uint64
HealthStatus string
}
type Logger ¶
type Logger interface {
Printf(format string, a ...any)
Fatalf(format string, a ...any)
Print(a ...any)
Fatal(a ...any)
Println(a ...any)
}
Logger provides a pluggable logger implementation
type SchemaValidator ¶
type SchemaValidator struct{}
func (SchemaValidator) ValidateStruct ¶
func (v SchemaValidator) ValidateStruct(data any, schemaType string) (ok bool, errs []string)
type SrvCheckCmd ¶
type SrvCheckCmd struct {
// contains filtered or unexported fields
}
type SrvClusterCmd ¶ added in v0.1.0
type SrvClusterCmd struct {
// contains filtered or unexported fields
}
type SrvConfigCmd ¶ added in v0.1.0
type SrvConfigCmd struct {
// contains filtered or unexported fields
}
type SrvGraphCmd ¶ added in v0.2.0
type SrvGraphCmd struct {
// contains filtered or unexported fields
}
type SrvInfoCmd ¶
type SrvInfoCmd struct {
// contains filtered or unexported fields
}
type SrvMappingCmd ¶ added in v0.0.34
type SrvMappingCmd struct {
// contains filtered or unexported fields
}
type SrvPasswdCmd ¶
type SrvPasswdCmd struct {
// contains filtered or unexported fields
}
type SrvPingCmd ¶
type SrvPingCmd struct {
// contains filtered or unexported fields
}
type SrvReportCmd ¶
type SrvReportCmd struct {
// contains filtered or unexported fields
}
type SrvRequestCmd ¶
type SrvRequestCmd struct {
// contains filtered or unexported fields
}
type SrvRunConfig ¶
type SrvRunConfig struct {
Name string
Port string
UserPassword string
UserPasswordCrypt string
ServicePassword string
ServicePasswordCrypt string
SystemPassword string
SystemPasswordCrypt string
ExtendDemoNetwork bool
ExtendWithContext bool
JetStream bool
JSDomain string
Verbose bool
Debug bool
StoreDir string
Clean bool
MonitorPort int
Context *natscontext.Context
}
type SrvWatchAccountCmd ¶ added in v0.2.0
type SrvWatchAccountCmd struct {
// contains filtered or unexported fields
}
type SrvWatchJSCmd ¶ added in v0.2.0
type SrvWatchJSCmd struct {
// contains filtered or unexported fields
}
type SrvWatchServerCmd ¶ added in v0.2.0
type SrvWatchServerCmd struct {
// contains filtered or unexported fields
}
type StreamCheckCmd ¶ added in v0.2.0
type StreamCheckCmd struct {
// contains filtered or unexported fields
}
Source Files
¶
- account_command.go
- account_tls_command.go
- audit_analyze_command.go
- audit_checks_command.go
- audit_command.go
- audit_gather_command.go
- auth_account_command.go
- auth_account_exports.go
- auth_account_imports.go
- auth_command.go
- auth_nkey_command.go
- auth_operator_command.go
- auth_user_command.go
- bench_command.go
- cli.go
- columns.go
- consumer_command.go
- context_command.go
- counter_command.go
- errors_command.go
- events_command.go
- jsonschema.go
- kv_command.go
- latency_command.go
- object_command.go
- plugins_command.go
- pub_command.go
- reply_command.go
- rtt_command.go
- schema_command.go
- schema_info_command.go
- schema_req_command.go
- schema_search_command.go
- schema_validate_command.go
- server_account_command.go
- server_check_command.go
- server_check_exporter_command.go
- server_cluster_command.go
- server_command.go
- server_config_command.go
- server_consumer_check.go
- server_generate.go
- server_graph_command.go
- server_info_command.go
- server_list_command.go
- server_mapping_command.go
- server_mkpasswd_command.go
- server_ping_command.go
- server_report_command.go
- server_request_command.go
- server_run_command.go
- server_stream_check.go
- server_watch_acct_command.go
- server_watch_command.go
- server_watch_js_command.go
- server_watch_srv_command.go
- service_command.go
- stream_command.go
- sub_command.go
- top_command.go
- trace_command.go
- traffic_command.go
- util.go
- yaml.go
Click to show internal directories.
Click to hide internal directories.