Documentation
¶
Index ¶
- Constants
- Variables
- func Cleanup() error
- func Configure(c *ctrld.Config) error
- func ConfigureService(sc *service.Config) error
- func GetClientInfoByMac(mac string) *ctrld.ClientInfo
- func IsGLiNet() bool
- func ListenAddress() string
- func Name() string
- func PostInstall() error
- func PreStart() (err error)
- func Stop() error
- func SupportedPlatforms() []string
Constants ¶
View Source
const ( OpenWrt = "openwrt" DDWrt = "ddwrt" Merlin = "merlin" Ubios = "ubios" )
Variables ¶
View Source
var ErrNotSupported = errors.New("unsupported platform")
ErrNotSupported reports the current router is not supported error.
Functions ¶
func ConfigureService ¶
ConfigureService performs necessary setup for running ctrld as a service on router.
func GetClientInfoByMac ¶
func GetClientInfoByMac(mac string) *ctrld.ClientInfo
func ListenAddress ¶
func ListenAddress() string
ListenAddress returns the listener address of ctrld on router.
func PostInstall ¶
func PostInstall() error
PostInstall performs task after installing ctrld on router.
func PreStart ¶
func PreStart() (err error)
PreStart blocks until the router is ready for running ctrld.
func SupportedPlatforms ¶
func SupportedPlatforms() []string
SupportedPlatforms return all platforms that can be configured to run with ctrld.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.