Versions in this module Expand all Collapse all v1 v1.1.1 Dec 18, 2024 Changes in this version + func NewService(config Config) (*common.HTTPHandler, 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) GetChainAliases(_ *http.Request, args *GetChainAliasesArgs, reply *GetChainAliasesReply) error + func (a *Admin) GetConfig(_ *http.Request, args *Secret, reply *interface{}) error + func (a *Admin) GetLoggerLevel(_ *http.Request, args *GetLoggerLevelArgs, reply *GetLoggerLevelReply) error + func (a *Admin) GetNodeSigner(_ *http.Request, args *Secret, reply *GetNodeSignerReply) error + func (a *Admin) LoadVMs(r *http.Request, args *Secret, reply *LoadVMsReply) error + func (a *Admin) LockProfile(_ *http.Request, args *Secret, _ *api.EmptyReply) error + func (a *Admin) MemoryProfile(_ *http.Request, args *Secret, _ *api.EmptyReply) error + func (a *Admin) SetLoggerLevel(_ *http.Request, args *SetLoggerLevelArgs, _ *api.EmptyReply) error + func (a *Admin) Stacktrace(_ *http.Request, args *Secret, _ *api.EmptyReply) error + func (a *Admin) StartCPUProfiler(_ *http.Request, args *Secret, _ *api.EmptyReply) error + func (a *Admin) StopCPUProfiler(_ *http.Request, args *Secret, _ *api.EmptyReply) error + func (a *Admin) ValidateRequest(_ *rpc.RequestInfo, i interface{}) 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 + 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) + GetNodeSigner func(ctx context.Context, _ string, options ...rpc.Option) (*GetNodeSignerReply, 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, ...) 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, secret string) Client + type Config struct + ChainManager chains.Manager + HTTPServer server.PathAdderWithReadLock + Log logging.Logger + LogFactory logging.Factory + NodeConfig interface{} + ProfileDir string + Secret string + StakingTLSCert tls.Certificate + VMManager vms.Manager + VMRegistry registry.VMRegistry + type GetChainAliasesArgs struct + Chain string + type GetChainAliasesReply struct + Aliases []string + type GetLoggerLevelArgs struct + LoggerName string + type GetLoggerLevelReply struct + LoggerLevels map[string]LogAndDisplayLevels + type GetNodeSignerReply struct + PrivateKey string + PublicKey string + type ISecret interface + GetSecret func() string + type LoadVMsReply struct + FailedVMs map[ids.ID]string + NewVMs map[ids.ID][]string + type LogAndDisplayLevels struct + DisplayLevel logging.Level + LogLevel logging.Level + type Secret struct + Secret string + func (s *Secret) GetSecret() string + type SetLoggerLevelArgs struct + DisplayLevel *logging.Level + LogLevel *logging.Level + LoggerName string