api

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DefPort = ":8080"

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(s *Server)

func WithAPI

func WithAPI(enabled bool, apiKey string, addr string) Option

func WithPreview

func WithPreview(enabled bool, storage *templatemanager.EmailStorage) Option

type Server

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

func NewServer

func NewServer(log logging.Logger, options ...Option) *Server

func (*Server) HasTemplateName

func (s *Server) HasTemplateName(templateName string) error

func (*Server) Serve

func (s *Server) Serve(ctx context.Context, queue queue.Interface) error

Directories

Path Synopsis
lib

Jump to

Keyboard shortcuts

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