Versions in this module Expand all Collapse all v1 v1.1.0 Jun 19, 2022 Changes in this version + func NewService(config Config) (*common.HTTPHandler, error) + type Admin struct + func (service *Admin) Alias(_ *http.Request, args *AliasArgs, reply *api.SuccessResponse) error + func (service *Admin) AliasChain(_ *http.Request, args *AliasChainArgs, reply *api.SuccessResponse) error + func (service *Admin) GetChainAliases(_ *http.Request, args *GetChainAliasesArgs, reply *GetChainAliasesReply) error + func (service *Admin) GetConfig(_ *http.Request, args *struct{}, reply *interface{}) error + func (service *Admin) GetLoggerLevel(_ *http.Request, args *GetLoggerLevelArgs, reply *GetLoggerLevelReply) error + func (service *Admin) LockProfile(_ *http.Request, _ *struct{}, reply *api.SuccessResponse) error + func (service *Admin) MemoryProfile(_ *http.Request, _ *struct{}, reply *api.SuccessResponse) error + func (service *Admin) SetLoggerLevel(_ *http.Request, args *SetLoggerLevelArgs, reply *api.SuccessResponse) error + func (service *Admin) Stacktrace(_ *http.Request, _ *struct{}, reply *api.SuccessResponse) error + func (service *Admin) StartCPUProfiler(_ *http.Request, _ *struct{}, reply *api.SuccessResponse) error + func (service *Admin) StopCPUProfiler(_ *http.Request, _ *struct{}, reply *api.SuccessResponse) 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) (bool, error) + AliasChain func(ctx context.Context, chainID string, alias string) (bool, error) + GetChainAliases func(ctx context.Context, chainID string) ([]string, error) + LockProfile func(context.Context) (bool, error) + MemoryProfile func(context.Context) (bool, error) + Stacktrace func(context.Context) (bool, error) + StartCPUProfiler func(context.Context) (bool, error) + StopCPUProfiler func(context.Context) (bool, error) + func NewClient(uri string) Client + type Config struct + ChainManager chains.Manager + HTTPServer *server.Server + Log logging.Logger + LogFactory logging.Factory + NodeConfig interface{} + ProfileDir string + type GetChainAliasesArgs struct + Chain string + type GetChainAliasesReply struct + Aliases []string + type GetLoggerLevelArgs struct + LoggerName string + type GetLoggerLevelReply struct + LoggerLevels map[string]LogAndDisplayLevels + type LogAndDisplayLevels struct + DisplayLevel logging.Level + LogLevel logging.Level + type SetLoggerLevelArgs struct + DisplayLevel *logging.Level + LogLevel *logging.Level + LoggerName string