Versions in this module Expand all Collapse all v1 v1.11.13-rc.2 Dec 4, 2024 v1.0.0 Dec 4, 2024 Changes in this version + func NewService(config Config) (http.Handler, error) + type Admin struct + func (a *Admin) Alias(_ *http.Request, args *AliasArgs, _ *api.EmptyReply) error + func (a *Admin) AliasChain(_ *http.Request, args *AliasChainArgs, _ *api.EmptyReply) error + func (a *Admin) DbGet(_ *http.Request, args *DBGetArgs, reply *DBGetReply) error + func (a *Admin) GetChainAliases(_ *http.Request, args *GetChainAliasesArgs, reply *GetChainAliasesReply) error + func (a *Admin) GetConfig(_ *http.Request, _ *struct{}, reply *interface{}) error + func (a *Admin) GetLoggerLevel(_ *http.Request, args *GetLoggerLevelArgs, reply *LoggerLevelReply) error + func (a *Admin) LoadVMs(r *http.Request, _ *struct{}, reply *LoadVMsReply) error + func (a *Admin) LockProfile(_ *http.Request, _ *struct{}, _ *api.EmptyReply) error + func (a *Admin) MemoryProfile(_ *http.Request, _ *struct{}, _ *api.EmptyReply) error + func (a *Admin) SetLoggerLevel(_ *http.Request, args *SetLoggerLevelArgs, reply *LoggerLevelReply) error + func (a *Admin) Stacktrace(_ *http.Request, _ *struct{}, _ *api.EmptyReply) error + func (a *Admin) StartCPUProfiler(_ *http.Request, _ *struct{}, _ *api.EmptyReply) error + func (a *Admin) StopCPUProfiler(_ *http.Request, _ *struct{}, _ *api.EmptyReply) error + type AliasArgs struct + Alias string + Endpoint string + type AliasChainArgs struct + Alias string + Chain string + type Client interface + Alias func(ctx context.Context, endpoint string, alias string, options ...rpc.Option) error + AliasChain func(ctx context.Context, chainID string, alias string, options ...rpc.Option) error + DBGet func(ctx context.Context, key []byte, options ...rpc.Option) ([]byte, error) + GetChainAliases func(ctx context.Context, chainID string, options ...rpc.Option) ([]string, error) + GetConfig func(ctx context.Context, options ...rpc.Option) (interface{}, error) + GetLoggerLevel func(ctx context.Context, loggerName string, options ...rpc.Option) (map[string]LogAndDisplayLevels, error) + LoadVMs func(context.Context, ...rpc.Option) (map[ids.ID][]string, map[ids.ID]string, error) + LockProfile func(context.Context, ...rpc.Option) error + MemoryProfile func(context.Context, ...rpc.Option) error + SetLoggerLevel func(ctx context.Context, loggerName, logLevel, displayLevel string, ...) (map[string]LogAndDisplayLevels, error) + Stacktrace func(context.Context, ...rpc.Option) error + StartCPUProfiler func(context.Context, ...rpc.Option) error + StopCPUProfiler func(context.Context, ...rpc.Option) error + func NewClient(uri string) Client + type Config struct + ChainManager chains.Manager + DB database.Database + HTTPServer server.PathAdderWithReadLock + Log logging.Logger + LogFactory logging.Factory + NodeConfig interface{} + ProfileDir string + VMManager vms.Manager + VMRegistry registry.VMRegistry + type DBGetArgs struct + Key string + type DBGetReply struct + ErrorCode rpcdbpb.Error + Value string + type GetChainAliasesArgs struct + Chain string + type GetChainAliasesReply struct + Aliases []string + type GetLoggerLevelArgs struct + LoggerName string + type KeyValueReader struct + func NewKeyValueReader(client Client) *KeyValueReader + func (r *KeyValueReader) Get(key []byte) ([]byte, error) + func (r *KeyValueReader) Has(key []byte) (bool, error) + type LoadVMsReply struct + FailedVMs map[ids.ID]string + NewVMs map[ids.ID][]string + type LogAndDisplayLevels struct + DisplayLevel logging.Level + LogLevel logging.Level + type LoggerLevelReply struct + LoggerLevels map[string]LogAndDisplayLevels + type SetLoggerLevelArgs struct + DisplayLevel *logging.Level + LogLevel *logging.Level + LoggerName string