mirror of https://github.com/golang-jwt/jwt.git
18 lines
597 B
Go
18 lines
597 B
Go
|
package jwt
|
||
|
|
||
|
// Base64Encoder is an interface that allows to implement custom Base64 encoding
|
||
|
// algorithms.
|
||
|
type Base64EncodeFunc func(src []byte) string
|
||
|
|
||
|
// Base64Decoder is an interface that allows to implement custom Base64 decoding
|
||
|
// algorithms.
|
||
|
type Base64DecodeFunc func(s string) ([]byte, error)
|
||
|
|
||
|
// JSONEncoder is an interface that allows to implement custom JSON encoding
|
||
|
// algorithms.
|
||
|
type JSONMarshalFunc func(v any) ([]byte, error)
|
||
|
|
||
|
// JSONUnmarshal is an interface that allows to implement custom JSON unmarshal
|
||
|
// algorithms.
|
||
|
type JSONUnmarshalFunc func(data []byte, v any) error
|