grpc

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Embosser_EmbossText_FullMethodName = "/Embosser/EmbossText"
)

Variables

View Source
var Embosser_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Embosser",
	HandlerType: (*EmbosserServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "EmbossText",
			Handler:    _Embosser_EmbossText_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "grpc/embosser.proto",
}

Embosser_ServiceDesc is the grpc.ServiceDesc for Embosser 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_grpc_embosser_proto protoreflect.FileDescriptor

Functions

func RegisterEmbosserServer

func RegisterEmbosserServer(s grpc.ServiceRegistrar, srv EmbosserServer)

Types

type EmbossTextRequest

type EmbossTextRequest struct {
	Filename string `protobuf:"bytes,1,opt,name=Filename,proto3" json:"Filename,omitempty"`
	Body     []byte `protobuf:"bytes,2,opt,name=Body,proto3" json:"Body,omitempty"`
	// contains filtered or unexported fields
}

func (*EmbossTextRequest) Descriptor deprecated

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

Deprecated: Use EmbossTextRequest.ProtoReflect.Descriptor instead.

func (*EmbossTextRequest) GetBody

func (x *EmbossTextRequest) GetBody() []byte

func (*EmbossTextRequest) GetFilename

func (x *EmbossTextRequest) GetFilename() string

func (*EmbossTextRequest) ProtoMessage

func (*EmbossTextRequest) ProtoMessage()

func (*EmbossTextRequest) ProtoReflect

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

func (*EmbossTextRequest) Reset

func (x *EmbossTextRequest) Reset()

func (*EmbossTextRequest) String

func (x *EmbossTextRequest) String() string

type EmbossTextResponse

type EmbossTextResponse struct {
	Filename string              `protobuf:"bytes,1,opt,name=Filename,proto3" json:"Filename,omitempty"`
	Result   *ProcessImageResult `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"`
	// contains filtered or unexported fields
}

func (*EmbossTextResponse) Descriptor deprecated

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

Deprecated: Use EmbossTextResponse.ProtoReflect.Descriptor instead.

func (*EmbossTextResponse) GetFilename

func (x *EmbossTextResponse) GetFilename() string

func (*EmbossTextResponse) GetResult added in v0.0.8

func (x *EmbossTextResponse) GetResult() *ProcessImageResult

func (*EmbossTextResponse) ProtoMessage

func (*EmbossTextResponse) ProtoMessage()

func (*EmbossTextResponse) ProtoReflect

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

func (*EmbossTextResponse) Reset

func (x *EmbossTextResponse) Reset()

func (*EmbossTextResponse) String

func (x *EmbossTextResponse) String() string

type EmbosserClient

type EmbosserClient interface {
	EmbossText(ctx context.Context, in *EmbossTextRequest, opts ...grpc.CallOption) (*EmbossTextResponse, error)
}

EmbosserClient is the client API for Embosser 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 NewEmbosserClient

func NewEmbosserClient(cc grpc.ClientConnInterface) EmbosserClient

type EmbosserServer

type EmbosserServer interface {
	EmbossText(context.Context, *EmbossTextRequest) (*EmbossTextResponse, error)
	// contains filtered or unexported methods
}

EmbosserServer is the server API for Embosser service. All implementations must embed UnimplementedEmbosserServer for forward compatibility

type ProcessImageResult added in v0.0.8

type ProcessImageResult struct {
	Text    string `protobuf:"bytes,1,opt,name=Text,proto3" json:"Text,omitempty"`
	Source  string `protobuf:"bytes,2,opt,name=Source,proto3" json:"Source,omitempty"`
	Created int64  `protobuf:"varint,3,opt,name=Created,proto3" json:"Created,omitempty"`
	// contains filtered or unexported fields
}

func (*ProcessImageResult) Descriptor deprecated added in v0.0.8

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

Deprecated: Use ProcessImageResult.ProtoReflect.Descriptor instead.

func (*ProcessImageResult) GetCreated added in v0.0.8

func (x *ProcessImageResult) GetCreated() int64

func (*ProcessImageResult) GetSource added in v0.0.8

func (x *ProcessImageResult) GetSource() string

func (*ProcessImageResult) GetText added in v0.0.8

func (x *ProcessImageResult) GetText() string

func (*ProcessImageResult) ProtoMessage added in v0.0.8

func (*ProcessImageResult) ProtoMessage()

func (*ProcessImageResult) ProtoReflect added in v0.0.8

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

func (*ProcessImageResult) Reset added in v0.0.8

func (x *ProcessImageResult) Reset()

func (*ProcessImageResult) String added in v0.0.8

func (x *ProcessImageResult) String() string

type UnimplementedEmbosserServer

type UnimplementedEmbosserServer struct {
}

UnimplementedEmbosserServer must be embedded to have forward compatible implementations.

func (UnimplementedEmbosserServer) EmbossText

type UnsafeEmbosserServer

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

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

Jump to

Keyboard shortcuts

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