models

package
v0.0.0-...-7ae5cf1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	ID        primitive.ObjectID `json:"id" bson:"_id,omitempty"`
	ServerDir string             `server_root`
	AppName   string             `application_name`
}

type Directory

type Directory struct {
	Name string  `json:"name"`
	Path string  `json:"path"`
	File []Files `json:"file_list"`
}

Directory Model

type Files

type Files struct {
	Name         string      `json:"file_name"`
	Path         string      `json:"file_path"`
	Type         string      `json:"file_type"`
	Size         int64       `json:"file_size"`
	Description  string      `json:"file_description"`
	FileMode     os.FileMode `json:"file_mode"`
	LastModified time.Time   `json:"last_modified"`
}

type Meta

type Meta struct {
	Updated primitive.Timestamp `json:"updated_at"`
	Created primitive.Timestamp `json:"created_at"`
}

Meta Model

type Users

type Users struct {
	ID         primitive.ObjectID `json:"id" bson:"_id,omitempty"`
	Name       string             `json:"name"`
	Email      string             `json:"email"`
	Username   string             `json:"username"`
	Password   string             `json:"password"`
	Auth       string             `json:"auth_key" bson:"auth,omitempty"`
	Photo      string             `json:"picture_url"`
	RootPath   string             `json:"root_path"`
	FormatTime time.Time          `json:"format_time"`
	MetaData   Meta               `json:"meta_data"`
}

Users Model

Jump to

Keyboard shortcuts

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