raw_v1

package
v0.0.0-...-3be3c9f Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConvertService_Convert_FullMethodName = "/raw.v1.ConvertService/Convert"
)

Variables

View Source
var ConvertService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "raw.v1.ConvertService",
	HandlerType: (*ConvertServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Convert",
			Handler:    _ConvertService_Convert_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/raw/v1/gconv.proto",
}

ConvertService_ServiceDesc is the grpc.ServiceDesc for ConvertService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_proto_raw_v1_gconv_proto protoreflect.FileDescriptor

Functions

func RegisterConvertServiceServer

func RegisterConvertServiceServer(s grpc.ServiceRegistrar, srv ConvertServiceServer)

Types

type ConvertRequest

type ConvertRequest struct {
	Type *Type `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Data *Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ConvertRequest) Descriptor deprecated

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

Deprecated: Use ConvertRequest.ProtoReflect.Descriptor instead.

func (*ConvertRequest) GetData

func (x *ConvertRequest) GetData() *Data

func (*ConvertRequest) GetType

func (x *ConvertRequest) GetType() *Type

func (*ConvertRequest) ProtoMessage

func (*ConvertRequest) ProtoMessage()

func (*ConvertRequest) ProtoReflect

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

func (*ConvertRequest) Reset

func (x *ConvertRequest) Reset()

func (*ConvertRequest) String

func (x *ConvertRequest) String() string

type ConvertResponse

type ConvertResponse struct {
	Type *Type `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Data *Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ConvertResponse) Descriptor deprecated

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

Deprecated: Use ConvertResponse.ProtoReflect.Descriptor instead.

func (*ConvertResponse) GetData

func (x *ConvertResponse) GetData() *Data

func (*ConvertResponse) GetType

func (x *ConvertResponse) GetType() *Type

func (*ConvertResponse) ProtoMessage

func (*ConvertResponse) ProtoMessage()

func (*ConvertResponse) ProtoReflect

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

func (*ConvertResponse) Reset

func (x *ConvertResponse) Reset()

func (*ConvertResponse) String

func (x *ConvertResponse) String() string

type ConvertServiceClient

type ConvertServiceClient interface {
	Convert(ctx context.Context, in *ConvertRequest, opts ...grpc.CallOption) (*ConvertResponse, error)
}

ConvertServiceClient is the client API for ConvertService 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.

type ConvertServiceServer

type ConvertServiceServer interface {
	Convert(context.Context, *ConvertRequest) (*ConvertResponse, error)
	// contains filtered or unexported methods
}

ConvertServiceServer is the server API for ConvertService service. All implementations must embed UnimplementedConvertServiceServer for forward compatibility

type Data

type Data struct {
	Raw []byte `protobuf:"bytes,1,opt,name=raw,proto3" json:"raw,omitempty"`
	// contains filtered or unexported fields
}

func (*Data) Descriptor deprecated

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

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetRaw

func (x *Data) GetRaw() []byte

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect

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

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

type Type

type Type struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Type) Descriptor deprecated

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

Deprecated: Use Type.ProtoReflect.Descriptor instead.

func (*Type) GetName

func (x *Type) GetName() string

func (*Type) ProtoMessage

func (*Type) ProtoMessage()

func (*Type) ProtoReflect

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

func (*Type) Reset

func (x *Type) Reset()

func (*Type) String

func (x *Type) String() string

type UnimplementedConvertServiceServer

type UnimplementedConvertServiceServer struct {
}

UnimplementedConvertServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedConvertServiceServer) Convert

type UnsafeConvertServiceServer

type UnsafeConvertServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeConvertServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ConvertServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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