egrpc

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 21 Imported by: 16

Documentation

Index

Constants

View Source
const PackageName = "client.egrpc"

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	*grpc.ClientConn
	// contains filtered or unexported fields
}

type Config

type Config struct {
	BalancerName     string
	Addr             string
	Block            bool
	DialTimeout      time.Duration
	ReadTimeout      time.Duration
	Direct           bool
	OnFail           string // panic | error
	SlowLogThreshold time.Duration
	KeepAlive        *keepalive.ClientParameters

	Debug                        bool
	DisableTraceInterceptor      bool
	DisableAppNameInterceptor    bool
	DisableTimeoutInterceptor    bool
	DisableMetricInterceptor     bool
	EnableAccessInterceptor      bool
	EnableAccessInterceptorReply bool
	// contains filtered or unexported fields
}

Config ...

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig ...

type Container

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

func DefaultContainer

func DefaultContainer() *Container

func Load

func Load(key string) *Container

func (*Container) Build

func (c *Container) Build(options ...Option) *Component

Build ...

type Option

type Option func(c *Container)

func WithDialOption

func WithDialOption(opts ...grpc.DialOption) Option

WithDialOption ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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