grpc

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefaultGRPCFlagsPrefix

func SetDefaultGRPCFlagsPrefix(val string)

func SetDefaultGRPCPort

func SetDefaultGRPCPort(val string)

func SetDefaultGRPCRunnable

func SetDefaultGRPCRunnable(val bool)

Types

type GRPC

type GRPC struct {
	Name     string `json:"name" yaml:"name"`
	Runnable bool   `json:"runnable" yaml:"runnable"`
	Port     string `json:"port" yaml:"port"`

	// CustomBindFlagsFunc defines custom bind flags behaviour for structure, if CustomBindFlagsFunc is nil, default  bind flags behaviour will be used
	CustomBindFlagsFunc func(fs *bootflag.FlagSet) `json:"-" yaml:"-"`

	// CustomParseFunc defines custom parse behaviour for structure, if CustomParseFunc is nil, default parse behaviour will be used
	CustomParseFunc func() (err error) `json:"-" yaml:"-"`
}

func (*GRPC) BindFlags

func (r *GRPC) BindFlags(fs *bootflag.FlagSet)

func (*GRPC) GetIntPort

func (r *GRPC) GetIntPort() (port int)

func (*GRPC) Parse

func (r *GRPC) Parse() (err error)

Jump to

Keyboard shortcuts

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