conn

package
v0.68.90 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	BlueEndpoint = "blue.alphaus.cloud:443" // global LB
	// BlueEndpoint     = "bluerpc.alphaus.cloud:8443" // network LB (JP)
	BlueEndpointNext = "bluenext.alphaus.cloud:8443"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientOption

type ClientOption interface {
	// contains filtered or unexported methods
}

func WithGrpcConnection

func WithGrpcConnection(v *grpc.ClientConn) ClientOption

func WithSession

func WithSession(v *session.Session) ClientOption

func WithTarget

func WithTarget(s string) ClientOption

func WithTargetService added in v0.6.8

func WithTargetService(s string) ClientOption

type GrpcClientConn

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

func New

func New(ctx context.Context, opts ...ClientOption) (*GrpcClientConn, error)

New returns a grpc connection to a Blue API target service.

func (*GrpcClientConn) Close

func (c *GrpcClientConn) Close()

Close closes the underlying connection.

Jump to

Keyboard shortcuts

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