converter

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveImage

func SaveImage(ctx context.Context, id string, bytes []byte) error

Types

type ConvertRequest

type ConvertRequest struct {
	InputText string     `json:"input_text"`
	FontSize  int32      `json:"font_size"`
	FontFile  string     `json:"font_file"`
	FontStyle FontStyles `json:"font_style"`

	ConvID string `json:"conv_id"`
}

type FontStyles

type FontStyles int32
const (
	FontStyles_NORMAL FontStyles = 0
	FontStyles_ITALIC FontStyles = 1
)

type TengwarConverter

type TengwarConverter struct {
	ClientGRPC pb.TengwarConverterClient
	ClientConn *grpc.ClientConn
}

func NewTengwarConverter

func NewTengwarConverter(tracer opentracing.Tracer, svcAddr string) (s *TengwarConverter, err error)

func (TengwarConverter) MakeImage

func (client TengwarConverter) MakeImage(ctx context.Context, rq ConvertRequest) (bytes []byte, err error)

Jump to

Keyboard shortcuts

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