mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
16 lines
266 B
Go
16 lines
266 B
Go
package admin
|
|
|
|
func (c *AdminSocket) _applyOption(opt SetupOption) {
|
|
switch v := opt.(type) {
|
|
case ListenAddress:
|
|
c.config.listenaddr = v
|
|
}
|
|
}
|
|
|
|
type SetupOption interface {
|
|
isSetupOption()
|
|
}
|
|
|
|
type ListenAddress string
|
|
|
|
func (a ListenAddress) isSetupOption() {}
|