Documentation
¶
Index ¶
Constants ¶
View Source
const ( Admin = "admin" User = "user" Thing = "thing" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Auth ¶
type Auth interface { StartAuthClient() error IsAdmin(ctx context.Context, token string) (iAdmin bool, err error) IsWhichUser(ctx context.Context, token string) (role string, userId string, err error) IsWhichThing(ctx context.Context, token string) (thingId string, err error) GetThingToken(ctx context.Context, thingId string, userId string) (token string, err error) GetAdminToken(ctx context.Context) (token string, err error) GetUserToken(ctx context.Context, userId string) (token string, err error) }
Click to show internal directories.
Click to hide internal directories.