Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterEmbosserServer(s grpc.ServiceRegistrar, srv EmbosserServer)
- type EmbossTextRequest
- func (*EmbossTextRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EmbossTextRequest) GetBody() []byte
- func (x *EmbossTextRequest) GetFilename() string
- func (*EmbossTextRequest) ProtoMessage()
- func (x *EmbossTextRequest) ProtoReflect() protoreflect.Message
- func (x *EmbossTextRequest) Reset()
- func (x *EmbossTextRequest) String() string
- type EmbossTextResponse
- func (*EmbossTextResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EmbossTextResponse) GetFilename() string
- func (x *EmbossTextResponse) GetResult() *ProcessImageResult
- func (*EmbossTextResponse) ProtoMessage()
- func (x *EmbossTextResponse) ProtoReflect() protoreflect.Message
- func (x *EmbossTextResponse) Reset()
- func (x *EmbossTextResponse) String() string
- type EmbosserClient
- type EmbosserServer
- type ProcessImageResult
- func (*ProcessImageResult) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessImageResult) GetCreated() int64
- func (x *ProcessImageResult) GetSource() string
- func (x *ProcessImageResult) GetText() string
- func (*ProcessImageResult) ProtoMessage()
- func (x *ProcessImageResult) ProtoReflect() protoreflect.Message
- func (x *ProcessImageResult) Reset()
- func (x *ProcessImageResult) String() string
- type UnimplementedEmbosserServer
- type UnsafeEmbosserServer
Constants ¶
const (
Embosser_EmbossText_FullMethodName = "/Embosser/EmbossText"
)
Variables ¶
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)
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 ¶
func (UnimplementedEmbosserServer) EmbossText(context.Context, *EmbossTextRequest) (*EmbossTextResponse, error)
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.