gateway

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructModule

func ConstructModule(tp node.Type, cfg *Config) fx.Option

func Flags

func Flags() *flag.FlagSet

Flags gives a set of hardcoded node/gateway package flags.

func Handler

func Handler(
	state state.Module,
	share share.Module,
	header header.Module,
	daser *das.DASer,
	serv *gateway.Server,
)

Handler constructs a new RPC Handler from the given services.

func ParseFlags

func ParseFlags(cmd *cobra.Command, cfg *Config)

ParseFlags parses gateway flags from the given cmd and saves them to the passed config.

Types

type Config

type Config struct {
	Address string
	Port    string
	Enabled bool
}

func DefaultConfig

func DefaultConfig() Config

func (*Config) Validate

func (cfg *Config) Validate() error

Jump to

Keyboard shortcuts

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