Documentation
¶
Index ¶
Constants ¶
View Source
const ( PersistenceStoreName = "sqlite-default" DefaultFrontendPort = 7233 DefaultMetricsPort = 0 )
Variables ¶
View Source
var SupportedPragmas = map[string]struct{}{
"journal_mode": {},
"synchronous": {},
}
Functions ¶
func GetAllowedPragmas ¶
func GetAllowedPragmas() []string
Types ¶
type Config ¶
type Config struct {
Ephemeral bool
DatabaseFilePath string
FrontendPort int
MetricsPort int
DynamicPorts bool
Namespaces []string
SQLitePragmas map[string]string
Logger log.Logger
UpstreamOptions []temporal.ServerOption
FrontendIP string
UIServer UIServer
BaseConfig *config.Config
DynamicConfig dynamicconfig.StaticClient
// contains filtered or unexported fields
}
func NewDefaultConfig ¶
type PortProvider ¶
type PortProvider struct {
// contains filtered or unexported fields
}
func NewPortProvider ¶
func NewPortProvider() *PortProvider
func (*PortProvider) Close ¶
func (p *PortProvider) Close() error
func (*PortProvider) GetFreePort ¶
func (p *PortProvider) GetFreePort() (int, error)
GetFreePort asks the kernel for a free open port that is ready to use.
func (*PortProvider) MustGetFreePort ¶
func (p *PortProvider) MustGetFreePort() int
type UIServer ¶
type UIServer interface {
Start() error
Stop()
}
UIServer abstracts the github.com/temporalio/ui-server project to make it an optional import for programs that need web UI support.
A working implementation of this interface is available here: https://pkg.go.dev/github.com/temporalio/ui-server/server#Server
Click to show internal directories.
Click to hide internal directories.