first commit
This commit is contained in:
20
transports/bifrost-http/handlers/init.go
Normal file
20
transports/bifrost-http/handlers/init.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package handlers
|
||||
|
||||
import "github.com/maximhq/bifrost/core/schemas"
|
||||
|
||||
var version string
|
||||
var logger schemas.Logger
|
||||
|
||||
// SetLogger sets the logger for the application.
|
||||
func SetLogger(l schemas.Logger) {
|
||||
logger = l
|
||||
}
|
||||
|
||||
// SetVersion sets the version for the application.
|
||||
func SetVersion(v string) {
|
||||
version = v
|
||||
}
|
||||
|
||||
func GetVersion() string {
|
||||
return version
|
||||
}
|
||||
Reference in New Issue
Block a user