Documentation ¶
Index ¶
Constants ¶
View Source
const (
// AccessTokenMetadataKey is used by Mnemosyne to retrieve session token from gRPC metadata object.
AccessTokenMetadataKey = "authorization"
)
Variables ¶
This section is empty.
Functions ¶
func AccessTokenFromContext ¶ added in v0.5.0
AccessTokenFromContext returns the token value stored in context, if any.
func NewAccessTokenContext ¶ added in v0.5.0
NewAccessTokenContext returns a new Context that carries token value.
func RandomAccessToken ¶ added in v0.5.0
RandomAccessToken generate Access Token with given key and generated hash of length 64.
Types ¶
type Mnemosyne ¶
type Mnemosyne interface { Close() error FromContext(ctx context.Context) (ses *mnemosynerpc.Session, err error) Get(ctx context.Context, token string) (ses *mnemosynerpc.Session, err error) Start(ctx context.Context, subjectID string, subjectClient string, bag map[string]string) (ses *mnemosynerpc.Session, err error) Exists(ctx context.Context, token string) (bool, error) Abandon(ctx context.Context, token string) error SetValue(ctx context.Context, token, key, value string) (bag map[string]string, err error) }
Mnemosyne ...
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
internal
|
|
discovery
Package discovery is under development.
|
Package discovery is under development. |
Package mnemosyned is server implementation of Mnemosyne session store.
|
Package mnemosyned is server implementation of Mnemosyne session store. |
Package mnemosynerpc ...
|
Package mnemosynerpc ... |
Click to show internal directories.
Click to hide internal directories.