config

package
v0.0.0-...-db4bbf2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: MIT Imports: 4 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 {
	Default  *Default
	Server   *Server
	Input    *Input
	Describe string
	// contains filtered or unexported fields
}

func Init

func Init(args []string) (cfg *Config, err error)

type Default

type Default struct {
	ProtoPath []string
	ProtoFile []string
	Package   string
	Service   string
	Method    string
}

type Input

type Input struct {
	Body string
}

type Server

type Server struct {
	Host       string
	Port       string
	Reflection bool
	TLS        bool
	CACert     string
	Cert       string
	CertKey    string
	Name       string
}

func (*Server) Address

func (s *Server) Address() (addr string)

Jump to

Keyboard shortcuts

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