config

package
v0.0.0-...-85d39bf Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNatsConn

func GetNatsConn(ctx context.Context) (*nats.EncodedConn, error)

GetNatsConn ...

func WithNats

func WithNats(conn *nats.EncodedConn) middleware.Middleware

WithNats ...

Types

type Service

type Service struct {
	NatsIP  string `json:"natsAddress"`
	MongoIP string `json:"mongoAddress"`
	Host    string `json:"host"`
	Port    string `json:"port"`
}

Service is the basic service configuration object

func NewConfig

func NewConfig() Service

NewConfig ...

Jump to

Keyboard shortcuts

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