Documentation ¶
Overview ¶
Package hosts defines a LUCI Server module used to configure the hostnames of the services MILO communicates with in a deplpoyment.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ModuleName = module.RegisterName("go.chromium.org/luci/milo/internal/hosts")
ModuleName can be used to refer to this module when declaring dependencies.
Functions ¶
func NewModule ¶
func NewModule(opts *ModuleOptions) module.Module
NewModule returns a server module that adds authentication settings to the context.
func NewModuleFromFlags ¶
NewModuleFromFlags is a variant of NewModule that initializes options through command line flags.
Calling this function registers flags in flag.CommandLine. They are usually parsed in server.Main(...).
Types ¶
type ModuleOptions ¶
type ModuleOptions struct { // The hostname to use for pRPC requests to LUCI MILO (e.g. from UI). APIHost string }
ModuleOptions contain configuration of the Hosts server module.
func (*ModuleOptions) Register ¶
func (o *ModuleOptions) Register(f *flag.FlagSet)
Register registers the command line flags.
Click to show internal directories.
Click to hide internal directories.