dingdayu/dnsx

View on GitHub
api/router/init.go

Summary

Maintainability
A
0 mins
Test Coverage
package router

import (
    "sync"
)

var once sync.Once

// Init init router
func Init() {
    once.Do(func() {
        initDNSHandler()
        initHTTPHandler()
    })
}