yos

package
v0.0.0-...-bff165f Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateIndex

func GenerateIndex(yos *Server, owner string) error

GenerateIndex triggers the index generation process

func Worker

func Worker(workQueue <-chan WorkItem, done chan<- bool)

Types

type Server

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

func New

func New(logger *slog.Logger, dao *daos.Dao) *Server

func (*Server) GetRoutes

func (y *Server) GetRoutes() []YosRoutes

func (*Server) Start

func (y *Server) Start()

func (*Server) Stop

func (y *Server) Stop()

type WorkItem

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

type WorkerAction

type WorkerAction func() error

type YosRoutes

type YosRoutes struct {
	Path        string
	Method      string
	HandlerFunc echo.HandlerFunc
}

Jump to

Keyboard shortcuts

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