Versions in this module Expand all Collapse all v1 v1.0.0 Oct 2, 2020 Changes in this version + const VERSION + var AllField = []FieldName + var ErrBadSign = errors.New("crypto: bad sign") + type Client interface + Send func(ctx context.Context, msg Message) (res Response) + type ClientResponse struct + Body []byte + Code int + Header http.Header + type Crypto interface + GetCert func() string + GetVerifyCrypto func(cert string) (Crypto, error) + Hash func(data []byte) (hash []byte) + Sign func(digest []byte) (sign []byte, err error) + Verify func(sign, digest []byte) (ok bool, err error) + type FieldName string + const FieldAction + const FieldCLS + const FieldCert + const FieldDataType + const FieldIdJWT + const FieldKPP + const FieldOGRN + const FieldToken + func (e FieldName) IsValid() bool + func (e FieldName) String() string + type Fields func(JWTFields) + type JWTFields map[FieldName]interface + type Message interface + GetJWT func() ([]byte, error) + PathMethod func() string + Response func() Response + UpdateJWTFields func(fields ...Fields) Message + type Response interface + ClientResponse func() *ClientResponse + Data func() ([]byte, error) + Error func() error + SetClientResponse func(resp *ClientResponse) + SetError func(err error) + type Token struct + Header string + Payload string + Sign string