platform

package
v2.12.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...fx.Option) *fx.App

New returns a new fx.App with the provided options.

func Run

func Run(app *fx.App)

Run is an fx helper function to gracefully start and stop an app container.

func ServerModule

func ServerModule(testMode bool) fx.Option

ServerModule returns the platform server module.

Types

type Config

type Config struct {
	// Additional config to be merged (used for unit tests etc)
	MergeConfig map[string]interface{}
}

Config is the configuration for the platform.

func (Config) Module

func (cfg Config) Module() fx.Option

Module returns the platform module.

type Platform

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

Platform holds the state of the platform.

Jump to

Keyboard shortcuts

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