Documentation
¶
Index ¶
- Variables
- func GetTokenFromContext(r *http.Request) (*token.Token, error)
- func InitService() error
- func InitV1HTTPAPI(pathPrefix string, root router.Router) error
- func LoadedService() []string
- func NewInternalAuther() router.Auther
- func RegistryHTTPV1(name string, api HTTPAPI)
- func RegistryService(name string, svr Service)
- type HTTPAPI
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Domain 服务 Domain domain.Service // User 用户服务 User user.Service // Application 应用 Application application.Service // Token 令牌服务 Token token.Service // Micro todo Micro micro.Service // Role 角色服务 Role role.Service // Endpoint 端点服务 Endpoint endpoint.Service // Policy 厕所里 Policy policy.Service // Department 部分服务 Department department.Service )
Functions ¶
func GetTokenFromContext ¶
GetTokenFromContext 从上下文中获取Token
func InitV1HTTPAPI ¶
InitV1HTTPAPI 初始化API服务
Types ¶
Click to show internal directories.
Click to hide internal directories.