types

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContextAuthInfo       = ContextKeys("auth-info")
	ContextSessionInfo    = ContextKeys("session-info")
	ContextWebToken       = ContextKeys("webtoken-info")
	ContextSessionPayload = ContextKeys("session-payload")
)
View Source
const (
	AuthWebToken          = AuthKeys("web-token")
	AuthSessionToken      = AuthKeys("session-token")
	AuthClientServerToken = AuthKeys("client-token")
	AuthServerCredentials = AuthKeys("server-credentials")
)
View Source
const (
	UploaderAws   = UploaderProvider("AWS")
	UploaderLocal = UploaderProvider("LOCAL")
)
View Source
const (
	AppName       = "lancer"
	AppConfigFile = "lancer.yaml"
	AppSecrets    = "secrets"
	AppHistory    = "history"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminUserPayload

type AdminUserPayload struct {
	Email    string `json:"email" validate:"email"`
	Password string `json:"password" validate:"required"`
}

type AuthKeys

type AuthKeys string

type ContextKeys

type ContextKeys string

type CreateSessionPayload

type CreateSessionPayload struct {
	FileSize  int64            `json:"file_size" validate:"required"`
	ChunkSize int64            `json:"chunk_size" validate:"required"`
	MaxChunk  int64            `json:"max_chunk" validate:"required"`
	FileName  string           `json:"file_name" validate:"required"`
	Provider  UploaderProvider `json:"provider" validate:"required"`
}

type DeleteUploadFileList

type DeleteUploadFileList struct {
	db.DeleteDocumentsByIdsRow
	ProviderMetadata interface{}
}

type SessionInfo

type SessionInfo struct {
	ID           string           `json:"id"`
	FileSize     int64            `json:"file_size"`
	ChunkSize    int64            `json:"chunk_size"`
	MaxChunk     int64            `json:"max_chunk"`
	FileName     string           `json:"file_name"`
	TempPath     string           `json:"temp_path"`
	OwnerID      string           `json:"owner_id"`
	CurrentChunk int64            `json:"current_chunk"`
	Provider     UploaderProvider `json:"provider"`
}

type SessionTokenPayload

type SessionTokenPayload struct {
	SessionToken string `json:"session_token" validate:"required"`
}

type UploadDeletePayload

type UploadDeletePayload struct {
	ID []uuid.UUID `json:"id" validate:"required"`
}

type UploadQueryInfo

type UploadQueryInfo struct {
	Limit      int32   `query:"size"`
	Page       int32   `query:"page"`
	MinSize    *int64  `query:"min_size"`
	MaxSize    *int64  `query:"max_size"`
	Checksum   *string `query:"checksum"`
	UploadedBy *string `query:"uploaded_by"`
	Provider   *string `query:"provider"`
	FileType   *string `query:"file_type"`
}

type UploaderChunkPayload

type UploaderChunkPayload struct {
	ChunkCount int64  `validate:"required"`
	Checksum   string `validate:"required"`
}

type UploaderProvider

type UploaderProvider string

Jump to

Keyboard shortcuts

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