Documentation ¶
Index ¶
Constants ¶
View Source
const (
Endpoint = "api.nightblue.io:443"
)
Variables ¶
This section is empty.
Functions ¶
func NewRpcCredentials ¶
func NewRpcCredentials() hardcodedAuth
Types ¶
type ClientOption ¶
type ClientOption interface {
// contains filtered or unexported methods
}
func WithGrpcConnection ¶
func WithGrpcConnection(v *grpc.ClientConn) ClientOption
func WithTarget ¶
func WithTarget(s string) ClientOption
func WithTargetService ¶
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.
Click to show internal directories.
Click to hide internal directories.