ops

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cleanup

type Cleanup func(context.Context) error

type Client

type Client struct {
	Operation

	Log log.Logger
	// contains filtered or unexported fields
}

func (*Client) Create

func (c *Client) Create(cfg *config.Config, reg *registry.PluginRegistry) (Cleanup, error)

func (*Client) Serve

func (c *Client) Serve(ctx context.Context) error

type Metrics

type Metrics struct {
	Operation

	Log       log.Logger
	Namespace string
	// contains filtered or unexported fields
}

func (*Metrics) Create

func (m *Metrics) Create(cfg *config.Config, reg *registry.PluginRegistry) (Cleanup, error)

func (*Metrics) Serve

func (m *Metrics) Serve(ctx context.Context) error

type Operation

type Operation interface {
	Create(*config.Config, *registry.PluginRegistry) (Cleanup, error)

	Serve(context.Context) error
}

type Server

type Server struct {
	Operation

	Log log.Logger
	// contains filtered or unexported fields
}

func (*Server) Create

func (s *Server) Create(cfg *config.Config, reg *registry.PluginRegistry) (Cleanup, error)

func (*Server) Serve

func (s *Server) Serve(ctx context.Context) error

Jump to

Keyboard shortcuts

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