server

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(port int, watching bool) error

Types

type ServerState

type ServerState struct {
	Repositories []string
	Repos        map[string]*pkg.Repository

	Watching bool
	// contains filtered or unexported fields
}

func NewServerState

func NewServerState(watching bool) *ServerState

func (*ServerState) CreateTemplateWithFuncs

func (s *ServerState) CreateTemplateWithFuncs(name, tmpl string) (*template.Template, error)

func (*ServerState) GetAllGroups

func (s *ServerState) GetAllGroups() []string

func (*ServerState) GetAllPromptos

func (s *ServerState) GetAllPromptos() []pkg.Prompto

func (*ServerState) GetAllRepositories

func (s *ServerState) GetAllRepositories() []string

func (*ServerState) GetGroupsByRepository

func (s *ServerState) GetGroupsByRepository(repo string) []string

func (*ServerState) GetPromptosByGroup

func (s *ServerState) GetPromptosByGroup(group string) []pkg.Prompto

func (*ServerState) GetPromptosForRepositoryAndGroup

func (s *ServerState) GetPromptosForRepositoryAndGroup(repo, group string) []pkg.Prompto

func (*ServerState) LoadRepositories

func (s *ServerState) LoadRepositories() error

func (*ServerState) WatchRepositories

func (s *ServerState) WatchRepositories(ctx context.Context) error

Jump to

Keyboard shortcuts

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