transport

package
v0.0.0-...-ac3f6eb Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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) 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

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 (*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 (*SupportedContentTypesRequest) Reset

func (x *SupportedContentTypesRequest) Reset()

func (*SupportedContentTypesRequest) 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

Jump to

Keyboard shortcuts

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