Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DB *gorm.DB DBName string GCInterval int JWTKey []byte Clients []Client /* A list of 'Client'. Since agents can shared same client credentials, the length of this list will probably always be one */ }
Config is the configuration required to create a Server
type Server ¶
type Server struct { Config Config // Config is stored here incase needed Server *server.Server // contains filtered or unexported fields }
Server is a object of OAuth Server
func (*Server) RegisterRoute ¶
func (s *Server) RegisterRoute(router *gin.RouterGroup)
RegisterRoute register th OAuth routes to router
Click to show internal directories.
Click to hide internal directories.