Documentation
¶
Index ¶
- Constants
- func ExractSignatureText(order string, entity interface{}) (signatureOrder []string)
- func GuidToLink(guid string) (string, error)
- func LinkToGuid(link string) string
- func ParseActorHandle(handle string) (string, error)
- func ParseHandle(handle string) (string, error)
- func ParseRSAPrivateKey(decodedKey []byte) (*rsa.PrivateKey, error)
- func ParseRSAPublicKey(decodedKey []byte) (*rsa.PublicKey, error)
- func ParseStringHelper(line, regex string, max int) (parts []string, err error)
- func ParseWebfingerHandle(handle string) (string, error)
- func Token() (string, error)
- func Uuid() (string, error)
- type ReadOnlyBool
- type Time
Constants ¶
View Source
const TIME_FORMAT = "2006-01-02T15:04:05Z"
TIME_FORMAT is the required time format for the Diaspora protocol
Variables ¶
This section is empty.
Functions ¶
func ExractSignatureText ¶
ExractSignatureText is used to extract order information about xml elements this is required to sign and verify Diaspora author signatures
func GuidToLink ¶
func LinkToGuid ¶
func ParseActorHandle ¶
func ParseHandle ¶
func ParseRSAPrivateKey ¶
func ParseRSAPrivateKey(decodedKey []byte) (*rsa.PrivateKey, error)
ParseRSAPublicKey transforms a serialized private key into a rsa.PrivateKey
func ParseRSAPublicKey ¶
ParseRSAPublicKey transforms a serialized public key into a rsa.PublicKey
func ParseStringHelper ¶
func ParseWebfingerHandle ¶
ParseWebfingerHandle will parse a handle in webfinger format e.g. acct:lukas@sechat.org
Types ¶
type ReadOnlyBool ¶
type ReadOnlyBool bool
ReadOnlyBool will not be affected by json.Unmarshal and can therefore be presetted before the task is invoked
func (ReadOnlyBool) UnmarshalJSON ¶
func (ReadOnlyBool) UnmarshalJSON([]byte) error
Click to show internal directories.
Click to hide internal directories.