Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represent a rest server
func New ¶
func New(repo configrepo.Repo, address string, securityEnabled bool) *Server
New instantiate a REST server
func (*Server) CheckToken ¶
func (s *Server) CheckToken(ctx iris.Context, app *configrepo.ApplicationVersion) error
CheckToken check if a valid auth token is present on the request
http headers: Authorization and X-Config-Token
func (*Server) IsSecurityEnabled ¶
IsSecurityEnabled returns if the security is enabled or not
func (*Server) StartNoTLS ¶
StartNoTLS starts a NON TLS listener
Click to show internal directories.
Click to hide internal directories.