varlogctl

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) (*Controller, error)

func (*Controller) Decode

func (c *Controller) Decode(res any) ([]byte, error)

func (*Controller) Execute

func (c *Controller) Execute(ctx context.Context) (any, error)

func (*Controller) Print

func (c *Controller) Print(buf []byte, writer io.Writer) error

type ExecuteFunc

type ExecuteFunc func(context.Context, varlog.Admin) (any, error)

type Option

type Option func(*config)

func WithAdmin

func WithAdmin(admin varlog.Admin) Option

func WithExecuteFunc

func WithExecuteFunc(executeFunc ExecuteFunc) Option

func WithLogger

func WithLogger(loger *zap.Logger) Option

func WithPrettyPrint

func WithPrettyPrint() Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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