orcha

package
v0.0.0-...-18fad60 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Version string
	Commit  string
}

Config structure with all the options required by the service and service components.

func (*Config) IsValid

func (c *Config) IsValid() error

IsValid checks if the configuration options are valid.

func (*Config) Print

func (c *Config) Print()

Print the configuration using the application logger.

type Service

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

Service structure in charge of launching the application.

func NewService

func NewService(cfg Config) *Service

NewService creates a new service with a given configuration

func (*Service) Run

func (s *Service) Run()

Run method starting the internal components and launching the service

func (*Service) Shutdown

func (s *Service) Shutdown()

Shutdown code

Jump to

Keyboard shortcuts

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