v1

package
v0.0.0-...-3ec0304 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrInternalServer  = "an error occurred within version api server"
	LoggingPackageName = "internal.apiserver.grpc.apis.version.v1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct{}

func (API) RegisterAPI

func (api API) RegisterAPI(server *grpc.Server)

type Server

type Server struct {
	// contains filtered or unexported fields
}
var (
	APIServer Server
)

func NewServer

func NewServer(config *ServerConfig) Server

func (Server) GetInformation

func (s Server) GetInformation(ctx context.Context, input *pb.GetInformationMsg) (*pb.GetInformationReply, error)

func (*Server) SetupServices

func (s *Server) SetupServices()

type ServerConfig

type ServerConfig struct {
	InputLog   *zap.Logger
	PromClient promapi.Client
}

Jump to

Keyboard shortcuts

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