Documentation ¶
Overview ¶
Package server implements the sansshell 'Logging' service.
Index ¶
- Variables
- type Server
- func (s *Server) GetVerbosity(ctx context.Context, req *emptypb.Empty) (*pb.VerbosityReply, error)
- func (s *Server) Register(gs *grpc.Server)
- func (s *Server) SetVerbosity(ctx context.Context, req *pb.SetVerbosityRequest) (*pb.VerbosityReply, error)
- func (s *Server) Version(ctx context.Context, req *emptypb.Empty) (*pb.VersionResponse, error)
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 ¶
GetVerbosity returns the last set value (or 0 if it's never been set).
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.
Click to show internal directories.
Click to hide internal directories.