generator

package
v0.0.0-...-9695415 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultGenerator

func DefaultGenerator(resLoader resloader.ResLoader, ver verifier.Verifier) *defaultGenerator

Types

type Generator

type Generator interface {
	Generate() (token ImageToken, err error)
}

type ImageToken

type ImageToken struct {
	BgImage image.Image `json:"-"`
	BcImage image.Image `json:"-"`
	X       int         `json:"-"`

	BgImageBase64 string `json:"bg_image_base_64"`
	BcImageBase64 string `json:"bc_image_base_64"`
	Token         string `json:"token"`
}

func (*ImageToken) JSON

func (t *ImageToken) JSON() string

Jump to

Keyboard shortcuts

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