svc

package
v0.0.0-...-69564a3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConvertRequest_FontStyles_name = map[int32]string{
		0: "NORMAL",
		1: "ITALIC",
	}
	ConvertRequest_FontStyles_value = map[string]int32{
		"NORMAL": 0,
		"ITALIC": 1,
	}
)

Enum value maps for ConvertRequest_FontStyles.

View Source
var TengwarConverter_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "imgtengwar.TengwarConverter",
	HandlerType: (*TengwarConverterServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ConvertText",
			Handler:    _TengwarConverter_ConvertText_Handler,
		},
		{
			MethodName: "MakeImage",
			Handler:    _TengwarConverter_MakeImage_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "svc.proto",
}

TengwarConverter_ServiceDesc is the grpc.ServiceDesc for TengwarConverter service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterTengwarConverterServer

func RegisterTengwarConverterServer(s grpc.ServiceRegistrar, srv TengwarConverterServer)

Types

type ConvertRequest

type ConvertRequest struct {
	InputText string                    `protobuf:"bytes,1,opt,name=input_text,proto3" json:"input_text,omitempty"`
	FontSize  int32                     `protobuf:"varint,2,opt,name=font_size,proto3" json:"font_size,omitempty"`
	FontFile  string                    `protobuf:"bytes,3,opt,name=font_file,proto3" json:"font_file,omitempty"`
	FontStyle ConvertRequest_FontStyles `protobuf:"varint,4,opt,name=font_style,proto3,enum=imgtengwar.ConvertRequest_FontStyles" json:"font_style,omitempty"`
	// contains filtered or unexported fields
}

func (*ConvertRequest) Descriptor deprecated

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

Deprecated: Use ConvertRequest.ProtoReflect.Descriptor instead.

func (*ConvertRequest) GetFontFile

func (x *ConvertRequest) GetFontFile() string

func (*ConvertRequest) GetFontSize

func (x *ConvertRequest) GetFontSize() int32

func (*ConvertRequest) GetFontStyle

func (x *ConvertRequest) GetFontStyle() ConvertRequest_FontStyles

func (*ConvertRequest) GetInputText

func (x *ConvertRequest) GetInputText() string

func (*ConvertRequest) ProtoMessage

func (*ConvertRequest) ProtoMessage()

func (*ConvertRequest) ProtoReflect

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

func (*ConvertRequest) Reset

func (x *ConvertRequest) Reset()

func (*ConvertRequest) String

func (x *ConvertRequest) String() string

type ConvertRequest_FontStyles

type ConvertRequest_FontStyles int32
const (
	ConvertRequest_NORMAL ConvertRequest_FontStyles = 0
	ConvertRequest_ITALIC ConvertRequest_FontStyles = 1
)

func (ConvertRequest_FontStyles) Descriptor

func (ConvertRequest_FontStyles) Enum

func (ConvertRequest_FontStyles) EnumDescriptor deprecated

func (ConvertRequest_FontStyles) EnumDescriptor() ([]byte, []int)

Deprecated: Use ConvertRequest_FontStyles.Descriptor instead.

func (ConvertRequest_FontStyles) Number

func (ConvertRequest_FontStyles) String

func (x ConvertRequest_FontStyles) String() string

func (ConvertRequest_FontStyles) Type

type ConvertResponse

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

func (*ConvertResponse) Descriptor deprecated

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

Deprecated: Use ConvertResponse.ProtoReflect.Descriptor instead.

func (*ConvertResponse) GetConvertedText

func (x *ConvertResponse) GetConvertedText() string

func (*ConvertResponse) ProtoMessage

func (*ConvertResponse) ProtoMessage()

func (*ConvertResponse) ProtoReflect

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

func (*ConvertResponse) Reset

func (x *ConvertResponse) Reset()

func (*ConvertResponse) String

func (x *ConvertResponse) String() string

type SimpleConvertRequest

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

func (*SimpleConvertRequest) Descriptor deprecated

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

Deprecated: Use SimpleConvertRequest.ProtoReflect.Descriptor instead.

func (*SimpleConvertRequest) GetInputText

func (x *SimpleConvertRequest) GetInputText() string

func (*SimpleConvertRequest) ProtoMessage

func (*SimpleConvertRequest) ProtoMessage()

func (*SimpleConvertRequest) ProtoReflect

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

func (*SimpleConvertRequest) Reset

func (x *SimpleConvertRequest) Reset()

func (*SimpleConvertRequest) String

func (x *SimpleConvertRequest) String() string

type TengwarConverterClient

type TengwarConverterClient interface {
	ConvertText(ctx context.Context, in *SimpleConvertRequest, opts ...grpc.CallOption) (*ConvertResponse, error)
	MakeImage(ctx context.Context, in *ConvertRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error)
}

TengwarConverterClient is the client API for TengwarConverter 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.

type TengwarConverterServer

type TengwarConverterServer interface {
	ConvertText(context.Context, *SimpleConvertRequest) (*ConvertResponse, error)
	MakeImage(context.Context, *ConvertRequest) (*httpbody.HttpBody, error)
	// contains filtered or unexported methods
}

TengwarConverterServer is the server API for TengwarConverter service. All implementations must embed UnimplementedTengwarConverterServer for forward compatibility

type UnimplementedTengwarConverterServer

type UnimplementedTengwarConverterServer struct {
}

UnimplementedTengwarConverterServer must be embedded to have forward compatible implementations.

func (UnimplementedTengwarConverterServer) ConvertText

func (UnimplementedTengwarConverterServer) MakeImage

type UnsafeTengwarConverterServer

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

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

Jump to

Keyboard shortcuts

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