common

package
v1.23.3-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2023 License: Apache-2.0, MIT Imports: 13 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonAPI

type CommonAPI struct {
	fx.In

	Alerting     *alerting.Alerting
	APISecret    *dtypes.APIAlg
	ShutdownChan dtypes.ShutdownChan

	Start dtypes.NodeStartTime
}

func (*CommonAPI) AuthNew

func (a *CommonAPI) AuthNew(ctx context.Context, perms []auth.Permission) ([]byte, error)

func (*CommonAPI) AuthVerify

func (a *CommonAPI) AuthVerify(ctx context.Context, token string) ([]auth.Permission, error)

func (*CommonAPI) Closing added in v0.4.0

func (a *CommonAPI) Closing(ctx context.Context) (<-chan struct{}, error)

func (*CommonAPI) Discover added in v1.9.0

func (a *CommonAPI) Discover(ctx context.Context) (apitypes.OpenRPCDocument, error)

func (*CommonAPI) LogAlerts added in v1.11.3

func (a *CommonAPI) LogAlerts(ctx context.Context) ([]alerting.Alert, error)

func (*CommonAPI) LogList

func (a *CommonAPI) LogList(context.Context) ([]string, error)

func (*CommonAPI) LogSetLevel

func (a *CommonAPI) LogSetLevel(ctx context.Context, subsystem, level string) error

func (*CommonAPI) Session added in v1.1.3

func (a *CommonAPI) Session(ctx context.Context) (uuid.UUID, error)

func (*CommonAPI) Shutdown added in v0.3.2

func (a *CommonAPI) Shutdown(ctx context.Context) error

func (*CommonAPI) StartTime added in v1.19.0

func (a *CommonAPI) StartTime(context.Context) (time.Time, error)

func (*CommonAPI) Version

func (a *CommonAPI) Version(context.Context) (api.APIVersion, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL