websites

package
v1.60.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetApiAddress

type GetApiAddress = func(apiName string) string

type LocalWebsiteService

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

func NewLocalWebsitesService

func NewLocalWebsitesService(getApiAddress GetApiAddress, isStartCmd bool) *LocalWebsiteService

func (*LocalWebsiteService) Start

func (l *LocalWebsiteService) Start(websites []Website) error

Start - Start the local website service

func (*LocalWebsiteService) SubscribeToState

func (l *LocalWebsiteService) SubscribeToState(fn func(State))

type State

type State = map[WebsiteName]Website

type Website

type Website struct {
	*WebsitePb

	Name            string
	Directory       string
	OutputDirectory string
	DevURL          string
	URL             string
}

type WebsiteName

type WebsiteName = string

type WebsitePb

type WebsitePb = deploymentspb.Website

Jump to

Keyboard shortcuts

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