Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterEmbosserServer(s grpc.ServiceRegistrar, srv EmbosserServer)
- type EmbossImageRequest
- func (*EmbossImageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EmbossImageRequest) GetBody() []byte
- func (x *EmbossImageRequest) GetCombined() bool
- func (x *EmbossImageRequest) GetFilename() string
- func (*EmbossImageRequest) ProtoMessage()
- func (x *EmbossImageRequest) ProtoReflect() protoreflect.Message
- func (x *EmbossImageRequest) Reset()
- func (x *EmbossImageRequest) String() string
- type EmbossImageResponse
- func (*EmbossImageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EmbossImageResponse) GetBody() [][]byte
- func (x *EmbossImageResponse) GetCombined() bool
- func (x *EmbossImageResponse) GetFilename() string
- func (*EmbossImageResponse) ProtoMessage()
- func (x *EmbossImageResponse) ProtoReflect() protoreflect.Message
- func (x *EmbossImageResponse) Reset()
- func (x *EmbossImageResponse) String() string
- type EmbosserClient
- type EmbosserServer
- type UnimplementedEmbosserServer
- type UnsafeEmbosserServer
Constants ¶
const (
Embosser_EmbossImage_FullMethodName = "/Embosser/EmbossImage"
)
Variables ¶
var Embosser_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Embosser", HandlerType: (*EmbosserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "EmbossImage", Handler: _Embosser_EmbossImage_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 EmbossImageRequest ¶
type EmbossImageRequest 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"` Combined bool `protobuf:"varint,3,opt,name=Combined,proto3" json:"Combined,omitempty"` // contains filtered or unexported fields }
func (*EmbossImageRequest) Descriptor
deprecated
func (*EmbossImageRequest) Descriptor() ([]byte, []int)
Deprecated: Use EmbossImageRequest.ProtoReflect.Descriptor instead.
func (*EmbossImageRequest) GetBody ¶
func (x *EmbossImageRequest) GetBody() []byte
func (*EmbossImageRequest) GetCombined ¶
func (x *EmbossImageRequest) GetCombined() bool
func (*EmbossImageRequest) GetFilename ¶
func (x *EmbossImageRequest) GetFilename() string
func (*EmbossImageRequest) ProtoMessage ¶
func (*EmbossImageRequest) ProtoMessage()
func (*EmbossImageRequest) ProtoReflect ¶
func (x *EmbossImageRequest) ProtoReflect() protoreflect.Message
func (*EmbossImageRequest) Reset ¶
func (x *EmbossImageRequest) Reset()
func (*EmbossImageRequest) String ¶
func (x *EmbossImageRequest) String() string
type EmbossImageResponse ¶
type EmbossImageResponse struct { Filename string `protobuf:"bytes,1,opt,name=Filename,proto3" json:"Filename,omitempty"` Body [][]byte `protobuf:"bytes,2,rep,name=Body,proto3" json:"Body,omitempty"` Combined bool `protobuf:"varint,3,opt,name=Combined,proto3" json:"Combined,omitempty"` // contains filtered or unexported fields }
func (*EmbossImageResponse) Descriptor
deprecated
func (*EmbossImageResponse) Descriptor() ([]byte, []int)
Deprecated: Use EmbossImageResponse.ProtoReflect.Descriptor instead.
func (*EmbossImageResponse) GetBody ¶
func (x *EmbossImageResponse) GetBody() [][]byte
func (*EmbossImageResponse) GetCombined ¶
func (x *EmbossImageResponse) GetCombined() bool
func (*EmbossImageResponse) GetFilename ¶
func (x *EmbossImageResponse) GetFilename() string
func (*EmbossImageResponse) ProtoMessage ¶
func (*EmbossImageResponse) ProtoMessage()
func (*EmbossImageResponse) ProtoReflect ¶
func (x *EmbossImageResponse) ProtoReflect() protoreflect.Message
func (*EmbossImageResponse) Reset ¶
func (x *EmbossImageResponse) Reset()
func (*EmbossImageResponse) String ¶
func (x *EmbossImageResponse) String() string
type EmbosserClient ¶
type EmbosserClient interface {
EmbossImage(ctx context.Context, in *EmbossImageRequest, opts ...grpc.CallOption) (*EmbossImageResponse, 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 { EmbossImage(context.Context, *EmbossImageRequest) (*EmbossImageResponse, error) // contains filtered or unexported methods }
EmbosserServer is the server API for Embosser service. All implementations must embed UnimplementedEmbosserServer for forward compatibility
type UnimplementedEmbosserServer ¶
type UnimplementedEmbosserServer struct { }
UnimplementedEmbosserServer must be embedded to have forward compatible implementations.
func (UnimplementedEmbosserServer) EmbossImage ¶
func (UnimplementedEmbosserServer) EmbossImage(context.Context, *EmbossImageRequest) (*EmbossImageResponse, 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.