server

package
v1.23.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package server implements the sansshell 'Logging' service.

Package server implements the sansshell 'Logging' service.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the value returned by the Version RPC service.
	// This should likely be set as a linker option from external
	// input such as a git SHA or RPM version number.
	// go build -ldflags="-X github.com/Snowflake-Labs/sansshell/services/sansshell/server.Version=..."
	//
	// NOTE: This is a var so the linker can set it but in reality it's a const so treat as such.
	Version string
)

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.

func (*Server) Version added in v1.4.0

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

Jump to

Keyboard shortcuts

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