drawtext

package
v0.0.0-...-db727bb Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DrawText_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "DrawText",
	HandlerType: (*DrawTextServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Draw",
			Handler:    _DrawText_Draw_Handler,
		},
		{
			MethodName: "GetFontNames",
			Handler:    _DrawText_GetFontNames_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "drawtext/drawtext.proto",
}

DrawText_ServiceDesc is the grpc.ServiceDesc for DrawText 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_drawtext_drawtext_proto protoreflect.FileDescriptor

Functions

func RegisterDrawTextServer

func RegisterDrawTextServer(s grpc.ServiceRegistrar, srv DrawTextServer)

Types

type DrawReply

type DrawReply struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*DrawReply) Descriptor deprecated

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

Deprecated: Use DrawReply.ProtoReflect.Descriptor instead.

func (*DrawReply) GetData

func (x *DrawReply) GetData() []byte

func (*DrawReply) ProtoMessage

func (*DrawReply) ProtoMessage()

func (*DrawReply) ProtoReflect

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

func (*DrawReply) Reset

func (x *DrawReply) Reset()

func (*DrawReply) String

func (x *DrawReply) String() string

type DrawRequest

type DrawRequest struct {
	Src            string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"`
	Text           string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	Index          int64  `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
	FontScale      int64  `protobuf:"varint,4,opt,name=fontScale,proto3" json:"fontScale,omitempty"`
	FontColor      string `protobuf:"bytes,5,opt,name=fontColor,proto3" json:"fontColor,omitempty"`
	OutlineColor   string `protobuf:"bytes,6,opt,name=outlineColor,proto3" json:"outlineColor,omitempty"`
	OutlineScale   int64  `protobuf:"varint,7,opt,name=outlineScale,proto3" json:"outlineScale,omitempty"`
	DisableOutline bool   `protobuf:"varint,8,opt,name=disableOutline,proto3" json:"disableOutline,omitempty"`
	Distort        bool   `protobuf:"varint,9,opt,name=distort,proto3" json:"distort,omitempty"`
	// contains filtered or unexported fields
}

func (*DrawRequest) Descriptor deprecated

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

Deprecated: Use DrawRequest.ProtoReflect.Descriptor instead.

func (*DrawRequest) GetDisableOutline

func (x *DrawRequest) GetDisableOutline() bool

func (*DrawRequest) GetDistort

func (x *DrawRequest) GetDistort() bool

func (*DrawRequest) GetFontColor

func (x *DrawRequest) GetFontColor() string

func (*DrawRequest) GetFontScale

func (x *DrawRequest) GetFontScale() int64

func (*DrawRequest) GetIndex

func (x *DrawRequest) GetIndex() int64

func (*DrawRequest) GetOutlineColor

func (x *DrawRequest) GetOutlineColor() string

func (*DrawRequest) GetOutlineScale

func (x *DrawRequest) GetOutlineScale() int64

func (*DrawRequest) GetSrc

func (x *DrawRequest) GetSrc() string

func (*DrawRequest) GetText

func (x *DrawRequest) GetText() string

func (*DrawRequest) ProtoMessage

func (*DrawRequest) ProtoMessage()

func (*DrawRequest) ProtoReflect

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

func (*DrawRequest) Reset

func (x *DrawRequest) Reset()

func (*DrawRequest) String

func (x *DrawRequest) String() string

type DrawTextClient

type DrawTextClient interface {
	Draw(ctx context.Context, in *DrawRequest, opts ...grpc.CallOption) (*DrawReply, error)
	GetFontNames(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*TextReply, error)
}

DrawTextClient is the client API for DrawText 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 NewDrawTextClient

func NewDrawTextClient(cc grpc.ClientConnInterface) DrawTextClient

type DrawTextServer

type DrawTextServer interface {
	Draw(context.Context, *DrawRequest) (*DrawReply, error)
	GetFontNames(context.Context, *emptypb.Empty) (*TextReply, error)
	// contains filtered or unexported methods
}

DrawTextServer is the server API for DrawText service. All implementations must embed UnimplementedDrawTextServer for forward compatibility

type TextReply

type TextReply struct {
	Filenames string `protobuf:"bytes,1,opt,name=filenames,proto3" json:"filenames,omitempty"`
	// contains filtered or unexported fields
}

func (*TextReply) Descriptor deprecated

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

Deprecated: Use TextReply.ProtoReflect.Descriptor instead.

func (*TextReply) GetFilenames

func (x *TextReply) GetFilenames() string

func (*TextReply) ProtoMessage

func (*TextReply) ProtoMessage()

func (*TextReply) ProtoReflect

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

func (*TextReply) Reset

func (x *TextReply) Reset()

func (*TextReply) String

func (x *TextReply) String() string

type UnimplementedDrawTextServer

type UnimplementedDrawTextServer struct {
}

UnimplementedDrawTextServer must be embedded to have forward compatible implementations.

func (UnimplementedDrawTextServer) Draw

func (UnimplementedDrawTextServer) GetFontNames

type UnsafeDrawTextServer

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

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

Jump to

Keyboard shortcuts

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