web

package
v0.0.0-...-b5e1e67 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Message string `json:"message"`
}

type GenerateBody

type GenerateBody struct {
	User            string  `json:"user"`
	Period          string  `json:"period"`
	Title           string  `json:"title"`
	BackgroundColor string  `json:"background_color"`
	TextColor       string  `json:"text_color"`
	Gap             float64 `json:"gap"`
	ShowNumbers     bool    `json:"show_numbers"`
	ShowTitles      bool    `json:"show_titles"`
}

type GeneratedResponse

type GeneratedResponse struct {
	Image string `json:"image,omitempty"`
}

type Option

type Option func(*Server)

func WithAPIKey

func WithAPIKey(key string) Option

func WithAddr

func WithAddr(addr string) Option

type Server

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

func New

func New(opts ...Option) (*Server, error)

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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