Documentation ¶
Index ¶
Constants ¶
View Source
const ApiDocPath = "/api/docs"
View Source
const HelthPath = "/health"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiDoc ¶
type ApiDoc struct {
Debug bool
}
func (*ApiDoc) Middlewares ¶
func (a *ApiDoc) Middlewares() []middlewares.Middleware
func (*ApiDoc) SetClient ¶
func (a *ApiDoc) SetClient(client *grpc.ClientConn)
type ApiDocRedirect ¶
type ApiDocRedirect struct { }
func (*ApiDocRedirect) Handle ¶
func (a *ApiDocRedirect) Handle(w http.ResponseWriter, r *http.Request, _ map[string]string)
func (*ApiDocRedirect) Method ¶
func (a *ApiDocRedirect) Method() string
func (*ApiDocRedirect) Middlewares ¶
func (a *ApiDocRedirect) Middlewares() []middlewares.Middleware
func (*ApiDocRedirect) Path ¶
func (a *ApiDocRedirect) Path() string
func (*ApiDocRedirect) SetClient ¶
func (a *ApiDocRedirect) SetClient(client *grpc.ClientConn)
type Health ¶
type Health struct { }
func (*Health) Middlewares ¶
func (h *Health) Middlewares() []middlewares.Middleware
func (*Health) SetClient ¶
func (h *Health) SetClient(client *grpc.ClientConn)
type JwtLogin ¶
type JwtLogin struct { PathUrl string UserField string PasswordField string Secret string SigningMethod string Expire int RefreshToken bool FindUser FindUserByUsernameAndPassword }
func DefaultJwtLogin ¶
func NewJwtLogin ¶
func (*JwtLogin) Middlewares ¶
func (j *JwtLogin) Middlewares() []middlewares.Middleware
func (*JwtLogin) SetClient ¶
func (j *JwtLogin) SetClient(client *grpc.ClientConn)
type JwtRefresh ¶
func (*JwtRefresh) Handle ¶
func (j *JwtRefresh) Handle(w http.ResponseWriter, r *http.Request, _ map[string]string)
func (*JwtRefresh) Method ¶
func (j *JwtRefresh) Method() string
func (*JwtRefresh) Middlewares ¶
func (j *JwtRefresh) Middlewares() []middlewares.Middleware
func (*JwtRefresh) Path ¶
func (j *JwtRefresh) Path() string
func (*JwtRefresh) SetClient ¶
func (j *JwtRefresh) SetClient(client *grpc.ClientConn)
type Route ¶
type Route interface { Path() string Method() string Handle(w http.ResponseWriter, r *http.Request, params map[string]string) SetClient(client *grpc.ClientConn) Middlewares() []middlewares.Middleware }
Click to show internal directories.
Click to hide internal directories.