kvm-operator: github.com/giantswarm/kvm-operator/server Index | Files | Directories

package server

import "github.com/giantswarm/kvm-operator/server"

Package server provides a server implementation to connect network transport protocols and service business logic by defining server endpoints.


Package Files

error.go server.go

func IsInvalidConfig Uses

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

type Config Uses

type Config struct {
    Logger  micrologger.Logger
    Service *service.Service
    Viper   *viper.Viper

    ProjectName string

Config represents the configuration used to create a new server object.

type Server Uses

type Server struct {
    // contains filtered or unexported fields

func New Uses

func New(config Config) (*Server, error)

New creates a new configured server object.

func (*Server) Boot Uses

func (s *Server) Boot()

func (*Server) Config Uses

func (s *Server) Config() microserver.Config

func (*Server) Shutdown Uses

func (s *Server) Shutdown()



Package server imports 9 packages (graph) and is imported by 1 packages. Updated 2018-11-25. Refresh now. Tools for package owners.