structs

package
v0.0.0-...-5ff79e2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Id                      int64
	UserId                  int64
	SessionKey              string
	Name                    string
	IsServer                bool
	LastSynchedFileActionId int64
	CreatedAt               time.Time
	UpdatedAt               time.Time
	DeletedAt               time.Time
}

type ClientFileActionsResponse

type ClientFileActionsResponse struct {
	LastId      int64
	FileActions []FileAction
}

type CurrentAction

type CurrentAction struct {
	Quit     chan<- bool
	IsCreate bool
	IsLocal  bool
}

type ErrorMessage

type ErrorMessage struct {
	Error    error
	File     File
	Function string
}

type File

type File struct {
	Id        int64
	UserId    int64
	Name      string
	Hash      string
	Size      int64
	Modified  time.Time
	Path      string `sql:"type:text;"`
	CreatedAt time.Time
}

type FileAction

type FileAction struct {
	Id           int64
	ClientId     int64
	IsCreate     bool
	CreatedAt    time.Time
	PreviousHash string
	File         File
	FileId       int64
}

type FileSystemFile

type FileSystemFile struct {
	Id     int64
	UserId int64
	FileId int64
	Path   string `sql:"type:text;"`
	File   File
}

type FileSystemState

type FileSystemState struct {
	FileActionId int64
	State        map[string]File
}

type StateChange

type StateChange struct {
	File         File
	IsCreate     bool
	IsLocal      bool
	Quit         <-chan bool
	Done         chan<- interface{}
	Error        chan<- interface{}
	PreviousHash string
}

type User

type User struct {
	Id             int64
	Email          string `sql:"type:text;"`
	HashedPassword string
	CreatedAt      time.Time
	UpdatedAt      time.Time
	DeletedAt      time.Time
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL