import from minilb repo
This commit is contained in:
25
app/handler/proxy.go
Normal file
25
app/handler/proxy.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package handler
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"helmet/pkg/mlbctl"
|
||||
)
|
||||
|
||||
func (hand *Handler) ListForwarders(ctx context.Context, req *mlbctl.ListForwardersParams) (*mlbctl.ListForwardersResult, error) {
|
||||
var err error
|
||||
res, err := hand.oper.ListForwarders(ctx, req)
|
||||
return res, err
|
||||
}
|
||||
|
||||
func (hand *Handler) CreateForwarder(ctx context.Context, req *mlbctl.CreateForwarderParams) (*mlbctl.CreateForwarderResult, error) {
|
||||
var err error
|
||||
res, err := hand.oper.CreateForwarder(ctx, req)
|
||||
return res, err
|
||||
}
|
||||
|
||||
func (hand *Handler) DeleteForwarder(ctx context.Context, req *mlbctl.DeleteForwarderParams) (*mlbctl.DeleteForwarderResult, error) {
|
||||
var err error
|
||||
res, err := hand.oper.DeleteForwarder(ctx, req)
|
||||
return res, err
|
||||
}
|
||||
Reference in New Issue
Block a user