koatuu

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_koatuu_koatuu_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "koatuu.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Decode",
			Handler:    _Service_Decode_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/koatuu/koatuu.proto",
}

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

Functions

func RegisterServiceServer

func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)

Types

type DecodeRequest

type DecodeRequest struct {
	Codes []string `protobuf:"bytes,1,rep,name=codes,proto3" json:"codes,omitempty"`
	// contains filtered or unexported fields
}

func (*DecodeRequest) Descriptor deprecated

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

Deprecated: Use DecodeRequest.ProtoReflect.Descriptor instead.

func (*DecodeRequest) GetCodes

func (x *DecodeRequest) GetCodes() []string

func (*DecodeRequest) ProtoMessage

func (*DecodeRequest) ProtoMessage()

func (*DecodeRequest) ProtoReflect

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

func (*DecodeRequest) Reset

func (x *DecodeRequest) Reset()

func (*DecodeRequest) String

func (x *DecodeRequest) String() string

type DecodeResultItem

type DecodeResultItem struct {
	Summary string        `protobuf:"bytes,1,opt,name=summary,proto3" json:"summary,omitempty"`
	Parts   []string      `protobuf:"bytes,2,rep,name=parts,proto3" json:"parts,omitempty"`
	Error   *common.Error `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*DecodeResultItem) Descriptor deprecated

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

Deprecated: Use DecodeResultItem.ProtoReflect.Descriptor instead.

func (*DecodeResultItem) GetError

func (x *DecodeResultItem) GetError() *common.Error

func (*DecodeResultItem) GetParts added in v0.4.2

func (x *DecodeResultItem) GetParts() []string

func (*DecodeResultItem) GetSummary

func (x *DecodeResultItem) GetSummary() string

func (*DecodeResultItem) ProtoMessage

func (*DecodeResultItem) ProtoMessage()

func (*DecodeResultItem) ProtoReflect

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

func (*DecodeResultItem) Reset

func (x *DecodeResultItem) Reset()

func (*DecodeResultItem) String

func (x *DecodeResultItem) String() string

type DecodeResultList

type DecodeResultList struct {
	Items []*DecodeResultItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*DecodeResultList) Descriptor deprecated

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

Deprecated: Use DecodeResultList.ProtoReflect.Descriptor instead.

func (*DecodeResultList) GetItems

func (x *DecodeResultList) GetItems() []*DecodeResultItem

func (*DecodeResultList) ProtoMessage

func (*DecodeResultList) ProtoMessage()

func (*DecodeResultList) ProtoReflect

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

func (*DecodeResultList) Reset

func (x *DecodeResultList) Reset()

func (*DecodeResultList) String

func (x *DecodeResultList) String() string

type ServiceClient

type ServiceClient interface {
	Decode(ctx context.Context, in *DecodeRequest, opts ...grpc.CallOption) (*DecodeResultList, error)
}

ServiceClient is the client API for Service 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 NewServiceClient

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceServer

type ServiceServer interface {
	Decode(context.Context, *DecodeRequest) (*DecodeResultList, error)
	// contains filtered or unexported methods
}

ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceServer) Decode

type UnsafeServiceServer

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

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

Jump to

Keyboard shortcuts

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