Documentation
¶
Index ¶
- func GetCreatorIDFromContext(ctx context.Context) (string, bool)
- func GetTokenFromContext(ctx context.Context) (*oauth2.Token, bool)
- func GetUserIDFromContext(ctx context.Context) (string, bool)
- func SetCreatorIDToContext(ctx context.Context, userID string) context.Context
- func SetTokenToContext(ctx context.Context, token *oauth2.Token) context.Context
- func SetUserIDToContext(ctx context.Context, userID string) context.Context
- type ContextKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCreatorIDFromContext ¶
GetCreatorIDFromContext はContextからセッション作成者のIDを取得します。
func GetTokenFromContext ¶
GetTokenFromContext はContextからトークンを取得します。
func GetUserIDFromContext ¶
GetUserIDFromContext はContextからユーザIDを取得します。
func SetCreatorIDToContext ¶
SetCreatorIDToContext はセッション作成者のIDをContextにセットします。
func SetTokenToContext ¶
SetTokenToContext はトークンをContextにセットします。
Types ¶
Click to show internal directories.
Click to hide internal directories.