migrated to external IP allocator
This commit is contained in:
parent
8672452033
commit
e2449b425e
15 changed files with 478 additions and 194 deletions
|
|
@ -8,14 +8,15 @@ import (
|
|||
"github.com/go-logr/logr"
|
||||
"github.com/gorilla/mux"
|
||||
|
||||
"git.giftfish.de/ston1th/haproxy-lb/pkg/alloc"
|
||||
"git.giftfish.de/ston1th/netalloc"
|
||||
|
||||
"git.giftfish.de/ston1th/haproxy-lb/pkg/db"
|
||||
)
|
||||
|
||||
type ContextData struct {
|
||||
Alloc *alloc.Alloc
|
||||
DB *db.DB
|
||||
Auth *Auth
|
||||
Net netalloc.Allocator
|
||||
DB *db.DB
|
||||
Auth *Auth
|
||||
}
|
||||
|
||||
func NewContext(w http.ResponseWriter, r *http.Request, data *ContextData, log logr.Logger) *Context {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue