gateway

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_gateway_v1_control_proto protoreflect.FileDescriptor
View Source
var File_proto_gateway_v1_prefix_proto protoreflect.FileDescriptor

Functions

func RegisterIPPrefixesServiceServer

func RegisterIPPrefixesServiceServer(s *grpc.Server, srv IPPrefixesServiceServer)

Types

type ControlRequest

type ControlRequest struct {

	// Types that are assignable to Request:
	//	*ControlRequest_Probe
	Request isControlRequest_Request `protobuf_oneof:"request"`
	// contains filtered or unexported fields
}

func (*ControlRequest) Descriptor deprecated

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

Deprecated: Use ControlRequest.ProtoReflect.Descriptor instead.

func (*ControlRequest) GetProbe

func (x *ControlRequest) GetProbe() *ProbeRequest

func (*ControlRequest) GetRequest

func (m *ControlRequest) GetRequest() isControlRequest_Request

func (*ControlRequest) ProtoMessage

func (*ControlRequest) ProtoMessage()

func (*ControlRequest) ProtoReflect

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

func (*ControlRequest) Reset

func (x *ControlRequest) Reset()

func (*ControlRequest) String

func (x *ControlRequest) String() string

type ControlRequest_Probe

type ControlRequest_Probe struct {
	Probe *ProbeRequest `protobuf:"bytes,1,opt,name=probe,proto3,oneof"`
}

type ControlResponse

type ControlResponse struct {

	// Types that are assignable to Response:
	//	*ControlResponse_Probe
	Response isControlResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*ControlResponse) Descriptor deprecated

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

Deprecated: Use ControlResponse.ProtoReflect.Descriptor instead.

func (*ControlResponse) GetProbe

func (x *ControlResponse) GetProbe() *ProbeResponse

func (*ControlResponse) GetResponse

func (m *ControlResponse) GetResponse() isControlResponse_Response

func (*ControlResponse) ProtoMessage

func (*ControlResponse) ProtoMessage()

func (*ControlResponse) ProtoReflect

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

func (*ControlResponse) Reset

func (x *ControlResponse) Reset()

func (*ControlResponse) String

func (x *ControlResponse) String() string

type ControlResponse_Probe

type ControlResponse_Probe struct {
	Probe *ProbeResponse `protobuf:"bytes,1,opt,name=probe,proto3,oneof"`
}

type IPPrefixesServiceClient

type IPPrefixesServiceClient interface {
	Prefixes(ctx context.Context, in *PrefixesRequest, opts ...grpc.CallOption) (*PrefixesResponse, error)
}

IPPrefixesServiceClient is the client API for IPPrefixesService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type IPPrefixesServiceServer

type IPPrefixesServiceServer interface {
	Prefixes(context.Context, *PrefixesRequest) (*PrefixesResponse, error)
}

IPPrefixesServiceServer is the server API for IPPrefixesService service.

type Prefix

type Prefix struct {
	Prefix []byte `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
	Mask   uint32 `protobuf:"varint,2,opt,name=mask,proto3" json:"mask,omitempty"`
	// contains filtered or unexported fields
}

func (*Prefix) Descriptor deprecated

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

Deprecated: Use Prefix.ProtoReflect.Descriptor instead.

func (*Prefix) GetMask

func (x *Prefix) GetMask() uint32

func (*Prefix) GetPrefix

func (x *Prefix) GetPrefix() []byte

func (*Prefix) ProtoMessage

func (*Prefix) ProtoMessage()

func (*Prefix) ProtoReflect

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

func (*Prefix) Reset

func (x *Prefix) Reset()

func (*Prefix) String

func (x *Prefix) String() string

type PrefixesRequest

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

func (*PrefixesRequest) Descriptor deprecated

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

Deprecated: Use PrefixesRequest.ProtoReflect.Descriptor instead.

func (*PrefixesRequest) ProtoMessage

func (*PrefixesRequest) ProtoMessage()

func (*PrefixesRequest) ProtoReflect

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

func (*PrefixesRequest) Reset

func (x *PrefixesRequest) Reset()

func (*PrefixesRequest) String

func (x *PrefixesRequest) String() string

type PrefixesResponse

type PrefixesResponse struct {
	Prefixes []*Prefix `protobuf:"bytes,1,rep,name=prefixes,proto3" json:"prefixes,omitempty"`
	// contains filtered or unexported fields
}

func (*PrefixesResponse) Descriptor deprecated

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

Deprecated: Use PrefixesResponse.ProtoReflect.Descriptor instead.

func (*PrefixesResponse) GetPrefixes

func (x *PrefixesResponse) GetPrefixes() []*Prefix

func (*PrefixesResponse) ProtoMessage

func (*PrefixesResponse) ProtoMessage()

func (*PrefixesResponse) ProtoReflect

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

func (*PrefixesResponse) Reset

func (x *PrefixesResponse) Reset()

func (*PrefixesResponse) String

func (x *PrefixesResponse) String() string

type ProbeRequest

type ProbeRequest struct {
	SessionId uint32 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	Data      []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ProbeRequest) Descriptor deprecated

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

Deprecated: Use ProbeRequest.ProtoReflect.Descriptor instead.

func (*ProbeRequest) GetData

func (x *ProbeRequest) GetData() []byte

func (*ProbeRequest) GetSessionId

func (x *ProbeRequest) GetSessionId() uint32

func (*ProbeRequest) ProtoMessage

func (*ProbeRequest) ProtoMessage()

func (*ProbeRequest) ProtoReflect

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

func (*ProbeRequest) Reset

func (x *ProbeRequest) Reset()

func (*ProbeRequest) String

func (x *ProbeRequest) String() string

type ProbeResponse

type ProbeResponse struct {
	SessionId uint32 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	Data      []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ProbeResponse) Descriptor deprecated

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

Deprecated: Use ProbeResponse.ProtoReflect.Descriptor instead.

func (*ProbeResponse) GetData

func (x *ProbeResponse) GetData() []byte

func (*ProbeResponse) GetSessionId

func (x *ProbeResponse) GetSessionId() uint32

func (*ProbeResponse) ProtoMessage

func (*ProbeResponse) ProtoMessage()

func (*ProbeResponse) ProtoReflect

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

func (*ProbeResponse) Reset

func (x *ProbeResponse) Reset()

func (*ProbeResponse) String

func (x *ProbeResponse) String() string

type UnimplementedIPPrefixesServiceServer

type UnimplementedIPPrefixesServiceServer struct {
}

UnimplementedIPPrefixesServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedIPPrefixesServiceServer) Prefixes

Jump to

Keyboard shortcuts

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