Documentation ¶
Index ¶
- Variables
- func RegisterTransportServer(s *grpc.Server, srv TransportServer)
- type ContentType
- func (ContentType) Descriptor() protoreflect.EnumDescriptor
- func (x ContentType) Enum() *ContentType
- func (ContentType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ContentType) Number() protoreflect.EnumNumber
- func (x ContentType) String() string
- func (ContentType) Type() protoreflect.EnumType
- type SupportedContentTypesReply
- func (*SupportedContentTypesReply) Descriptor() ([]byte, []int)deprecated
- func (x *SupportedContentTypesReply) GetAcceptedTypes() []ContentType
- func (*SupportedContentTypesReply) ProtoMessage()
- func (x *SupportedContentTypesReply) ProtoReflect() protoreflect.Message
- func (x *SupportedContentTypesReply) Reset()
- func (x *SupportedContentTypesReply) String() string
- type SupportedContentTypesRequest
- func (*SupportedContentTypesRequest) Descriptor() ([]byte, []int)deprecated
- func (*SupportedContentTypesRequest) ProtoMessage()
- func (x *SupportedContentTypesRequest) ProtoReflect() protoreflect.Message
- func (x *SupportedContentTypesRequest) Reset()
- func (x *SupportedContentTypesRequest) String() string
- type TransportClient
- type TransportServer
- type UnimplementedTransportServer
Constants ¶
This section is empty.
Variables ¶
var ( ContentType_name = map[int32]string{ 0: "JSON", 1: "GRPC", 2: "GRPCWEB", 3: "GRPCWEBTEXT", } ContentType_value = map[string]int32{ "JSON": 0, "GRPC": 1, "GRPCWEB": 2, "GRPCWEBTEXT": 3, } )
Enum value maps for ContentType.
var File_transport_proto protoreflect.FileDescriptor
Functions ¶
func RegisterTransportServer ¶
func RegisterTransportServer(s *grpc.Server, srv TransportServer)
Types ¶
type ContentType ¶
type ContentType int32
const ( ContentType_JSON ContentType = 0 ContentType_GRPC ContentType = 1 ContentType_GRPCWEB ContentType = 2 ContentType_GRPCWEBTEXT ContentType = 3 )
func (ContentType) Descriptor ¶
func (ContentType) Descriptor() protoreflect.EnumDescriptor
func (ContentType) Enum ¶
func (x ContentType) Enum() *ContentType
func (ContentType) EnumDescriptor
deprecated
func (ContentType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ContentType.Descriptor instead.
func (ContentType) Number ¶
func (x ContentType) Number() protoreflect.EnumNumber
func (ContentType) String ¶
func (x ContentType) String() string
func (ContentType) Type ¶
func (ContentType) Type() protoreflect.EnumType
type SupportedContentTypesReply ¶
type SupportedContentTypesReply struct { AcceptedTypes []ContentType `protobuf:"varint,1,rep,packed,name=accepted_types,json=acceptedTypes,proto3,enum=ContentType" json:"accepted_types,omitempty"` // contains filtered or unexported fields }
func (*SupportedContentTypesReply) Descriptor
deprecated
func (*SupportedContentTypesReply) Descriptor() ([]byte, []int)
Deprecated: Use SupportedContentTypesReply.ProtoReflect.Descriptor instead.
func (*SupportedContentTypesReply) GetAcceptedTypes ¶
func (x *SupportedContentTypesReply) GetAcceptedTypes() []ContentType
func (*SupportedContentTypesReply) ProtoMessage ¶
func (*SupportedContentTypesReply) ProtoMessage()
func (*SupportedContentTypesReply) ProtoReflect ¶
func (x *SupportedContentTypesReply) ProtoReflect() protoreflect.Message
func (*SupportedContentTypesReply) Reset ¶
func (x *SupportedContentTypesReply) Reset()
func (*SupportedContentTypesReply) String ¶
func (x *SupportedContentTypesReply) String() string
type SupportedContentTypesRequest ¶
type SupportedContentTypesRequest struct {
// contains filtered or unexported fields
}
func (*SupportedContentTypesRequest) Descriptor
deprecated
func (*SupportedContentTypesRequest) Descriptor() ([]byte, []int)
Deprecated: Use SupportedContentTypesRequest.ProtoReflect.Descriptor instead.
func (*SupportedContentTypesRequest) ProtoMessage ¶
func (*SupportedContentTypesRequest) ProtoMessage()
func (*SupportedContentTypesRequest) ProtoReflect ¶
func (x *SupportedContentTypesRequest) ProtoReflect() protoreflect.Message
func (*SupportedContentTypesRequest) Reset ¶
func (x *SupportedContentTypesRequest) Reset()
func (*SupportedContentTypesRequest) String ¶
func (x *SupportedContentTypesRequest) String() string
type TransportClient ¶
type TransportClient interface {
SupportedContentTypes(ctx context.Context, in *SupportedContentTypesRequest, opts ...grpc.CallOption) (*SupportedContentTypesReply, error)
}
TransportClient is the client API for Transport service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTransportClient ¶
func NewTransportClient(cc grpc.ClientConnInterface) TransportClient
type TransportServer ¶
type TransportServer interface { SupportedContentTypes(context.Context, *SupportedContentTypesRequest) (*SupportedContentTypesReply, error) // contains filtered or unexported methods }
TransportServer is the server API for Transport service. All implementations must embed UnimplementedTransportServer for forward compatibility
type UnimplementedTransportServer ¶
type UnimplementedTransportServer struct { }
UnimplementedTransportServer must be embedded to have forward compatible implementations.
func (*UnimplementedTransportServer) SupportedContentTypes ¶
func (*UnimplementedTransportServer) SupportedContentTypes(context.Context, *SupportedContentTypesRequest) (*SupportedContentTypesReply, error)