Documentation ¶
Index ¶
- func DecryptSession(ctx context.Context, key [32]byte, box []byte) (*pb.SessionData, error)
- func EncryptSession(ctx context.Context, key [32]byte, sessionData *pb.SessionData) ([]byte, error)
- func GenerateSessionToken(ctx context.Context, secret [32]byte) (string, error)
- func NewSessionData() *pb.SessionData
- func VerifySessionToken(ctx context.Context, token string, secret [32]byte, ttl time.Duration) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptSession ¶ added in v0.0.5
func EncryptSession ¶ added in v0.0.5
func GenerateSessionToken ¶
func NewSessionData ¶
func NewSessionData() *pb.SessionData
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.