microservice

package
v0.0.0-...-e0aa601 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientOptions

type ClientOptions struct {
	Name    string
	Version string
	Log     *zap.Logger
}

ClientOptions represent external dependencies.

type MicroService

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

MicroService is the micro-service.

func Init

func Init(clientOpts *ClientOptions) (*MicroService, error)

Init initializes the service.

func (*MicroService) Run

func (s *MicroService) Run() error

Run runs the service.

type Options

type Options struct {
	IsTest          bool
	PrysmAddrs      []string
	LighthouseAddrs []string
}

Options contains the configuration parameters of the service.

func (*Options) Load

func (opts *Options) Load() error

Load loads missing options

func (*Options) Validate

func (opts *Options) Validate() error

Validate applies the validation logic to the options.

Jump to

Keyboard shortcuts

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