networkservice

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 10 Imported by: 11

Documentation

Index

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.

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

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) Request

Jump to

Keyboard shortcuts

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