server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Session_Year  int = 60 * 60 * 24 * 365
	Session_Month int = 60 * 60 * 24 * 30
)
View Source
const StateAborted = "ABORTED"
View Source
const StateFinished = "FINISHED"
View Source
const StateScheduled = "SCHEDULED"

async

View Source
const StateStarted = "STARTED"

Variables

This section is empty.

Functions

func NewServer

func NewServer(prefixPath string) *mserver

func StartMServer

func StartMServer()

func Var

func Var(r *http.Request, name string) string

Types

type AlbumCollection

type AlbumCollection struct {
	Info   *model.Album `json:"info"`
	Photos *PhotoFiles  `json:"photos"`
}

type ApiError

type ApiError struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

func BadRequestError

func BadRequestError(message string) *ApiError

func InternalError

func InternalError(message string) *ApiError

func NotFoundError

func NotFoundError(message string) *ApiError

func ResolveError

func ResolveError(err error) *ApiError

func UnauthorizedError

func UnauthorizedError(message string) *ApiError

func (*ApiError) Error

func (e *ApiError) Error() string

type AuthUser

type AuthUser struct {
	Authenticated bool `json:"authenticated"`
}

type DriveFile

type DriveFile struct {
	CreatedTime time.Time
	Id          string `json:"id"`
	Kind        string `json:"kind"`
	Md5Checksum string `json:"md5Checksum"`
	MimeType    string `json:"mimeType"`
}

type DriveFiles

type DriveFiles struct {
	Length int          `json:"length"`
	Files  []*DriveFile `json:"files,omitempty"`
}

type Job

type Job struct {
	Id      string `json:"id"`
	State   string `json:"state"`
	Percent int    `json:"percent"`

	NumFiles     int       `json:"numFiles"`
	NumProcessed int       `json:"numProcessed"`
	Err          *ApiError `json:"error,omitempty"`
	// contains filtered or unexported fields
}

type PSResponse

type PSResponse struct {
	Err  *ApiError   `json:"error,omitempty"`
	Data interface{} `json:"data,omitempty"`
}

type PhotoFiles

type PhotoFiles struct {
	Length int            `json:"length"`
	Photos []*model.Photo `json:"photos,omitempty"`
}

type SessionGuest

type SessionGuest struct {
	Id string `json:"id"`
}

type WelcomeEmail

type WelcomeEmail struct {
	VerifyUrl string
	Code      string
	Name      string
}

Jump to

Keyboard shortcuts

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