gadgetservice

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SocketFile string
}

type Logger

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

Logger sends log messages through grpc

func (*Logger) GetLevel

func (l *Logger) GetLevel() logger.Level

func (*Logger) Log

func (l *Logger) Log(severity logger.Level, params ...any)

func (*Logger) Logf

func (l *Logger) Logf(severity logger.Level, format string, params ...any)

func (*Logger) SetLevel

func (l *Logger) SetLevel(level logger.Level)

type Service

type Service struct {
	pb.UnimplementedGadgetManagerServer
	// contains filtered or unexported fields
}

func NewService

func NewService(defaultLogger logger.Logger) *Service

func (*Service) Close

func (s *Service) Close()

func (*Service) GetInfo

func (s *Service) GetInfo(ctx context.Context, request *pb.InfoRequest) (*pb.InfoResponse, error)

func (*Service) Run

func (s *Service) Run(network, address string, serverOptions ...grpc.ServerOption) error

func (*Service) RunGadget

func (s *Service) RunGadget(runGadget pb.GadgetManager_RunGadgetServer) error

Jump to

Keyboard shortcuts

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