grpc

package
v0.0.0-...-5716353 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: BSD-3-Clause Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Ext = service.Extend(extName, &extConfig, func(ctx context.Context, r *service.Registry) error {
	if err := extConfig.Init(ctx); err != nil {
		return err
	}

	return extConfig.Register(r)
})

Functions

This section is empty.

Types

type Config

type Config struct {
	// Commands are space-delimited arguments for executing a program.  The
	// arguments may be prefixed with @path if it differs from argv[0].
	Commands []string

	// Target addresses for gRPC connections.  The address may be followed by
	// space-delimited dial options.  Supported options:
	//
	//     "insecure" - no encryption or authentication
	//     "optional" - ignores target on connection error
	//
	Targets []string
	// contains filtered or unexported fields
}

Config for gRPC services.

func (*Config) Close

func (conf *Config) Close() (err error)

Close initialized services.

func (*Config) Init

func (conf *Config) Init(ctx context.Context) error

Init configured services.

func (*Config) Register

func (conf *Config) Register(r *service.Registry) error

Register initialized services.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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