host

package
v0.0.0-...-727718e Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDBURL

func DefaultDBURL() string

func DefaultSchemaPath

func DefaultSchemaPath() string

func RegisterHandlers

func RegisterHandlers(exec *runtime.Executor, fn RegisterHandlersFunc) error

func RunServer

func RunServer(opts ServerOptions) error

func RunWorker

func RunWorker(opts WorkerOptions) error

Types

type RegisterHandlersFunc

type RegisterHandlersFunc func(*runtime.Executor) error

type ServerOptions

type ServerOptions struct {
	SchemaPath       string
	DBURL            string
	Port             string
	ServiceName      string
	RegisterHandlers RegisterHandlersFunc
}

type WorkerOptions

type WorkerOptions struct {
	SchemaPath       string
	DBURL            string
	PollInterval     time.Duration
	MetricsListen    string
	ServiceName      string
	RegisterHandlers RegisterHandlersFunc
}

Jump to

Keyboard shortcuts

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