options

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	ComponentConfig rainbowconfig.Config
	ConfigFile      string

	Factory rainbowdb.ShareDaoFactory

	RedisClient *redis.Client
	Producer    rocketmq.Producer
	ChartAPI    *v2client.HarborAPI

	HttpEngine *gin.Engine
	Controller controller.RainbowInterface
	// contains filtered or unexported fields
}

func NewOptions

func NewOptions(configFile string) (*Options, error)

func (*Options) Complete

func (o *Options) Complete() error

Complete completes all the required options

type ServerOptions

type ServerOptions struct {
	ComponentConfig rainbowconfig.Config
	ConfigFile      string

	Factory rainbowdb.ShareDaoFactory

	RedisClient *redis.Client
	Producer    rocketmq.Producer
	ChartAPI    *v2client.HarborAPI

	HttpEngine *gin.Engine
	Controller controller.RainbowInterface
	// contains filtered or unexported fields
}

func NewServerOptions

func NewServerOptions(configFile string) (*ServerOptions, error)

func (*ServerOptions) Complete

func (o *ServerOptions) Complete() error

Complete completes all the required options

Jump to

Keyboard shortcuts

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