server

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package server implements the sansshell 'Logging' service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is used to implement the gRPC Server

func (*Server) GetVerbosity

func (s *Server) GetVerbosity(ctx context.Context, req *emptypb.Empty) (*pb.VerbosityReply, error)

GetVerbosity returns the last set value (or 0 if it's never been set).

func (*Server) Register

func (s *Server) Register(gs *grpc.Server)

Register is called to expose this handler to the gRPC server

func (*Server) SetVerbosity

func (s *Server) SetVerbosity(ctx context.Context, req *pb.SetVerbosityRequest) (*pb.VerbosityReply, error)

SetVerbosity sets the logging level and returns the last value before this was called.

Jump to

Keyboard shortcuts

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