Documentation ¶
Index ¶
- Constants
- func CheckError(err error)
- func Run(ctx context.Context, network, address string) error
- func RunInProcessGateway(ctx context.Context, addr string, opts ...runtime.ServeMuxOption) error
- func TestTokenBuild()
- type AccountGroupUser
- type AuthTokenClaims
- type FKClaims
- type Permission
- type UserGroupUser
Constants ¶
View Source
const ( ERROR_INVALID_TOKEN = 1 ERROR_EXPIRED_TOKEN = 2 )
View Source
const ( USER_ACCOUNT = 0 SERVICE_ACCOUNT = 1 )
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
func CheckError(err error)
func RunInProcessGateway ¶
RunInProcessGateway starts the invoke in process http gateway.
func TestTokenBuild ¶
func TestTokenBuild()
Types ¶
type AccountGroupUser ¶
type AccountGroupUser struct {
GroupId int64 `json:"ai,omitempty"`
}
type AuthTokenClaims ¶
type Permission ¶
type Permission struct {
PermissionId int64 `json:"ai,omitempty"`
}
type UserGroupUser ¶
type UserGroupUser struct {
UserGroupId int64 `json:"ai,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.