package
0.13.1
Repository: https://github.com/mdouchement/standardfile.git
Documentation: pkg.go.dev

# Functions

GenerateRandomBytes returns securely generated random bytes.
NewClient returns a new Client.
NewDefaultClient returns a new Client with default HTTP client.
NewSyncItems returns an empty SyncItems with initilized defaults.
TimeFromToken retrieves datetime from cursor/sync token.
TokenFromTime generates cursor/sync token for given time.
VersionGreaterOrEqual returns true if current is not empty and greater or equal to version.
VersionLesser returns true if current is empty or lesser to version.

# Constants

APIVersion is the version used by default client.
APIVersion20161215 allows to use the API version 20161215.
APIVersion20190520 allows to use the API version 20190520.
APIVersion20200115 allows to use the API version 20200115.
ContentTypeComponent are items that describes an editor extension.
ContentTypeItemsKey are items used to encrypt Note items.
ContentTypeNote are the items with user's written data.
ContentTypePrivileges for items that holds note's privileges.
ContentTypeUserPreferences for items that holds user's preferences.
ProtocolVersion1 allows to use the SF protocol 001.
ProtocolVersion2 allows to use the SF protocol 002.
ProtocolVersion3 allows to use the SF protocol 003.
ProtocolVersion4 allows to use the SF protocol 004.

# Variables

ErrLowPasswordCost occurred when cost of password is too low for the used KDF.
ErrUnsupportedVersion is raised when user params version is lesser than `002`.

# Structs

No description provided by the author
No description provided by the author
A KeyChain contains all the keys used for encryption and authentication.
A Note is plaintext Item content.
A Session contains details about a session.
An SFError reprensents an HTTP error returned by StandardFile server.
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author