Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct { ServerMessageID int // contains filtered or unexported fields }
Document represents the structure, operations, and server state for a file.
type Message ¶
type Message struct { Operation operations.Operation `json:"operation"` ClientMessageID int `json:"client_message_id"` ServerMessageID int `json:"server_message_id"` }
Message is the structure of communication between a client and the server. It describes both the operation that occurred, as well as the indexes for both the client and server, which is necessary to understand if and how the operation should be transformed.
type Model ¶
type Model interface { ID() int Create(utils.DB) error Update(utils.DB) error Delete(utils.DB) error }
Model is an interface that provides the basic structure for interacting with database tables. One can safely assume that a struct conforming to this interface has a corresponding database table.
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session represents a connection between a server and client.
func NewSession ¶
NewSession initializes a new Session for an existing document.
type User ¶
type User struct { Email string FirstName string LastName string CreatedAt time.Time UpdatedAt time.Time // contains filtered or unexported fields }
User represents an entity in the system that can interact with files, either by modifying or reading.