rocketchat

package
v0.0.0-...-260716b Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 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 AmazonS3

type AmazonS3 struct {
	Path string
}

AmazonS3 is a sub property of file

type File

type File struct {
	ID            string `bson:"_id"`
	Name          string
	Size          int
	Type          string
	Rid           string `bson:"rid"`
	UserID        string `bson:"userId"`
	Description   string
	Store         string
	Complete      bool
	Uploading     bool
	Extension     string
	Progress      float64
	AmazonS3      AmazonS3      `bson:"AmazonS3,omitempty"`
	GoogleStorage GoogleStorage `bson:"GoogleStorage,omitempty"`
	UpdatedAt     time.Time     `bson:"_updatedAt"`
	InstanceID    string        `bson:"instanceId"`
	Identify      struct {
		Format string
		Size   struct {
			Width  int
			Height int
		}
	}
	Etag       string
	Token      string
	UploadedAt time.Time `bson:"uploadedAt"`
	Path       string
	URL        string

	IsRoomAvatar bool
}

File represents the structure of the file in Rocket.Chats database

type FileSetOp

type FileSetOp struct {
	GoogleStorage *GoogleStorage `bson:"GoogleStorage,omitempty"`
	AmazonS3      *AmazonS3      `bson:"AmazonS3,omitempty"`
	Url           string         `bson:"url"`
	Path          string         `bson:"path"`
	Store         string         `bson:"store"`
}

type GoogleStorage

type GoogleStorage struct {
	Path string
}

GoogleStorage is sub property of file

Jump to

Keyboard shortcuts

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