Documentation ¶
Index ¶
- Variables
- func RegisterIPPrefixesServiceServer(s *grpc.Server, srv IPPrefixesServiceServer)
- type ControlRequest
- func (*ControlRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ControlRequest) GetProbe() *ProbeRequest
- func (m *ControlRequest) GetRequest() isControlRequest_Request
- func (*ControlRequest) ProtoMessage()
- func (x *ControlRequest) ProtoReflect() protoreflect.Message
- func (x *ControlRequest) Reset()
- func (x *ControlRequest) String() string
- type ControlRequest_Probe
- type ControlResponse
- func (*ControlResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ControlResponse) GetProbe() *ProbeResponse
- func (m *ControlResponse) GetResponse() isControlResponse_Response
- func (*ControlResponse) ProtoMessage()
- func (x *ControlResponse) ProtoReflect() protoreflect.Message
- func (x *ControlResponse) Reset()
- func (x *ControlResponse) String() string
- type ControlResponse_Probe
- type IPPrefixesServiceClient
- type IPPrefixesServiceServer
- type Prefix
- type PrefixesRequest
- type PrefixesResponse
- func (*PrefixesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PrefixesResponse) GetEtag() string
- func (x *PrefixesResponse) GetPrefixes() []*Prefix
- func (*PrefixesResponse) ProtoMessage()
- func (x *PrefixesResponse) ProtoReflect() protoreflect.Message
- func (x *PrefixesResponse) Reset()
- func (x *PrefixesResponse) String() string
- type ProbeRequest
- func (*ProbeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProbeRequest) GetData() []byte
- func (x *ProbeRequest) GetSessionId() uint32
- func (*ProbeRequest) ProtoMessage()
- func (x *ProbeRequest) ProtoReflect() protoreflect.Message
- func (x *ProbeRequest) Reset()
- func (x *ProbeRequest) String() string
- type ProbeResponse
- func (*ProbeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ProbeResponse) GetData() []byte
- func (x *ProbeResponse) GetSessionId() uint32
- func (*ProbeResponse) ProtoMessage()
- func (x *ProbeResponse) ProtoReflect() protoreflect.Message
- func (x *ProbeResponse) Reset()
- func (x *ProbeResponse) String() string
- type UnimplementedIPPrefixesServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_gateway_v1_control_proto protoreflect.FileDescriptor
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.
func NewIPPrefixesServiceClient ¶
func NewIPPrefixesServiceClient(cc grpc.ClientConnInterface) IPPrefixesServiceClient
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) ProtoMessage ¶
func (*Prefix) ProtoMessage()
func (*Prefix) ProtoReflect ¶
func (x *Prefix) ProtoReflect() protoreflect.Message
type PrefixesRequest ¶
type PrefixesRequest struct { Etag string `protobuf:"bytes,1,opt,name=etag,proto3" json:"etag,omitempty"` // contains filtered or unexported fields }
func (*PrefixesRequest) Descriptor
deprecated
func (*PrefixesRequest) Descriptor() ([]byte, []int)
Deprecated: Use PrefixesRequest.ProtoReflect.Descriptor instead.
func (*PrefixesRequest) GetEtag ¶ added in v0.11.0
func (x *PrefixesRequest) GetEtag() string
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"` Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"` // contains filtered or unexported fields }
func (*PrefixesResponse) Descriptor
deprecated
func (*PrefixesResponse) Descriptor() ([]byte, []int)
Deprecated: Use PrefixesResponse.ProtoReflect.Descriptor instead.
func (*PrefixesResponse) GetEtag ¶ added in v0.11.0
func (x *PrefixesResponse) GetEtag() string
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 ¶
func (*UnimplementedIPPrefixesServiceServer) Prefixes(context.Context, *PrefixesRequest) (*PrefixesResponse, error)