add ability to set web icon

This commit is contained in:
Asim Aslam 2019-11-20 12:43:43 +00:00
parent 49d73faa5f
commit c87a58db0a

View File

@ -72,6 +72,16 @@ func Name(n string) Option {
}
}
// Icon specifies an icon url to load in the UI
func Icon(ico string) Option {
return func(o *Options) {
if o.Metadata == nil {
o.Metadata = make(map[string]string)
}
o.Metadata["icon"] = ico
}
}
// Unique server id
func Id(id string) Option {
return func(o *Options) {