Documentation ¶ Index ¶ func Init(key string, identityKey string, expiration time.Duration) func Parse(tokenString string) (string, error) func ParseRequest(ctx context.Context) (string, error) func Sign(identityKey string) (string, time.Time, error) type Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Init ¶ func Init(key string, identityKey string, expiration time.Duration) func Parse ¶ func Parse(tokenString string) (string, error) func ParseRequest ¶ func ParseRequest(ctx context.Context) (string, error) func Sign ¶ func Sign(identityKey string) (string, time.Time, error) Types ¶ type Config ¶ type Config struct { // contains filtered or unexported fields } Source Files ¶ View all Source files token.go Click to show internal directories. Click to hide internal directories.