Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Services = []string{ string(primitives.FrontendService), string(primitives.BlenderNodeService), string(primitives.BlenderFarmService), } )
Functions ¶
func ServerOptions ¶
func ServerOptions(opts []ServerOption) (*serverOptions, error)
Types ¶
type ServerOption ¶
type ServerOption interface {
// contains filtered or unexported methods
}
func InterruptOn ¶
func InterruptOn(interruptCh <-chan interface{}) ServerOption
InterruptOn interrupts server on the signal from server. If channel is nil Start() will block forever.
func WithConfig ¶
func WithConfig(cfg *config.Config) ServerOption
WithConfig sets a custom configuration
func WithConfigLoader ¶
func WithConfigLoader(configDir string) ServerOption
WithConfigLoader sets a custom configuration load
func WithLogger ¶
func WithLogger(logger logger.Logger) ServerOption
WithLogger sets a custom logger
func WithServices ¶
func WithServices(names []string) ServerOption
WithServices indicates which supplied services (e.g. frontend, worker) within the server to start
Click to show internal directories.
Click to hide internal directories.