Documentation
¶
Index ¶
- Constants
- type Config
- type Instance
- type Option
- func WithAPIPort(port int) Option
- func WithAdminUser(email, password string) Option
- func WithGRPCPort(port int) Option
- func WithKeysets(master, privateJWT, publicJWT []byte) Option
- func WithLogLevel(level string) Option
- func WithLogger(l *zerolog.Logger) Option
- func WithPostgres(url string) Option
- func WithPostgresDataDir(dir string) Option
- func WithRabbitMQ(url string) Option
- func WithoutAPI() Option
- func WithoutMigrations() Option
Constants ¶
View Source
const DefaultAPIPort = 28243
DefaultAPIPort is the port the embedded API binds to when it is free, so tooling like 'hatchet embedded-ui' can find an instance without configuration. Additional instances fall back to a random free port. The value avoids IANA-assigned services and the OS ephemeral range.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
func StartServer ¶
func (*Instance) GRPCAddress ¶
type Option ¶
type Option func(*Config)
func WithAPIPort ¶
func WithAdminUser ¶
func WithGRPCPort ¶
func WithKeysets ¶
func WithLogLevel ¶
func WithLogger ¶
WithLogger routes embed's logging (and the bundled Postgres output) through a caller-supplied logger instead of the default one derived from the log level.
func WithPostgres ¶
func WithPostgresDataDir ¶
WithPostgresDataDir stores the bundled Postgres runtime and data under dir instead of the default per-project directory derived from the working directory. Two instances must not share a data dir concurrently.
func WithRabbitMQ ¶
func WithoutAPI ¶
func WithoutAPI() Option
func WithoutMigrations ¶
func WithoutMigrations() Option
Source Files
¶
Click to show internal directories.
Click to hide internal directories.