Documentation ¶
Index ¶
- func RegisterNetworkServiceServer(s *grpc.Server, srv NetworkServiceServer)
- type NetworkServiceClient
- type NetworkServiceRequest
- func (ns *NetworkServiceRequest) Clone() *NetworkServiceRequest
- func (*NetworkServiceRequest) Descriptor() ([]byte, []int)
- func (m *NetworkServiceRequest) GetConnection() *connection.Connection
- func (m *NetworkServiceRequest) GetMechanismPreferences() []*connection.Mechanism
- func (ns *NetworkServiceRequest) GetRequestConnection() *connection.Connection
- func (ns *NetworkServiceRequest) GetRequestMechanismPreferences() []*connection.Mechanism
- func (ns *NetworkServiceRequest) IsValid() error
- func (*NetworkServiceRequest) ProtoMessage()
- func (m *NetworkServiceRequest) Reset()
- func (ns *NetworkServiceRequest) SetRequestConnection(conn *connection.Connection)
- func (ns *NetworkServiceRequest) SetRequestMechanismPreferences(mechanismPreferences []*connection.Mechanism)
- func (m *NetworkServiceRequest) String() string
- func (m *NetworkServiceRequest) XXX_DiscardUnknown()
- func (m *NetworkServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NetworkServiceRequest) XXX_Merge(src proto.Message)
- func (m *NetworkServiceRequest) XXX_Size() int
- func (m *NetworkServiceRequest) XXX_Unmarshal(b []byte) error
- type NetworkServiceServer
- type UnimplementedNetworkServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterNetworkServiceServer ¶
func RegisterNetworkServiceServer(s *grpc.Server, srv NetworkServiceServer)
Types ¶
type NetworkServiceClient ¶
type NetworkServiceClient interface { Request(ctx context.Context, in *NetworkServiceRequest, opts ...grpc.CallOption) (*connection.Connection, error) Close(ctx context.Context, in *connection.Connection, opts ...grpc.CallOption) (*empty.Empty, error) }
NetworkServiceClient is the client API for NetworkService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewNetworkServiceClient ¶
func NewNetworkServiceClient(cc grpc.ClientConnInterface) NetworkServiceClient
type NetworkServiceRequest ¶
type NetworkServiceRequest struct { Connection *connection.Connection `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty"` MechanismPreferences []*connection.Mechanism `protobuf:"bytes,2,rep,name=mechanism_preferences,json=mechanismPreferences,proto3" json:"mechanism_preferences,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NetworkServiceRequest) Clone ¶
func (ns *NetworkServiceRequest) Clone() *NetworkServiceRequest
Clone clones request
func (*NetworkServiceRequest) Descriptor ¶
func (*NetworkServiceRequest) Descriptor() ([]byte, []int)
func (*NetworkServiceRequest) GetConnection ¶
func (m *NetworkServiceRequest) GetConnection() *connection.Connection
func (*NetworkServiceRequest) GetMechanismPreferences ¶
func (m *NetworkServiceRequest) GetMechanismPreferences() []*connection.Mechanism
func (*NetworkServiceRequest) GetRequestConnection ¶
func (ns *NetworkServiceRequest) GetRequestConnection() *connection.Connection
GetRequestConnection returns request connection
func (*NetworkServiceRequest) GetRequestMechanismPreferences ¶
func (ns *NetworkServiceRequest) GetRequestMechanismPreferences() []*connection.Mechanism
GetRequestMechanismPreferences returns request mechanism preferences
func (*NetworkServiceRequest) IsValid ¶
func (ns *NetworkServiceRequest) IsValid() error
IsValid returns if request is valid
func (*NetworkServiceRequest) ProtoMessage ¶
func (*NetworkServiceRequest) ProtoMessage()
func (*NetworkServiceRequest) Reset ¶
func (m *NetworkServiceRequest) Reset()
func (*NetworkServiceRequest) SetRequestConnection ¶
func (ns *NetworkServiceRequest) SetRequestConnection(conn *connection.Connection)
SetRequestConnection sets request connection
func (*NetworkServiceRequest) SetRequestMechanismPreferences ¶
func (ns *NetworkServiceRequest) SetRequestMechanismPreferences(mechanismPreferences []*connection.Mechanism)
SetRequestMechanismPreferences sets request mechanism preferences
func (*NetworkServiceRequest) String ¶
func (m *NetworkServiceRequest) String() string
func (*NetworkServiceRequest) XXX_DiscardUnknown ¶
func (m *NetworkServiceRequest) XXX_DiscardUnknown()
func (*NetworkServiceRequest) XXX_Marshal ¶
func (m *NetworkServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NetworkServiceRequest) XXX_Merge ¶
func (m *NetworkServiceRequest) XXX_Merge(src proto.Message)
func (*NetworkServiceRequest) XXX_Size ¶
func (m *NetworkServiceRequest) XXX_Size() int
func (*NetworkServiceRequest) XXX_Unmarshal ¶
func (m *NetworkServiceRequest) XXX_Unmarshal(b []byte) error
type NetworkServiceServer ¶
type NetworkServiceServer interface { Request(context.Context, *NetworkServiceRequest) (*connection.Connection, error) Close(context.Context, *connection.Connection) (*empty.Empty, error) }
NetworkServiceServer is the server API for NetworkService service.
type UnimplementedNetworkServiceServer ¶
type UnimplementedNetworkServiceServer struct { }
UnimplementedNetworkServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedNetworkServiceServer) Close ¶
func (*UnimplementedNetworkServiceServer) Close(ctx context.Context, req *connection.Connection) (*empty.Empty, error)
func (*UnimplementedNetworkServiceServer) Request ¶
func (*UnimplementedNetworkServiceServer) Request(ctx context.Context, req *NetworkServiceRequest) (*connection.Connection, error)