presentation

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Grpc

type Grpc struct {
	pb_error.UnimplementedErorrSvcServer
	pb_logging.UnimplementedLoggingSvcServer
	// contains filtered or unexported fields
}

Grpc is the gRPC API for the application

func NewGrpc

func NewGrpc(qh pp.QueryPort, ch pp.CommandPort) *Grpc

NewGrpc creates a new instance of Grpc

func (*Grpc) GetErrors

func (a *Grpc) GetErrors(ctx context.Context, req *pb_error.ErrorRequest) (*pb_error.Errors, error)

GetErrors returns the embedded errors.

func (*Grpc) GetLogsByFilter

func (a *Grpc) GetLogsByFilter(ctx context.Context, filter *pb_logging.LogDataFilter) (*pb_logging.LogDatas, error)

GetLogsByFilter returns the logs that match the given filter.

func (*Grpc) Log

func (a *Grpc) Log(ctx context.Context, logData *pb_logging.LogData) (*pb_logging.LoggingResult, error)

Log sends the given log to the application layer.

func (*Grpc) Serve

func (a *Grpc) Serve(port string)

Serve starts the API server

Jump to

Keyboard shortcuts

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