handler

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Memes []*pb.Template `json:"memes"`
}

type Memegen

type Memegen struct {
	// contains filtered or unexported fields
}

func New

func New() *Memegen

func (*Memegen) Generate

func (m *Memegen) Generate(ctx context.Context, req *pb.GenerateRequest, rsp *pb.GenerateResponse) error

func (*Memegen) Templates

func (m *Memegen) Templates(ctx context.Context, req *pb.TemplatesRequest, rsp *pb.TemplatesResponse) error

type TemplateRequest

type TemplateRequest struct {
	Success bool `json:"success"`
	Data    Data `json":data"`
}

Jump to

Keyboard shortcuts

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