Documentation ¶
Index ¶
- Constants
- Variables
- type Connection
- type CreateOauthClientInput
- type CreateUserInput
- type DateAggregationItem
- type Edge
- type GqlStatus
- type Group
- type IndexingPhotosInput
- type Mutation
- type Node
- type OauthClient
- type OauthClientScope
- type OauthClientType
- type PageInfo
- type Pagination
- type PaginationInfo
- type Photo
- type PhotoExif
- type PhotoFile
- type PhotoPagination
- type PhotoUploadInfo
- type Query
- type UpdateMeInput
- type User
- type UserEdge
- type UserPagination
- type UserPassword
- type UserStatus
Constants ¶
View Source
const OauthClientName = "OauthClient"
View Source
const PhotoExifName = "PhotoExif"
View Source
const PhotoFileName = "PhotoFile"
View Source
const PhotoName = "Photo"
View Source
const UserName = "User"
View Source
const UserPasswordName = "UserPassword"
Variables ¶
View Source
var AllOauthClientScope = []OauthClientScope{ OauthClientScopeGeneral, OauthClientScopeAdmin, }
View Source
var AllOauthClientType = []OauthClientType{ OauthClientTypeUserClient, OauthClientTypeClientCredential, }
View Source
var AllUserStatus = []UserStatus{ UserStatusActive, UserStatusWithdrawal, }
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type CreateOauthClientInput ¶
type CreateOauthClientInput struct { ClientID string `json:"clientId"` Name string `json:"name"` Scope OauthClientScope `json:"scope"` ClientType OauthClientType `json:"clientType"` RedirectUrls []string `json:"redirectUrls"` }
type CreateUserInput ¶
type DateAggregationItem ¶
type DateAggregationItem struct { Year int `json:"year"` Month int `json:"month"` Date int `json:"date"` Num int `json:"num"` }
func NewDateTimeAggregation ¶
func NewDateTimeAggregation(aggregation entities.PhotoDateTimeAggregation) []*DateAggregationItem
type Group ¶
type IndexingPhotosInput ¶
type IndexingPhotosInput struct {
Fast bool `json:"fast"`
}
type OauthClient ¶
type OauthClient struct { ID string `json:"id"` ClientID string `json:"clientId"` Name string `json:"name"` Scope OauthClientScope `json:"scope"` ClientType OauthClientType `json:"clientType"` ClientSecret *string `json:"clientSecret"` }
func NewOauthClientWithSecret ¶
func NewOauthClientWithSecret(oauth *entities.OauthClient, secret string) *OauthClient
func (OauthClient) GetID ¶
func (m OauthClient) GetID() string
func (OauthClient) IsNode ¶
func (OauthClient) IsNode()
type OauthClientScope ¶
type OauthClientScope string
const ( OauthClientScopeGeneral OauthClientScope = "general" OauthClientScopeAdmin OauthClientScope = "admin" )
func (OauthClientScope) IsValid ¶
func (e OauthClientScope) IsValid() bool
func (OauthClientScope) MarshalGQL ¶
func (e OauthClientScope) MarshalGQL(w io.Writer)
func (OauthClientScope) String ¶
func (e OauthClientScope) String() string
func (OauthClientScope) ToEntity ¶
func (e OauthClientScope) ToEntity() entities.OauthScope
func (*OauthClientScope) UnmarshalGQL ¶
func (e *OauthClientScope) UnmarshalGQL(v interface{}) error
type OauthClientType ¶
type OauthClientType string
const ( OauthClientTypeUserClient OauthClientType = "UserClient" OauthClientTypeClientCredential OauthClientType = "ClientCredential" )
func (OauthClientType) IsValid ¶
func (e OauthClientType) IsValid() bool
func (OauthClientType) MarshalGQL ¶
func (e OauthClientType) MarshalGQL(w io.Writer)
func (OauthClientType) String ¶
func (e OauthClientType) String() string
func (OauthClientType) ToEntity ¶
func (e OauthClientType) ToEntity() entities.OauthClientType
func (*OauthClientType) UnmarshalGQL ¶
func (e *OauthClientType) UnmarshalGQL(v interface{}) error
type Pagination ¶
type Pagination interface { IsPagination() GetPageInfo() *PaginationInfo GetNodes() []Node }
type PaginationInfo ¶
type Photo ¶
type Photo struct { ID string `json:"id"` Name string `json:"name"` ImportedAt string `json:"importedAt"` DateTimeOriginal string `json:"dateTimeOriginal"` PreviewURL string `json:"previewUrl"` ThumbnailURL string `json:"thumbnailUrl"` FileTypes []string `json:"fileTypes"` }
func NewPhoto ¶
func NewPhoto(p *entities.PhotoSearchResultItem) *Photo
type PhotoExif ¶
type PhotoExif struct { ID string `json:"id"` TagID int `json:"tagId"` TagType string `json:"tagType"` ValueString string `json:"valueString"` }
func NewPhotoExifData ¶
type PhotoFile ¶
type PhotoFile struct { ID string `json:"id"` PhotoID string `json:"photoId"` FileType string `json:"fileType"` ImportedAt string `json:"importedAt"` FileHash string `json:"fileHash"` FileName string `json:"fileName"` }
func NewPhotoFile ¶
func NewPhotoFiles ¶
func NewPhotoFiles(l entities.PhotoFileList) []*PhotoFile
type PhotoPagination ¶
type PhotoPagination struct { PageInfo *PaginationInfo `json:"pageInfo"` Nodes []*Photo `json:"nodes"` }
func NewPhotoPagination ¶
func NewPhotoPagination(result *entities.PhotoSearchResult, limit, offset int) *PhotoPagination
func (PhotoPagination) GetNodes ¶
func (this PhotoPagination) GetNodes() []Node
func (PhotoPagination) GetPageInfo ¶
func (this PhotoPagination) GetPageInfo() *PaginationInfo
func (PhotoPagination) IsPagination ¶
func (PhotoPagination) IsPagination()
type PhotoUploadInfo ¶
func NewPhotoUploadInfo ¶
func NewPhotoUploadInfo(sign *entities.PhotoUploadSign) *PhotoUploadInfo
type UpdateMeInput ¶
type UpdateMeInput struct {
Name string `json:"name"`
}
type User ¶
type User struct { ID string `json:"id"` UserID string `json:"userId"` Name string `json:"name"` Status UserStatus `json:"status"` }
type UserPagination ¶
type UserPagination struct { PageInfo *PaginationInfo `json:"pageInfo"` Nodes []*User `json:"nodes"` }
func NewUserPagination ¶
func NewUserPagination(users entities.UserList, total, limit, offset int) *UserPagination
func (UserPagination) GetNodes ¶
func (this UserPagination) GetNodes() []Node
func (UserPagination) GetPageInfo ¶
func (this UserPagination) GetPageInfo() *PaginationInfo
func (UserPagination) IsPagination ¶
func (UserPagination) IsPagination()
type UserPassword ¶
type UserPassword struct { ID string `json:"id"` LastModified string `json:"lastModified"` IsInitialized bool `json:"isInitialized"` }
func NewUserPassword ¶
func NewUserPassword(p *entities.UserPassword) *UserPassword
func (UserPassword) GetID ¶
func (this UserPassword) GetID() string
func (UserPassword) IsNode ¶
func (UserPassword) IsNode()
type UserStatus ¶
type UserStatus string
const ( UserStatusActive UserStatus = "Active" UserStatusWithdrawal UserStatus = "Withdrawal" )
func (UserStatus) IsValid ¶
func (e UserStatus) IsValid() bool
func (UserStatus) MarshalGQL ¶
func (e UserStatus) MarshalGQL(w io.Writer)
func (UserStatus) String ¶
func (e UserStatus) String() string
func (*UserStatus) UnmarshalGQL ¶
func (e *UserStatus) UnmarshalGQL(v interface{}) error
Click to show internal directories.
Click to hide internal directories.