Documentation ¶
Overview ¶
Package ui holds the module that contains information about UI handling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ModuleName = module.RegisterName("go.chromium.org/luci/analysis/internal/ui")
View Source
var UIBaseURLKey = "go.chromium.org/luci/analysis/internal/ui:uiBaseURL"
UIBaseURLKey the key to get the value for UI Base URL from the Context.
Functions ¶
func NewModule ¶
func NewModule(opts *ModuleOptions) module.Module
NewModule returns a server module that sets a context value for UI URL.
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 {
UIBaseURL string
}
func (*ModuleOptions) Register ¶
func (o *ModuleOptions) Register(f *flag.FlagSet)
Click to show internal directories.
Click to hide internal directories.