refImpl

package
v0.0.0-...-1c3cffe Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Service           service.Config
	GoRoutinePoolSize int                `envconfig:"GOROUTINE_POOL_SIZE" default:"16"`
	CacheExpiration   time.Duration      `envconfig:"CACHE_EXPIRATION" default:"30s"`
	Nats              nats.Config        `envconfig:"NATS"`
	MongoDB           mongodb.Config     `envconfig:"MONGODB"`
	Log               log.Config         `envconfig:"LOG"`
	Listen            certManager.Config `envconfig:"LISTEN"`
	Dial              certManager.Config `envconfig:"DIAL"`
}

func (Config) String

func (c Config) String() string

String return string representation of Config

type RefImpl

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

func Init

func Init(config Config) (*RefImpl, error)

func NewRequestHandlerFromConfig

func NewRequestHandlerFromConfig(config Config) (*RefImpl, error)

NewRequestHandlerFromConfig creates RegisterGrpcGatewayServer with all dependencies.

func (*RefImpl) Serve

func (r *RefImpl) Serve() error

func (*RefImpl) Shutdown

func (r *RefImpl) Shutdown()

Jump to

Keyboard shortcuts

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