grpcclient

package
v0.0.0-...-367b6cc Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Key = "grpcClient"

Variables

View Source
var File_adapters_grpc_client_grpc_client_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Adapter

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

func New

func New() *Adapter

func (*Adapter) Attach

func (a *Adapter) Attach()

func (*Adapter) Detach

func (a *Adapter) Detach()

func (*Adapter) GetConnection

func (a *Adapter) GetConnection(name string) grpc.ClientConnInterface

func (*Adapter) Initialize

func (a *Adapter) Initialize()

func (*Adapter) Register

func (a *Adapter) Register() (string, interface{})

type Configuration

type Configuration struct {
	PeerServices []*Configuration_PeerService `protobuf:"bytes,1,rep,name=peer_services,json=peerServices,proto3" json:"peer_services,omitempty"`
	// contains filtered or unexported fields
}

func (*Configuration) Descriptor deprecated

func (*Configuration) Descriptor() ([]byte, []int)

Deprecated: Use Configuration.ProtoReflect.Descriptor instead.

func (*Configuration) GetPeerServices

func (x *Configuration) GetPeerServices() []*Configuration_PeerService

func (*Configuration) ProtoMessage

func (*Configuration) ProtoMessage()

func (*Configuration) ProtoReflect

func (x *Configuration) ProtoReflect() protoreflect.Message

func (*Configuration) Reset

func (x *Configuration) Reset()

func (*Configuration) String

func (x *Configuration) String() string

type Configuration_PeerService

type Configuration_PeerService struct {
	Address           string                           `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	TlsName           string                           `protobuf:"bytes,2,opt,name=tls_name,json=tlsName,proto3" json:"tls_name,omitempty"`
	Tls               []*Configuration_PeerService_TLS `protobuf:"bytes,3,rep,name=tls,proto3" json:"tls,omitempty"`
	TlsCas            []string                         `protobuf:"bytes,4,rep,name=tls_cas,json=tlsCas,proto3" json:"tls_cas,omitempty"`
	TlsSkip           bool                             `protobuf:"varint,5,opt,name=tls_skip,json=tlsSkip,proto3" json:"tls_skip,omitempty"`
	AvailableServices []string                         `protobuf:"bytes,6,rep,name=available_services,json=availableServices,proto3" json:"available_services,omitempty"`
	EnableTls         bool                             `protobuf:"varint,7,opt,name=enable_tls,json=enableTls,proto3" json:"enable_tls,omitempty"`
	// contains filtered or unexported fields
}

func (*Configuration_PeerService) Descriptor deprecated

func (*Configuration_PeerService) Descriptor() ([]byte, []int)

Deprecated: Use Configuration_PeerService.ProtoReflect.Descriptor instead.

func (*Configuration_PeerService) GetAddress

func (x *Configuration_PeerService) GetAddress() string

func (*Configuration_PeerService) GetAvailableServices

func (x *Configuration_PeerService) GetAvailableServices() []string

func (*Configuration_PeerService) GetEnableTls

func (x *Configuration_PeerService) GetEnableTls() bool

func (*Configuration_PeerService) GetTls

func (*Configuration_PeerService) GetTlsCas

func (x *Configuration_PeerService) GetTlsCas() []string

func (*Configuration_PeerService) GetTlsName

func (x *Configuration_PeerService) GetTlsName() string

func (*Configuration_PeerService) GetTlsSkip

func (x *Configuration_PeerService) GetTlsSkip() bool

func (*Configuration_PeerService) ProtoMessage

func (*Configuration_PeerService) ProtoMessage()

func (*Configuration_PeerService) ProtoReflect

func (*Configuration_PeerService) Reset

func (x *Configuration_PeerService) Reset()

func (*Configuration_PeerService) String

func (x *Configuration_PeerService) String() string

type Configuration_PeerService_TLS

type Configuration_PeerService_TLS struct {
	Key  string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Cert string `protobuf:"bytes,3,opt,name=cert,proto3" json:"cert,omitempty"`
	// contains filtered or unexported fields
}

func (*Configuration_PeerService_TLS) Descriptor deprecated

func (*Configuration_PeerService_TLS) Descriptor() ([]byte, []int)

Deprecated: Use Configuration_PeerService_TLS.ProtoReflect.Descriptor instead.

func (*Configuration_PeerService_TLS) GetCert

func (*Configuration_PeerService_TLS) GetKey

func (*Configuration_PeerService_TLS) ProtoMessage

func (*Configuration_PeerService_TLS) ProtoMessage()

func (*Configuration_PeerService_TLS) ProtoReflect

func (*Configuration_PeerService_TLS) Reset

func (x *Configuration_PeerService_TLS) Reset()

func (*Configuration_PeerService_TLS) String

Jump to

Keyboard shortcuts

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