Documentation ¶
Index ¶
- type OAuthClientRedirectURL
- type OAuthClientRedirectURLList
- type OAuthCode
- type Oauth2AuthorizationCode
- type Oauth2ClientCredential
- type OauthClient
- type OauthClientType
- type OauthScope
- type OauthSession
- type Photo
- type PhotoDateTimeAggregation
- type PhotoDateTimeAggregationItem
- type PhotoFile
- type PhotoFileList
- type PhotoFileType
- type PhotoFileTypeList
- type PhotoList
- type PhotoMeta
- type PhotoMetaItem
- type PhotoSearchResult
- type PhotoSearchResultItem
- type PhotoUploadInfo
- type PhotoUploadSign
- type StorageFileData
- type StorageFileInfo
- type User
- type UserAuth
- type UserList
- type UserPassword
- type UserStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuthClientRedirectURL ¶
type OAuthClientRedirectURLList ¶
type OAuthClientRedirectURLList []*OAuthClientRedirectURL
func (OAuthClientRedirectURLList) IsMatchURL ¶
func (l OAuthClientRedirectURLList) IsMatchURL(u string) bool
type Oauth2AuthorizationCode ¶
type Oauth2ClientCredential ¶
type Oauth2ClientCredential struct { AccessToken string TokenType OauthClientType ExpireIn int }
type OauthClient ¶
type OauthClient struct { OauthClientID string ClientSecretHashed string Name string Scope OauthScope ClientType OauthClientType RedirectURLs []string }
type OauthClientType ¶
type OauthClientType int
const ( OauthClientTypeUnknown OauthClientType = 0 OauthClientTypeUserClient OauthClientType = 1 OauthClientTypeClientCredential OauthClientType = 2 )
func (OauthClientType) Int ¶
func (t OauthClientType) Int() int
func (OauthClientType) String ¶
func (t OauthClientType) String() string
type OauthScope ¶
type OauthScope string
const ( OauthScopeUnknown OauthScope = "Unknown" OauthScopeUser OauthScope = "General" OauthScopeAdmin OauthScope = "Admin" )
func (OauthScope) String ¶
func (s OauthScope) String() string
type OauthSession ¶
type OauthSession struct { ClientType OauthClientType Scope OauthScope ClientID string UserID string }
type Photo ¶
type Photo struct { PhotoID int Name string ImportedAt time.Time FileNameHash string Files PhotoFileList }
func (Photo) PreviewURL ¶
func (Photo) ThumbnailURL ¶
type PhotoDateTimeAggregation ¶
type PhotoDateTimeAggregation []*PhotoDateTimeAggregationItem
type PhotoFile ¶
type PhotoFile struct { PhotoFileID int PhotoID int FilePath string ImportedAt time.Time FileHash string }
func (PhotoFile) FileType ¶
func (f PhotoFile) FileType() PhotoFileType
type PhotoFileList ¶
type PhotoFileList []*PhotoFile
func (PhotoFileList) FileTypes ¶
func (list PhotoFileList) FileTypes() []PhotoFileType
func (PhotoFileList) FindFileByFileType ¶
func (list PhotoFileList) FindFileByFileType(photoID int, fileType PhotoFileType) *PhotoFile
func (PhotoFileList) FindFileTypesByPhotoID ¶
func (list PhotoFileList) FindFileTypesByPhotoID(photoID int) []PhotoFileType
type PhotoFileType ¶
type PhotoFileType string
const ( PhotoFileTypeJPEG PhotoFileType = "jpeg" PhotoFileTypeRAW PhotoFileType = "raw" PhotoFileTypeUnknown PhotoFileType = "unknown" )
func (PhotoFileType) ToString ¶
func (t PhotoFileType) ToString() string
type PhotoFileTypeList ¶
type PhotoFileTypeList []PhotoFileType
func (PhotoFileTypeList) ToStrings ¶
func (l PhotoFileTypeList) ToStrings() []string
type PhotoMeta ¶
type PhotoMeta []*PhotoMetaItem
type PhotoMetaItem ¶
type PhotoMetaItem struct { PhotoMetaItemID int TagID int TagName string TagType string ValueString string }
func (PhotoMetaItem) ValueInt ¶
func (i PhotoMetaItem) ValueInt() int
type PhotoSearchResult ¶
type PhotoSearchResult struct { Items []*PhotoSearchResultItem Total int }
type PhotoSearchResultItem ¶
type PhotoUploadInfo ¶
type PhotoUploadInfo struct {
UserID string
}
type PhotoUploadSign ¶
type StorageFileData ¶
type StorageFileData []byte
func (StorageFileData) FileHash ¶
func (e StorageFileData) FileHash() string
type StorageFileInfo ¶
func (StorageFileInfo) IsMatchExt ¶
func (f StorageFileInfo) IsMatchExt(extensions []string) bool
type User ¶
type User struct { UserID string Name string Status UserStatus }
type UserPassword ¶
type UserStatus ¶
type UserStatus int
const ( UserStatusActive UserStatus = 1 UserStatusWithdrawal UserStatus = 2 )
Click to show internal directories.
Click to hide internal directories.