Documentation ¶
Index ¶
- func Exists(file string) bool
- func GetEnv() string
- func ReadFile(file string, obj interface{}) ([]byte, error)
- func ReadFileLines(file string) ([]string, error)
- func WriteFile(file string, obj interface{}) error
- type AliveResponse
- type AppConfig
- type Controller
- type ErrorResponse
- type Gateway
- type GatewayConfig
- type GatewayOption
- type Services
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadFileLines ¶
Types ¶
type AliveResponse ¶
type AliveResponse struct {
Message string `json:"message"`
}
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(config *GatewayConfig) (*Controller, error)
func (*Controller) RedirectAcl ¶
func (c *Controller) RedirectAcl(ctx *web.Context) error
func (*Controller) RedirectAuth ¶
func (c *Controller) RedirectAuth(ctx *web.Context) error
func (*Controller) RedirectProfile ¶
func (c *Controller) RedirectProfile(ctx *web.Context) error
func (*Controller) RegisterRoutes ¶
func (c *Controller) RegisterRoutes(w manager.IWeb) error
type ErrorResponse ¶
type Gateway ¶
type Gateway struct {
// contains filtered or unexported fields
}
func (*Gateway) Reconfigure ¶
func (gateway *Gateway) Reconfigure(options ...GatewayOption)
Reconfigure ...
type GatewayConfig ¶
type GatewayConfig struct { Host string `json:"host"` Services *Services `json:"services"` TokenKey string `json:"token_key"` Log struct { Level string `json:"level"` } `json:"log"` }
GatewayConfig ...
type GatewayOption ¶
type GatewayOption func(auth *Gateway)
GatewayOption ...
func WithConfiguration ¶
func WithConfiguration(config *GatewayConfig) GatewayOption
WithConfiguration ...
Source Files ¶
Click to show internal directories.
Click to hide internal directories.