grpc

package
v0.0.6 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_EmbossImage_FullMethodName = "/Embosser/EmbossImage"
)

Variables

View Source
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)

View Source
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

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