kodflow/kitsune

View on GitHub
src/services/gateway/main.go

Summary

Maintainability
A
0 mins
Test Coverage
package main

import (
    "github.com/kodflow/kitsune/src/internal/core/server/protocols/http"
    "github.com/kodflow/kitsune/src/internal/kernel/daemon"
    "github.com/kodflow/kitsune/src/services/gateway/endpoints"
)

func main() {
    daemon.New().Start(&daemon.Handler{
        Name: "HTTP Server",
        Call: func() error {
            server := http.NewServer(&http.ServerCfg{
                HTTP:  "80",
                HTTPS: "443",
                //DOMAIN: "aube.io",
                //SUBS:   []string{"home"},
            })

            server.Register(endpoints.ROOT)

            return server.Start()
        },
    })
}