Documentation ¶
Overview ¶
Package hosts defines a LUCI Server module used to configure the hostnames of the services LUCI Analysis communicates with in a deplpoyment.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ModuleName = module.RegisterName("go.chromium.org/luci/bisection/hosts")
ModuleName can be used to refer to this module when declaring dependencies.
Functions ¶
func APIHost ¶
APIHost returns the hostname of the LUCI Bisection pRPC client. E.g. "bisection.api.luci.app".
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 Bisection (e.g. from builders). 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.