Documentation ¶
Index ¶
Constants ¶
View Source
const ( AuthHeader = "Authorization" AuthType = "Bearer" AuthPublic = "AuthPublic" AuthSession = "Session" )
Variables ¶
This section is empty.
Functions ¶
func NewHTTPServer ¶
func NewHTTPServer( ctx context.Context, cfg *config.Container, userService user.UserServicePort, tokenService auth.TokenMaker, sessionService auth.SessionServicePort, ) http.ServerMaker
Types ¶
type ErrorResponse ¶
type ErrorResponse struct { Message string `json:"message"` ValidationErrors []*ValidationMessage `json:"validation_errors,omitempty"` Error string `json:"error,omitempty"` Status int `json:"status"` }
type RedirectionResponse ¶
type RedirectionResponse struct {
Url string `json:"url"`
}
type SuccessResponse ¶
type ValidationMessage ¶
Click to show internal directories.
Click to hide internal directories.