Documentation ¶
Index ¶
Constants ¶
View Source
const API = "https://api.occson.com/"
API endpoint for Occson.
View Source
const SCHEME = "ccs://"
Defines the scheme which denotes a CCS URL.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct { // URI of the document. Can and should begin with the "ccs://" schema. Uri string // Auth token of the appropriate workspace. Token string // Document passphrase. Passphrase string // contains filtered or unexported fields }
func NewDocument ¶
Helper function to create a document struct quickly.
type Response ¶
type Response struct { // Requested document's internal ID. Id string // Requested document's path. Path string // Requested document's encrypted content (before decryption). EncryptedContent string `json:"encrypted_content"` // Document's workspace internal ID. WorkspaceId string `json:"workspace_id"` // Document's creation time, in ISO8601 format. CreatedAt string `json:"created_at"` // Document's last update time, in ISO8601 format. UpdatedAt string `json:"updated_at"` }
Click to show internal directories.
Click to hide internal directories.