Documentation
¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- type AddBots
- type ApiKeyAuth
- type ApiVersion
- func (s *ApiVersion) Decode(d *jx.Decoder) error
- func (s *ApiVersion) Encode(e *jx.Encoder)
- func (s *ApiVersion) GetArch() string
- func (s *ApiVersion) GetCommitSHA() string
- func (s *ApiVersion) GetGoVersion() string
- func (s *ApiVersion) GetOs() string
- func (s *ApiVersion) GetVersion() string
- func (s *ApiVersion) MarshalJSON() ([]byte, error)
- func (s *ApiVersion) SetArch(val string)
- func (s *ApiVersion) SetCommitSHA(val string)
- func (s *ApiVersion) SetGoVersion(val string)
- func (s *ApiVersion) SetOs(val string)
- func (s *ApiVersion) SetVersion(val string)
- func (s *ApiVersion) UnmarshalJSON(data []byte) error
- type AuthLoginNoContent
- type AuthLogoutNoContent
- type AuthSessionNoContent
- type AuthSessionParams
- type AuthSessionRes
- type AuthWsSwitchingProtocols
- type BearerAuth
- type Category
- type CategoryStats
- func (s *CategoryStats) Decode(d *jx.Decoder) error
- func (s *CategoryStats) Encode(e *jx.Encoder)
- func (s *CategoryStats) GetCategory() CategoryStatsCategory
- func (s *CategoryStats) GetTotalFiles() int64
- func (s *CategoryStats) GetTotalSize() int64
- func (s *CategoryStats) MarshalJSON() ([]byte, error)
- func (s *CategoryStats) SetCategory(val CategoryStatsCategory)
- func (s *CategoryStats) SetTotalFiles(val int64)
- func (s *CategoryStats) SetTotalSize(val int64)
- func (s *CategoryStats) UnmarshalJSON(data []byte) error
- func (s *CategoryStats) Validate() error
- type CategoryStatsCategory
- func (CategoryStatsCategory) AllValues() []CategoryStatsCategory
- func (s *CategoryStatsCategory) Decode(d *jx.Decoder) error
- func (s CategoryStatsCategory) Encode(e *jx.Encoder)
- func (s CategoryStatsCategory) MarshalJSON() ([]byte, error)
- func (s CategoryStatsCategory) MarshalText() ([]byte, error)
- func (s *CategoryStatsCategory) UnmarshalJSON(data []byte) error
- func (s *CategoryStatsCategory) UnmarshalText(data []byte) error
- func (s CategoryStatsCategory) Validate() error
- type Channel
- func (s *Channel) Decode(d *jx.Decoder) error
- func (s *Channel) Encode(e *jx.Encoder)
- func (s *Channel) GetChannelId() int64
- func (s *Channel) GetChannelName() string
- func (s *Channel) MarshalJSON() ([]byte, error)
- func (s *Channel) SetChannelId(val int64)
- func (s *Channel) SetChannelName(val string)
- func (s *Channel) UnmarshalJSON(data []byte) error
- type ChannelUpdate
- func (s *ChannelUpdate) Decode(d *jx.Decoder) error
- func (s *ChannelUpdate) Encode(e *jx.Encoder)
- func (s *ChannelUpdate) GetChannelId() OptInt64
- func (s *ChannelUpdate) GetChannelName() OptString
- func (s *ChannelUpdate) MarshalJSON() ([]byte, error)
- func (s *ChannelUpdate) SetChannelId(val OptInt64)
- func (s *ChannelUpdate) SetChannelName(val OptString)
- func (s *ChannelUpdate) UnmarshalJSON(data []byte) error
- type Error
- func (s *Error) Decode(d *jx.Decoder) error
- func (s *Error) Encode(e *jx.Encoder)
- func (s *Error) GetCode() int
- func (s *Error) GetMessage() string
- func (s *Error) MarshalJSON() ([]byte, error)
- func (s *Error) SetCode(val int)
- func (s *Error) SetMessage(val string)
- func (s *Error) UnmarshalJSON(data []byte) error
- type ErrorHandler
- type ErrorStatusCode
- type Event
- func (s *Event) Decode(d *jx.Decoder) error
- func (s *Event) Encode(e *jx.Encoder)
- func (s *Event) GetCreatedAt() time.Time
- func (s *Event) GetID() string
- func (s *Event) GetSource() EventSource
- func (s *Event) GetType() string
- func (s *Event) MarshalJSON() ([]byte, error)
- func (s *Event) SetCreatedAt(val time.Time)
- func (s *Event) SetID(val string)
- func (s *Event) SetSource(val EventSource)
- func (s *Event) SetType(val string)
- func (s *Event) UnmarshalJSON(data []byte) error
- func (s *Event) Validate() error
- type EventSource
- func (s *EventSource) Decode(d *jx.Decoder) error
- func (s *EventSource) Encode(e *jx.Encoder)
- func (s *EventSource) GetDestParentId() OptString
- func (s *EventSource) GetID() string
- func (s *EventSource) GetName() string
- func (s *EventSource) GetParentId() string
- func (s *EventSource) GetType() EventSourceType
- func (s *EventSource) MarshalJSON() ([]byte, error)
- func (s *EventSource) SetDestParentId(val OptString)
- func (s *EventSource) SetID(val string)
- func (s *EventSource) SetName(val string)
- func (s *EventSource) SetParentId(val string)
- func (s *EventSource) SetType(val EventSourceType)
- func (s *EventSource) UnmarshalJSON(data []byte) error
- func (s *EventSource) Validate() error
- type EventSourceType
- func (EventSourceType) AllValues() []EventSourceType
- func (s *EventSourceType) Decode(d *jx.Decoder) error
- func (s EventSourceType) Encode(e *jx.Encoder)
- func (s EventSourceType) MarshalJSON() ([]byte, error)
- func (s EventSourceType) MarshalText() ([]byte, error)
- func (s *EventSourceType) UnmarshalJSON(data []byte) error
- func (s *EventSourceType) UnmarshalText(data []byte) error
- func (s EventSourceType) Validate() error
- type File
- func (s *File) Decode(d *jx.Decoder) error
- func (s *File) Encode(e *jx.Encoder)
- func (s *File) GetCategory() OptFileCategory
- func (s *File) GetChannelId() OptInt64
- func (s *File) GetEncrypted() OptBool
- func (s *File) GetID() OptString
- func (s *File) GetMimeType() OptString
- func (s *File) GetName() string
- func (s *File) GetParentId() OptString
- func (s *File) GetParts() []Part
- func (s *File) GetPath() OptString
- func (s *File) GetSize() OptInt64
- func (s *File) GetType() FileType
- func (s *File) GetUpdatedAt() OptDateTime
- func (s *File) MarshalJSON() ([]byte, error)
- func (s *File) SetCategory(val OptFileCategory)
- func (s *File) SetChannelId(val OptInt64)
- func (s *File) SetEncrypted(val OptBool)
- func (s *File) SetID(val OptString)
- func (s *File) SetMimeType(val OptString)
- func (s *File) SetName(val string)
- func (s *File) SetParentId(val OptString)
- func (s *File) SetParts(val []Part)
- func (s *File) SetPath(val OptString)
- func (s *File) SetSize(val OptInt64)
- func (s *File) SetType(val FileType)
- func (s *File) SetUpdatedAt(val OptDateTime)
- func (s *File) UnmarshalJSON(data []byte) error
- func (s *File) Validate() error
- type FileCategory
- func (FileCategory) AllValues() []FileCategory
- func (s *FileCategory) Decode(d *jx.Decoder) error
- func (s FileCategory) Encode(e *jx.Encoder)
- func (s FileCategory) MarshalJSON() ([]byte, error)
- func (s FileCategory) MarshalText() ([]byte, error)
- func (s *FileCategory) UnmarshalJSON(data []byte) error
- func (s *FileCategory) UnmarshalText(data []byte) error
- func (s FileCategory) Validate() error
- type FileCopy
- func (s *FileCopy) Decode(d *jx.Decoder) error
- func (s *FileCopy) Encode(e *jx.Encoder)
- func (s *FileCopy) GetDestination() string
- func (s *FileCopy) GetNewName() OptString
- func (s *FileCopy) GetUpdatedAt() OptDateTime
- func (s *FileCopy) MarshalJSON() ([]byte, error)
- func (s *FileCopy) SetDestination(val string)
- func (s *FileCopy) SetNewName(val OptString)
- func (s *FileCopy) SetUpdatedAt(val OptDateTime)
- func (s *FileCopy) UnmarshalJSON(data []byte) error
- type FileDelete
- func (s *FileDelete) Decode(d *jx.Decoder) error
- func (s *FileDelete) Encode(e *jx.Encoder)
- func (s *FileDelete) GetIds() []string
- func (s *FileDelete) MarshalJSON() ([]byte, error)
- func (s *FileDelete) SetIds(val []string)
- func (s *FileDelete) UnmarshalJSON(data []byte) error
- func (s *FileDelete) Validate() error
- type FileList
- func (s *FileList) Decode(d *jx.Decoder) error
- func (s *FileList) Encode(e *jx.Encoder)
- func (s *FileList) GetItems() []File
- func (s *FileList) GetMeta() FileListMeta
- func (s *FileList) MarshalJSON() ([]byte, error)
- func (s *FileList) SetItems(val []File)
- func (s *FileList) SetMeta(val FileListMeta)
- func (s *FileList) UnmarshalJSON(data []byte) error
- func (s *FileList) Validate() error
- type FileListMeta
- func (s *FileListMeta) Decode(d *jx.Decoder) error
- func (s *FileListMeta) Encode(e *jx.Encoder)
- func (s *FileListMeta) GetCount() int
- func (s *FileListMeta) GetCurrentPage() int
- func (s *FileListMeta) GetTotalPages() int
- func (s *FileListMeta) MarshalJSON() ([]byte, error)
- func (s *FileListMeta) SetCount(val int)
- func (s *FileListMeta) SetCurrentPage(val int)
- func (s *FileListMeta) SetTotalPages(val int)
- func (s *FileListMeta) UnmarshalJSON(data []byte) error
- func (s *FileListMeta) Validate() error
- type FileMkDir
- type FileMove
- func (s *FileMove) Decode(d *jx.Decoder) error
- func (s *FileMove) Encode(e *jx.Encoder)
- func (s *FileMove) GetDestinationName() OptString
- func (s *FileMove) GetDestinationParent() string
- func (s *FileMove) GetIds() []string
- func (s *FileMove) MarshalJSON() ([]byte, error)
- func (s *FileMove) SetDestinationName(val OptString)
- func (s *FileMove) SetDestinationParent(val string)
- func (s *FileMove) SetIds(val []string)
- func (s *FileMove) UnmarshalJSON(data []byte) error
- func (s *FileMove) Validate() error
- type FilePartsUpdate
- func (s *FilePartsUpdate) Decode(d *jx.Decoder) error
- func (s *FilePartsUpdate) Encode(e *jx.Encoder)
- func (s *FilePartsUpdate) GetChannelId() OptInt64
- func (s *FilePartsUpdate) GetName() OptString
- func (s *FilePartsUpdate) GetParentId() OptString
- func (s *FilePartsUpdate) GetParts() []Part
- func (s *FilePartsUpdate) GetSize() int64
- func (s *FilePartsUpdate) GetUpdatedAt() time.Time
- func (s *FilePartsUpdate) GetUploadId() OptString
- func (s *FilePartsUpdate) MarshalJSON() ([]byte, error)
- func (s *FilePartsUpdate) SetChannelId(val OptInt64)
- func (s *FilePartsUpdate) SetName(val OptString)
- func (s *FilePartsUpdate) SetParentId(val OptString)
- func (s *FilePartsUpdate) SetParts(val []Part)
- func (s *FilePartsUpdate) SetSize(val int64)
- func (s *FilePartsUpdate) SetUpdatedAt(val time.Time)
- func (s *FilePartsUpdate) SetUploadId(val OptString)
- func (s *FilePartsUpdate) UnmarshalJSON(data []byte) error
- type FileQueryOperation
- type FileQueryOrder
- type FileQuerySearchType
- type FileQuerySort
- type FileQueryStatus
- type FileQueryType
- type FileShare
- func (s *FileShare) Decode(d *jx.Decoder) error
- func (s *FileShare) Encode(e *jx.Encoder)
- func (s *FileShare) GetExpiresAt() OptDateTime
- func (s *FileShare) GetID() string
- func (s *FileShare) GetName() string
- func (s *FileShare) GetProtected() bool
- func (s *FileShare) GetType() FileShareType
- func (s *FileShare) GetUserId() OptInt64
- func (s *FileShare) MarshalJSON() ([]byte, error)
- func (s *FileShare) SetExpiresAt(val OptDateTime)
- func (s *FileShare) SetID(val string)
- func (s *FileShare) SetName(val string)
- func (s *FileShare) SetProtected(val bool)
- func (s *FileShare) SetType(val FileShareType)
- func (s *FileShare) SetUserId(val OptInt64)
- func (s *FileShare) UnmarshalJSON(data []byte) error
- func (s *FileShare) Validate() error
- type FileShareCreate
- func (s *FileShareCreate) Decode(d *jx.Decoder) error
- func (s *FileShareCreate) Encode(e *jx.Encoder)
- func (s *FileShareCreate) GetExpiresAt() OptDateTime
- func (s *FileShareCreate) GetPassword() OptString
- func (s *FileShareCreate) MarshalJSON() ([]byte, error)
- func (s *FileShareCreate) SetExpiresAt(val OptDateTime)
- func (s *FileShareCreate) SetPassword(val OptString)
- func (s *FileShareCreate) UnmarshalJSON(data []byte) error
- type FileShareInfo
- func (s *FileShareInfo) Decode(d *jx.Decoder) error
- func (s *FileShareInfo) Encode(e *jx.Encoder)
- func (s *FileShareInfo) GetExpiresAt() OptDateTime
- func (s *FileShareInfo) GetName() string
- func (s *FileShareInfo) GetProtected() bool
- func (s *FileShareInfo) GetType() FileShareInfoType
- func (s *FileShareInfo) GetUserId() int64
- func (s *FileShareInfo) MarshalJSON() ([]byte, error)
- func (s *FileShareInfo) SetExpiresAt(val OptDateTime)
- func (s *FileShareInfo) SetName(val string)
- func (s *FileShareInfo) SetProtected(val bool)
- func (s *FileShareInfo) SetType(val FileShareInfoType)
- func (s *FileShareInfo) SetUserId(val int64)
- func (s *FileShareInfo) UnmarshalJSON(data []byte) error
- func (s *FileShareInfo) Validate() error
- type FileShareInfoType
- func (FileShareInfoType) AllValues() []FileShareInfoType
- func (s *FileShareInfoType) Decode(d *jx.Decoder) error
- func (s FileShareInfoType) Encode(e *jx.Encoder)
- func (s FileShareInfoType) MarshalJSON() ([]byte, error)
- func (s FileShareInfoType) MarshalText() ([]byte, error)
- func (s *FileShareInfoType) UnmarshalJSON(data []byte) error
- func (s *FileShareInfoType) UnmarshalText(data []byte) error
- func (s FileShareInfoType) Validate() error
- type FileShareType
- func (FileShareType) AllValues() []FileShareType
- func (s *FileShareType) Decode(d *jx.Decoder) error
- func (s FileShareType) Encode(e *jx.Encoder)
- func (s FileShareType) MarshalJSON() ([]byte, error)
- func (s FileShareType) MarshalText() ([]byte, error)
- func (s *FileShareType) UnmarshalJSON(data []byte) error
- func (s *FileShareType) UnmarshalText(data []byte) error
- func (s FileShareType) Validate() error
- type FileType
- func (FileType) AllValues() []FileType
- func (s *FileType) Decode(d *jx.Decoder) error
- func (s FileType) Encode(e *jx.Encoder)
- func (s FileType) MarshalJSON() ([]byte, error)
- func (s FileType) MarshalText() ([]byte, error)
- func (s *FileType) UnmarshalJSON(data []byte) error
- func (s *FileType) UnmarshalText(data []byte) error
- func (s FileType) Validate() error
- type FileUpdate
- func (s *FileUpdate) Decode(d *jx.Decoder) error
- func (s *FileUpdate) Encode(e *jx.Encoder)
- func (s *FileUpdate) GetName() OptString
- func (s *FileUpdate) GetParts() []Part
- func (s *FileUpdate) GetSize() OptInt64
- func (s *FileUpdate) GetUpdatedAt() OptDateTime
- func (s *FileUpdate) MarshalJSON() ([]byte, error)
- func (s *FileUpdate) SetName(val OptString)
- func (s *FileUpdate) SetParts(val []Part)
- func (s *FileUpdate) SetSize(val OptInt64)
- func (s *FileUpdate) SetUpdatedAt(val OptDateTime)
- func (s *FileUpdate) UnmarshalJSON(data []byte) error
- type FilesCopyParams
- type FilesCreateShareCreated
- type FilesCreateShareParams
- type FilesDeleteNoContent
- type FilesDeleteShareNoContent
- type FilesDeleteShareParams
- type FilesEditShareNoContent
- type FilesEditShareParams
- type FilesGetByIdParams
- type FilesListParams
- type FilesMkdirNoContent
- type FilesMoveNoContent
- type FilesShareByidParams
- type FilesStreamDownload
- type FilesStreamOK
- type FilesStreamOKAcceptRanges
- type FilesStreamOKHeaders
- func (s *FilesStreamOKHeaders) GetAcceptRanges() FilesStreamOKAcceptRanges
- func (s *FilesStreamOKHeaders) GetContentDisposition() string
- func (s *FilesStreamOKHeaders) GetContentLength() string
- func (s *FilesStreamOKHeaders) GetContentRange() OptString
- func (s *FilesStreamOKHeaders) GetContentType() string
- func (s *FilesStreamOKHeaders) GetEtag() string
- func (s *FilesStreamOKHeaders) GetLastModified() string
- func (s *FilesStreamOKHeaders) GetResponse() FilesStreamOK
- func (s *FilesStreamOKHeaders) SetAcceptRanges(val FilesStreamOKAcceptRanges)
- func (s *FilesStreamOKHeaders) SetContentDisposition(val string)
- func (s *FilesStreamOKHeaders) SetContentLength(val string)
- func (s *FilesStreamOKHeaders) SetContentRange(val OptString)
- func (s *FilesStreamOKHeaders) SetContentType(val string)
- func (s *FilesStreamOKHeaders) SetEtag(val string)
- func (s *FilesStreamOKHeaders) SetLastModified(val string)
- func (s *FilesStreamOKHeaders) SetResponse(val FilesStreamOK)
- func (s *FilesStreamOKHeaders) Validate() error
- type FilesStreamParams
- type FilesStreamPartialContent
- type FilesStreamPartialContentAcceptRanges
- func (FilesStreamPartialContentAcceptRanges) AllValues() []FilesStreamPartialContentAcceptRanges
- func (s FilesStreamPartialContentAcceptRanges) MarshalText() ([]byte, error)
- func (s *FilesStreamPartialContentAcceptRanges) UnmarshalText(data []byte) error
- func (s FilesStreamPartialContentAcceptRanges) Validate() error
- type FilesStreamPartialContentHeaders
- func (s *FilesStreamPartialContentHeaders) GetAcceptRanges() FilesStreamPartialContentAcceptRanges
- func (s *FilesStreamPartialContentHeaders) GetContentDisposition() string
- func (s *FilesStreamPartialContentHeaders) GetContentLength() string
- func (s *FilesStreamPartialContentHeaders) GetContentRange() OptString
- func (s *FilesStreamPartialContentHeaders) GetContentType() string
- func (s *FilesStreamPartialContentHeaders) GetEtag() string
- func (s *FilesStreamPartialContentHeaders) GetLastModified() string
- func (s *FilesStreamPartialContentHeaders) GetResponse() FilesStreamPartialContent
- func (s *FilesStreamPartialContentHeaders) SetAcceptRanges(val FilesStreamPartialContentAcceptRanges)
- func (s *FilesStreamPartialContentHeaders) SetContentDisposition(val string)
- func (s *FilesStreamPartialContentHeaders) SetContentLength(val string)
- func (s *FilesStreamPartialContentHeaders) SetContentRange(val OptString)
- func (s *FilesStreamPartialContentHeaders) SetContentType(val string)
- func (s *FilesStreamPartialContentHeaders) SetEtag(val string)
- func (s *FilesStreamPartialContentHeaders) SetLastModified(val string)
- func (s *FilesStreamPartialContentHeaders) SetResponse(val FilesStreamPartialContent)
- func (s *FilesStreamPartialContentHeaders) Validate() error
- type FilesStreamRes
- type FilesUpdateParams
- type FilesUpdatePartsNoContent
- type FilesUpdatePartsParams
- type Handler
- type Middleware
- type OperationName
- type OptBool
- func (o *OptBool) Decode(d *jx.Decoder) error
- func (o OptBool) Encode(e *jx.Encoder)
- func (o OptBool) Get() (v bool, ok bool)
- func (o OptBool) IsSet() bool
- func (s OptBool) MarshalJSON() ([]byte, error)
- func (o OptBool) Or(d bool) bool
- func (o *OptBool) Reset()
- func (o *OptBool) SetTo(v bool)
- func (s *OptBool) UnmarshalJSON(data []byte) error
- type OptDateTime
- func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error
- func (o OptDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))
- func (o OptDateTime) Get() (v time.Time, ok bool)
- func (o OptDateTime) IsSet() bool
- func (s OptDateTime) MarshalJSON() ([]byte, error)
- func (o OptDateTime) Or(d time.Time) time.Time
- func (o *OptDateTime) Reset()
- func (o *OptDateTime) SetTo(v time.Time)
- func (s *OptDateTime) UnmarshalJSON(data []byte) error
- type OptFileCategory
- func (o *OptFileCategory) Decode(d *jx.Decoder) error
- func (o OptFileCategory) Encode(e *jx.Encoder)
- func (o OptFileCategory) Get() (v FileCategory, ok bool)
- func (o OptFileCategory) IsSet() bool
- func (s OptFileCategory) MarshalJSON() ([]byte, error)
- func (o OptFileCategory) Or(d FileCategory) FileCategory
- func (o *OptFileCategory) Reset()
- func (o *OptFileCategory) SetTo(v FileCategory)
- func (s *OptFileCategory) UnmarshalJSON(data []byte) error
- type OptFileQueryOperation
- type OptFileQueryOrder
- type OptFileQuerySearchType
- type OptFileQuerySort
- type OptFileQueryStatus
- type OptFileQueryType
- type OptFilesStreamDownload
- type OptInt
- type OptInt64
- func (o *OptInt64) Decode(d *jx.Decoder) error
- func (o OptInt64) Encode(e *jx.Encoder)
- func (o OptInt64) Get() (v int64, ok bool)
- func (o OptInt64) IsSet() bool
- func (s OptInt64) MarshalJSON() ([]byte, error)
- func (o OptInt64) Or(d int64) int64
- func (o *OptInt64) Reset()
- func (o *OptInt64) SetTo(v int64)
- func (s *OptInt64) UnmarshalJSON(data []byte) error
- type OptShareQueryOrder
- type OptShareQuerySort
- type OptSharesStreamDownload
- func (o OptSharesStreamDownload) Get() (v SharesStreamDownload, ok bool)
- func (o OptSharesStreamDownload) IsSet() bool
- func (o OptSharesStreamDownload) Or(d SharesStreamDownload) SharesStreamDownload
- func (o *OptSharesStreamDownload) Reset()
- func (o *OptSharesStreamDownload) SetTo(v SharesStreamDownload)
- type OptString
- func (o *OptString) Decode(d *jx.Decoder) error
- func (o OptString) Encode(e *jx.Encoder)
- func (o OptString) Get() (v string, ok bool)
- func (o OptString) IsSet() bool
- func (s OptString) MarshalJSON() ([]byte, error)
- func (o OptString) Or(d string) string
- func (o *OptString) Reset()
- func (o *OptString) SetTo(v string)
- func (s *OptString) UnmarshalJSON(data []byte) error
- type Option
- type Part
- func (s *Part) Decode(d *jx.Decoder) error
- func (s *Part) Encode(e *jx.Encoder)
- func (s *Part) GetID() int
- func (s *Part) GetSalt() OptString
- func (s *Part) MarshalJSON() ([]byte, error)
- func (s *Part) SetID(val int)
- func (s *Part) SetSalt(val OptString)
- func (s *Part) UnmarshalJSON(data []byte) error
- type Route
- type SecurityHandler
- type Server
- type ServerOption
- func WithErrorHandler(h ErrorHandler) ServerOption
- func WithMaxMultipartMemory(max int64) ServerOption
- func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
- func WithMiddleware(m ...Middleware) ServerOption
- func WithNotFound(notFound http.HandlerFunc) ServerOption
- func WithPathPrefix(prefix string) ServerOption
- type Session
- func (s *Session) Decode(d *jx.Decoder) error
- func (s *Session) Encode(e *jx.Encoder)
- func (s *Session) GetExpires() time.Time
- func (s *Session) GetHash() string
- func (s *Session) GetIsPremium() bool
- func (s *Session) GetName() string
- func (s *Session) GetUserId() int64
- func (s *Session) GetUserName() string
- func (s *Session) MarshalJSON() ([]byte, error)
- func (s *Session) SetExpires(val time.Time)
- func (s *Session) SetHash(val string)
- func (s *Session) SetIsPremium(val bool)
- func (s *Session) SetName(val string)
- func (s *Session) SetUserId(val int64)
- func (s *Session) SetUserName(val string)
- func (s *Session) UnmarshalJSON(data []byte) error
- func (s *Session) Validate() error
- type SessionCreate
- func (s *SessionCreate) Decode(d *jx.Decoder) error
- func (s *SessionCreate) Encode(e *jx.Encoder)
- func (s *SessionCreate) GetExpires() time.Time
- func (s *SessionCreate) GetHash() string
- func (s *SessionCreate) GetIsPremium() bool
- func (s *SessionCreate) GetName() string
- func (s *SessionCreate) GetSession() string
- func (s *SessionCreate) GetUserId() int64
- func (s *SessionCreate) GetUserName() string
- func (s *SessionCreate) MarshalJSON() ([]byte, error)
- func (s *SessionCreate) SetExpires(val time.Time)
- func (s *SessionCreate) SetHash(val string)
- func (s *SessionCreate) SetIsPremium(val bool)
- func (s *SessionCreate) SetName(val string)
- func (s *SessionCreate) SetSession(val string)
- func (s *SessionCreate) SetUserId(val int64)
- func (s *SessionCreate) SetUserName(val string)
- func (s *SessionCreate) UnmarshalJSON(data []byte) error
- func (s *SessionCreate) Validate() error
- type SessionHeaders
- type ShareQueryOrder
- type ShareQuerySort
- type ShareUnlock
- type SharesGetByIdParams
- type SharesListFilesParams
- type SharesStreamDownload
- type SharesStreamOK
- type SharesStreamOKAcceptRanges
- type SharesStreamOKHeaders
- func (s *SharesStreamOKHeaders) GetAcceptRanges() SharesStreamOKAcceptRanges
- func (s *SharesStreamOKHeaders) GetContentDisposition() string
- func (s *SharesStreamOKHeaders) GetContentLength() string
- func (s *SharesStreamOKHeaders) GetContentRange() OptString
- func (s *SharesStreamOKHeaders) GetContentType() string
- func (s *SharesStreamOKHeaders) GetEtag() string
- func (s *SharesStreamOKHeaders) GetLastModified() string
- func (s *SharesStreamOKHeaders) GetResponse() SharesStreamOK
- func (s *SharesStreamOKHeaders) SetAcceptRanges(val SharesStreamOKAcceptRanges)
- func (s *SharesStreamOKHeaders) SetContentDisposition(val string)
- func (s *SharesStreamOKHeaders) SetContentLength(val string)
- func (s *SharesStreamOKHeaders) SetContentRange(val OptString)
- func (s *SharesStreamOKHeaders) SetContentType(val string)
- func (s *SharesStreamOKHeaders) SetEtag(val string)
- func (s *SharesStreamOKHeaders) SetLastModified(val string)
- func (s *SharesStreamOKHeaders) SetResponse(val SharesStreamOK)
- func (s *SharesStreamOKHeaders) Validate() error
- type SharesStreamParams
- type SharesStreamPartialContent
- type SharesStreamPartialContentAcceptRanges
- func (SharesStreamPartialContentAcceptRanges) AllValues() []SharesStreamPartialContentAcceptRanges
- func (s SharesStreamPartialContentAcceptRanges) MarshalText() ([]byte, error)
- func (s *SharesStreamPartialContentAcceptRanges) UnmarshalText(data []byte) error
- func (s SharesStreamPartialContentAcceptRanges) Validate() error
- type SharesStreamPartialContentHeaders
- func (s *SharesStreamPartialContentHeaders) GetAcceptRanges() SharesStreamPartialContentAcceptRanges
- func (s *SharesStreamPartialContentHeaders) GetContentDisposition() string
- func (s *SharesStreamPartialContentHeaders) GetContentLength() string
- func (s *SharesStreamPartialContentHeaders) GetContentRange() OptString
- func (s *SharesStreamPartialContentHeaders) GetContentType() string
- func (s *SharesStreamPartialContentHeaders) GetEtag() string
- func (s *SharesStreamPartialContentHeaders) GetLastModified() string
- func (s *SharesStreamPartialContentHeaders) GetResponse() SharesStreamPartialContent
- func (s *SharesStreamPartialContentHeaders) SetAcceptRanges(val SharesStreamPartialContentAcceptRanges)
- func (s *SharesStreamPartialContentHeaders) SetContentDisposition(val string)
- func (s *SharesStreamPartialContentHeaders) SetContentLength(val string)
- func (s *SharesStreamPartialContentHeaders) SetContentRange(val OptString)
- func (s *SharesStreamPartialContentHeaders) SetContentType(val string)
- func (s *SharesStreamPartialContentHeaders) SetEtag(val string)
- func (s *SharesStreamPartialContentHeaders) SetLastModified(val string)
- func (s *SharesStreamPartialContentHeaders) SetResponse(val SharesStreamPartialContent)
- func (s *SharesStreamPartialContentHeaders) Validate() error
- type SharesStreamRes
- type SharesUnlockNoContent
- type SharesUnlockParams
- type UploadPart
- func (s *UploadPart) Decode(d *jx.Decoder) error
- func (s *UploadPart) Encode(e *jx.Encoder)
- func (s *UploadPart) GetChannelId() int64
- func (s *UploadPart) GetEncrypted() bool
- func (s *UploadPart) GetName() string
- func (s *UploadPart) GetPartId() int
- func (s *UploadPart) GetPartNo() int
- func (s *UploadPart) GetSalt() OptString
- func (s *UploadPart) GetSize() int64
- func (s *UploadPart) MarshalJSON() ([]byte, error)
- func (s *UploadPart) SetChannelId(val int64)
- func (s *UploadPart) SetEncrypted(val bool)
- func (s *UploadPart) SetName(val string)
- func (s *UploadPart) SetPartId(val int)
- func (s *UploadPart) SetPartNo(val int)
- func (s *UploadPart) SetSalt(val OptString)
- func (s *UploadPart) SetSize(val int64)
- func (s *UploadPart) UnmarshalJSON(data []byte) error
- type UploadStats
- func (s *UploadStats) Decode(d *jx.Decoder) error
- func (s *UploadStats) Encode(e *jx.Encoder)
- func (s *UploadStats) GetTotalUploaded() int64
- func (s *UploadStats) GetUploadDate() time.Time
- func (s *UploadStats) MarshalJSON() ([]byte, error)
- func (s *UploadStats) SetTotalUploaded(val int64)
- func (s *UploadStats) SetUploadDate(val time.Time)
- func (s *UploadStats) UnmarshalJSON(data []byte) error
- type UploadsDeleteNoContent
- type UploadsDeleteParams
- type UploadsPartsByIdParams
- type UploadsStatsParams
- type UploadsUploadParams
- type UploadsUploadReq
- type UploadsUploadReqWithContentType
- type UserConfig
- func (s *UserConfig) Decode(d *jx.Decoder) error
- func (s *UserConfig) Encode(e *jx.Encoder)
- func (s *UserConfig) GetBots() []string
- func (s *UserConfig) GetChannelId() int64
- func (s *UserConfig) MarshalJSON() ([]byte, error)
- func (s *UserConfig) SetBots(val []string)
- func (s *UserConfig) SetChannelId(val int64)
- func (s *UserConfig) UnmarshalJSON(data []byte) error
- func (s *UserConfig) Validate() error
- type UserSession
- func (s *UserSession) Decode(d *jx.Decoder) error
- func (s *UserSession) Encode(e *jx.Encoder)
- func (s *UserSession) GetAppName() OptString
- func (s *UserSession) GetCreatedAt() time.Time
- func (s *UserSession) GetCurrent() bool
- func (s *UserSession) GetHash() string
- func (s *UserSession) GetLocation() OptString
- func (s *UserSession) GetOfficialApp() OptBool
- func (s *UserSession) GetValid() bool
- func (s *UserSession) MarshalJSON() ([]byte, error)
- func (s *UserSession) SetAppName(val OptString)
- func (s *UserSession) SetCreatedAt(val time.Time)
- func (s *UserSession) SetCurrent(val bool)
- func (s *UserSession) SetHash(val string)
- func (s *UserSession) SetLocation(val OptString)
- func (s *UserSession) SetOfficialApp(val OptBool)
- func (s *UserSession) SetValid(val bool)
- func (s *UserSession) UnmarshalJSON(data []byte) error
- type UsersAddBotsNoContent
- type UsersProfileImageOK
- type UsersProfileImageOKHeaders
- func (s *UsersProfileImageOKHeaders) GetCacheControl() string
- func (s *UsersProfileImageOKHeaders) GetContentDisposition() string
- func (s *UsersProfileImageOKHeaders) GetContentLength() int64
- func (s *UsersProfileImageOKHeaders) GetEtag() string
- func (s *UsersProfileImageOKHeaders) GetResponse() UsersProfileImageOK
- func (s *UsersProfileImageOKHeaders) SetCacheControl(val string)
- func (s *UsersProfileImageOKHeaders) SetContentDisposition(val string)
- func (s *UsersProfileImageOKHeaders) SetContentLength(val int64)
- func (s *UsersProfileImageOKHeaders) SetEtag(val string)
- func (s *UsersProfileImageOKHeaders) SetResponse(val UsersProfileImageOK)
- type UsersProfileImageParams
- type UsersRemoveBotsNoContent
- type UsersRemoveSessionNoContent
- type UsersRemoveSessionParams
- type UsersSyncChannelsNoContent
- type UsersUpdateChannelNoContent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddBots ¶
type AddBots struct {
// List of bot tokens.
Bots []string `json:"bots"`
}
Ref: #/components/schemas/AddBots
func (*AddBots) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*AddBots) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ApiKeyAuth ¶
type ApiKeyAuth struct {
APIKey string
}
func (*ApiKeyAuth) GetAPIKey ¶
func (s *ApiKeyAuth) GetAPIKey() string
GetAPIKey returns the value of APIKey.
func (*ApiKeyAuth) SetAPIKey ¶
func (s *ApiKeyAuth) SetAPIKey(val string)
SetAPIKey sets the value of APIKey.
type ApiVersion ¶
type ApiVersion struct {
// API version.
Version string `json:"version"`
// Git commit SHA.
CommitSHA string `json:"commitSHA"`
// Go version.
GoVersion string `json:"goVersion"`
// Operating system.
Os string `json:"os"`
// Architecture.
Arch string `json:"arch"`
}
Ref: #/components/schemas/ApiVersion
func (*ApiVersion) Decode ¶
func (s *ApiVersion) Decode(d *jx.Decoder) error
Decode decodes ApiVersion from json.
func (*ApiVersion) Encode ¶
func (s *ApiVersion) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ApiVersion) GetArch ¶
func (s *ApiVersion) GetArch() string
GetArch returns the value of Arch.
func (*ApiVersion) GetCommitSHA ¶
func (s *ApiVersion) GetCommitSHA() string
GetCommitSHA returns the value of CommitSHA.
func (*ApiVersion) GetGoVersion ¶
func (s *ApiVersion) GetGoVersion() string
GetGoVersion returns the value of GoVersion.
func (*ApiVersion) GetVersion ¶
func (s *ApiVersion) GetVersion() string
GetVersion returns the value of Version.
func (*ApiVersion) MarshalJSON ¶
func (s *ApiVersion) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ApiVersion) SetArch ¶
func (s *ApiVersion) SetArch(val string)
SetArch sets the value of Arch.
func (*ApiVersion) SetCommitSHA ¶
func (s *ApiVersion) SetCommitSHA(val string)
SetCommitSHA sets the value of CommitSHA.
func (*ApiVersion) SetGoVersion ¶
func (s *ApiVersion) SetGoVersion(val string)
SetGoVersion sets the value of GoVersion.
func (*ApiVersion) SetVersion ¶
func (s *ApiVersion) SetVersion(val string)
SetVersion sets the value of Version.
func (*ApiVersion) UnmarshalJSON ¶
func (s *ApiVersion) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type AuthLoginNoContent ¶
type AuthLoginNoContent struct {
SetCookie string
}
AuthLoginNoContent is response for AuthLogin operation.
func (*AuthLoginNoContent) GetSetCookie ¶
func (s *AuthLoginNoContent) GetSetCookie() string
GetSetCookie returns the value of SetCookie.
func (*AuthLoginNoContent) SetSetCookie ¶
func (s *AuthLoginNoContent) SetSetCookie(val string)
SetSetCookie sets the value of SetCookie.
type AuthLogoutNoContent ¶
type AuthLogoutNoContent struct {
SetCookie string
}
AuthLogoutNoContent is response for AuthLogout operation.
func (*AuthLogoutNoContent) GetSetCookie ¶
func (s *AuthLogoutNoContent) GetSetCookie() string
GetSetCookie returns the value of SetCookie.
func (*AuthLogoutNoContent) SetSetCookie ¶
func (s *AuthLogoutNoContent) SetSetCookie(val string)
SetSetCookie sets the value of SetCookie.
type AuthSessionNoContent ¶
type AuthSessionNoContent struct{}
AuthSessionNoContent is response for AuthSession operation.
type AuthSessionParams ¶
type AuthSessionParams struct {
AccessToken OptString
}
AuthSessionParams is parameters of Auth_session operation.
type AuthSessionRes ¶
type AuthSessionRes interface {
// contains filtered or unexported methods
}
type AuthWsSwitchingProtocols ¶
type AuthWsSwitchingProtocols struct{}
AuthWsSwitchingProtocols is response for AuthWs operation.
type BearerAuth ¶
type BearerAuth struct {
Token string
}
func (*BearerAuth) GetToken ¶
func (s *BearerAuth) GetToken() string
GetToken returns the value of Token.
func (*BearerAuth) SetToken ¶
func (s *BearerAuth) SetToken(val string)
SetToken sets the value of Token.
type Category ¶
type Category string
Supported file categories. Ref: #/components/schemas/Category
func (Category) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*Category) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
type CategoryStats ¶
type CategoryStats struct {
// Total number of files.
TotalFiles int64 `json:"totalFiles"`
// Total size of files in bytes.
TotalSize int64 `json:"totalSize"`
// Category name.
Category CategoryStatsCategory `json:"category"`
}
Statistics for files by category. Ref: #/components/schemas/CategoryStats
func (*CategoryStats) Decode ¶
func (s *CategoryStats) Decode(d *jx.Decoder) error
Decode decodes CategoryStats from json.
func (*CategoryStats) Encode ¶
func (s *CategoryStats) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CategoryStats) GetCategory ¶
func (s *CategoryStats) GetCategory() CategoryStatsCategory
GetCategory returns the value of Category.
func (*CategoryStats) GetTotalFiles ¶
func (s *CategoryStats) GetTotalFiles() int64
GetTotalFiles returns the value of TotalFiles.
func (*CategoryStats) GetTotalSize ¶
func (s *CategoryStats) GetTotalSize() int64
GetTotalSize returns the value of TotalSize.
func (*CategoryStats) MarshalJSON ¶
func (s *CategoryStats) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CategoryStats) SetCategory ¶
func (s *CategoryStats) SetCategory(val CategoryStatsCategory)
SetCategory sets the value of Category.
func (*CategoryStats) SetTotalFiles ¶
func (s *CategoryStats) SetTotalFiles(val int64)
SetTotalFiles sets the value of TotalFiles.
func (*CategoryStats) SetTotalSize ¶
func (s *CategoryStats) SetTotalSize(val int64)
SetTotalSize sets the value of TotalSize.
func (*CategoryStats) UnmarshalJSON ¶
func (s *CategoryStats) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CategoryStats) Validate ¶
func (s *CategoryStats) Validate() error
type CategoryStatsCategory ¶
type CategoryStatsCategory string
Supported file categories.
const ( CategoryStatsCategoryArchive CategoryStatsCategory = "archive" CategoryStatsCategoryAudio CategoryStatsCategory = "audio" CategoryStatsCategoryDocument CategoryStatsCategory = "document" CategoryStatsCategoryImage CategoryStatsCategory = "image" CategoryStatsCategoryOther CategoryStatsCategory = "other" CategoryStatsCategoryVideo CategoryStatsCategory = "video" )
func (CategoryStatsCategory) AllValues ¶
func (CategoryStatsCategory) AllValues() []CategoryStatsCategory
AllValues returns all CategoryStatsCategory values.
func (*CategoryStatsCategory) Decode ¶
func (s *CategoryStatsCategory) Decode(d *jx.Decoder) error
Decode decodes CategoryStatsCategory from json.
func (CategoryStatsCategory) Encode ¶
func (s CategoryStatsCategory) Encode(e *jx.Encoder)
Encode encodes CategoryStatsCategory as json.
func (CategoryStatsCategory) MarshalJSON ¶
func (s CategoryStatsCategory) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (CategoryStatsCategory) MarshalText ¶
func (s CategoryStatsCategory) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*CategoryStatsCategory) UnmarshalJSON ¶
func (s *CategoryStatsCategory) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CategoryStatsCategory) UnmarshalText ¶
func (s *CategoryStatsCategory) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (CategoryStatsCategory) Validate ¶
func (s CategoryStatsCategory) Validate() error
type Channel ¶
type Channel struct {
// Name of the Telegram channel.
ChannelName string `json:"channelName"`
// Unique numeric identifier of the channel.
ChannelId int64 `json:"channelId"`
}
Telegram channel information. Ref: #/components/schemas/Channel
func (*Channel) GetChannelId ¶
GetChannelId returns the value of ChannelId.
func (*Channel) GetChannelName ¶
GetChannelName returns the value of ChannelName.
func (*Channel) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Channel) SetChannelId ¶
SetChannelId sets the value of ChannelId.
func (*Channel) SetChannelName ¶
SetChannelName sets the value of ChannelName.
func (*Channel) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ChannelUpdate ¶
type ChannelUpdate struct {
// Name of the Telegram channel.
ChannelName OptString `json:"channelName"`
// Unique numeric identifier of the channel.
ChannelId OptInt64 `json:"channelId"`
}
Telegram channel information. Ref: #/components/schemas/ChannelUpdate
func (*ChannelUpdate) Decode ¶
func (s *ChannelUpdate) Decode(d *jx.Decoder) error
Decode decodes ChannelUpdate from json.
func (*ChannelUpdate) Encode ¶
func (s *ChannelUpdate) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ChannelUpdate) GetChannelId ¶
func (s *ChannelUpdate) GetChannelId() OptInt64
GetChannelId returns the value of ChannelId.
func (*ChannelUpdate) GetChannelName ¶
func (s *ChannelUpdate) GetChannelName() OptString
GetChannelName returns the value of ChannelName.
func (*ChannelUpdate) MarshalJSON ¶
func (s *ChannelUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChannelUpdate) SetChannelId ¶
func (s *ChannelUpdate) SetChannelId(val OptInt64)
SetChannelId sets the value of ChannelId.
func (*ChannelUpdate) SetChannelName ¶
func (s *ChannelUpdate) SetChannelName(val OptString)
SetChannelName sets the value of ChannelName.
func (*ChannelUpdate) UnmarshalJSON ¶
func (s *ChannelUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Error ¶
type Error struct {
// Error code.
Code int `json:"code"`
// Error message.
Message string `json:"message"`
}
Standard error response. Ref: #/components/schemas/Error
func (*Error) GetMessage ¶
GetMessage returns the value of Message.
func (*Error) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Error) SetMessage ¶
SetMessage sets the value of Message.
func (*Error) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ErrorStatusCode ¶
ErrorStatusCode wraps Error with StatusCode.
func (*ErrorStatusCode) Error ¶
func (s *ErrorStatusCode) Error() string
func (*ErrorStatusCode) GetResponse ¶
func (s *ErrorStatusCode) GetResponse() Error
GetResponse returns the value of Response.
func (*ErrorStatusCode) GetStatusCode ¶
func (s *ErrorStatusCode) GetStatusCode() int
GetStatusCode returns the value of StatusCode.
func (*ErrorStatusCode) SetResponse ¶
func (s *ErrorStatusCode) SetResponse(val Error)
SetResponse sets the value of Response.
func (*ErrorStatusCode) SetStatusCode ¶
func (s *ErrorStatusCode) SetStatusCode(val int)
SetStatusCode sets the value of StatusCode.
type Event ¶
type Event struct {
// Event ID.
ID string `json:"id"`
// Event type.
Type string `json:"type"`
// Event timestamp.
CreatedAt time.Time `json:"createdAt"`
// Event Source.
Source EventSource `json:"source"`
}
Event information. Ref: #/components/schemas/Event
func (*Event) GetCreatedAt ¶
GetCreatedAt returns the value of CreatedAt.
func (*Event) GetSource ¶
func (s *Event) GetSource() EventSource
GetSource returns the value of Source.
func (*Event) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Event) SetCreatedAt ¶
SetCreatedAt sets the value of CreatedAt.
func (*Event) SetSource ¶
func (s *Event) SetSource(val EventSource)
SetSource sets the value of Source.
func (*Event) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type EventSource ¶
type EventSource struct {
// File ID.
ID string `json:"id"`
// File name.
Name string `json:"name"`
// File type.
Type EventSourceType `json:"type"`
// Parent ID.
ParentId string `json:"parentId"`
// Destination Parent ID.
DestParentId OptString `json:"destParentId"`
}
func (*EventSource) Decode ¶
func (s *EventSource) Decode(d *jx.Decoder) error
Decode decodes EventSource from json.
func (*EventSource) Encode ¶
func (s *EventSource) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*EventSource) GetDestParentId ¶
func (s *EventSource) GetDestParentId() OptString
GetDestParentId returns the value of DestParentId.
func (*EventSource) GetName ¶
func (s *EventSource) GetName() string
GetName returns the value of Name.
func (*EventSource) GetParentId ¶
func (s *EventSource) GetParentId() string
GetParentId returns the value of ParentId.
func (*EventSource) GetType ¶
func (s *EventSource) GetType() EventSourceType
GetType returns the value of Type.
func (*EventSource) MarshalJSON ¶
func (s *EventSource) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*EventSource) SetDestParentId ¶
func (s *EventSource) SetDestParentId(val OptString)
SetDestParentId sets the value of DestParentId.
func (*EventSource) SetName ¶
func (s *EventSource) SetName(val string)
SetName sets the value of Name.
func (*EventSource) SetParentId ¶
func (s *EventSource) SetParentId(val string)
SetParentId sets the value of ParentId.
func (*EventSource) SetType ¶
func (s *EventSource) SetType(val EventSourceType)
SetType sets the value of Type.
func (*EventSource) UnmarshalJSON ¶
func (s *EventSource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EventSource) Validate ¶
func (s *EventSource) Validate() error
type EventSourceType ¶
type EventSourceType string
File type.
const ( EventSourceTypeFolder EventSourceType = "folder" EventSourceTypeFile EventSourceType = "file" )
func (EventSourceType) AllValues ¶
func (EventSourceType) AllValues() []EventSourceType
AllValues returns all EventSourceType values.
func (*EventSourceType) Decode ¶
func (s *EventSourceType) Decode(d *jx.Decoder) error
Decode decodes EventSourceType from json.
func (EventSourceType) Encode ¶
func (s EventSourceType) Encode(e *jx.Encoder)
Encode encodes EventSourceType as json.
func (EventSourceType) MarshalJSON ¶
func (s EventSourceType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (EventSourceType) MarshalText ¶
func (s EventSourceType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*EventSourceType) UnmarshalJSON ¶
func (s *EventSourceType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EventSourceType) UnmarshalText ¶
func (s *EventSourceType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (EventSourceType) Validate ¶
func (s EventSourceType) Validate() error
type File ¶
type File struct {
// File ID.
ID OptString `json:"id"`
// File name.
Name string `json:"name"`
// File type.
Type FileType `json:"type"`
// File parts.
Parts []Part `json:"parts"`
// MIME type.
MimeType OptString `json:"mimeType"`
// File category.
Category OptFileCategory `json:"category"`
// Channel ID.
ChannelId OptInt64 `json:"channelId"`
// File or Folder path.
Path OptString `json:"path"`
// Parent folder ID.
ParentId OptString `json:"parentId"`
// File size in bytes.
Size OptInt64 `json:"size"`
// Encryption status.
Encrypted OptBool `json:"encrypted"`
// Last update time.
UpdatedAt OptDateTime `json:"updatedAt"`
}
File metadata. Ref: #/components/schemas/File
func (*File) GetCategory ¶
func (s *File) GetCategory() OptFileCategory
GetCategory returns the value of Category.
func (*File) GetChannelId ¶
GetChannelId returns the value of ChannelId.
func (*File) GetEncrypted ¶
GetEncrypted returns the value of Encrypted.
func (*File) GetMimeType ¶
GetMimeType returns the value of MimeType.
func (*File) GetParentId ¶
GetParentId returns the value of ParentId.
func (*File) GetUpdatedAt ¶
func (s *File) GetUpdatedAt() OptDateTime
GetUpdatedAt returns the value of UpdatedAt.
func (*File) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*File) SetCategory ¶
func (s *File) SetCategory(val OptFileCategory)
SetCategory sets the value of Category.
func (*File) SetChannelId ¶
SetChannelId sets the value of ChannelId.
func (*File) SetEncrypted ¶
SetEncrypted sets the value of Encrypted.
func (*File) SetMimeType ¶
SetMimeType sets the value of MimeType.
func (*File) SetParentId ¶
SetParentId sets the value of ParentId.
func (*File) SetUpdatedAt ¶
func (s *File) SetUpdatedAt(val OptDateTime)
SetUpdatedAt sets the value of UpdatedAt.
func (*File) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type FileCategory ¶
type FileCategory string
Supported file categories.
const ( FileCategoryArchive FileCategory = "archive" FileCategoryAudio FileCategory = "audio" FileCategoryDocument FileCategory = "document" FileCategoryImage FileCategory = "image" FileCategoryOther FileCategory = "other" FileCategoryVideo FileCategory = "video" )
func (FileCategory) AllValues ¶
func (FileCategory) AllValues() []FileCategory
AllValues returns all FileCategory values.
func (*FileCategory) Decode ¶
func (s *FileCategory) Decode(d *jx.Decoder) error
Decode decodes FileCategory from json.
func (FileCategory) Encode ¶
func (s FileCategory) Encode(e *jx.Encoder)
Encode encodes FileCategory as json.
func (FileCategory) MarshalJSON ¶
func (s FileCategory) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (FileCategory) MarshalText ¶
func (s FileCategory) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*FileCategory) UnmarshalJSON ¶
func (s *FileCategory) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*FileCategory) UnmarshalText ¶
func (s *FileCategory) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (FileCategory) Validate ¶
func (s FileCategory) Validate() error
type FileCopy ¶
type FileCopy struct {
// New file name.
NewName OptString `json:"newName"`
// Destination path for the copied file.
Destination string `json:"destination"`
// Last update time.
UpdatedAt OptDateTime `json:"updatedAt"`
}
File Copy request. Ref: #/components/schemas/FileCopy
func (*FileCopy) GetDestination ¶
GetDestination returns the value of Destination.
func (*FileCopy) GetNewName ¶
GetNewName returns the value of NewName.
func (*FileCopy) GetUpdatedAt ¶
func (s *FileCopy) GetUpdatedAt() OptDateTime
GetUpdatedAt returns the value of UpdatedAt.
func (*FileCopy) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*FileCopy) SetDestination ¶
SetDestination sets the value of Destination.
func (*FileCopy) SetNewName ¶
SetNewName sets the value of NewName.
func (*FileCopy) SetUpdatedAt ¶
func (s *FileCopy) SetUpdatedAt(val OptDateTime)
SetUpdatedAt sets the value of UpdatedAt.
func (*FileCopy) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type FileDelete ¶
type FileDelete struct {
// Array of file or folders ids to be deleted.
Ids []string `json:"ids"`
}
Delete operation request. Ref: #/components/schemas/FileDelete
func (*FileDelete) Decode ¶
func (s *FileDelete) Decode(d *jx.Decoder) error
Decode decodes FileDelete from json.
func (*FileDelete) Encode ¶
func (s *FileDelete) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*FileDelete) MarshalJSON ¶
func (s *FileDelete) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FileDelete) UnmarshalJSON ¶
func (s *FileDelete) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*FileDelete) Validate ¶
func (s *FileDelete) Validate() error
type FileList ¶
type FileList struct {
// Array of file entries in the current page.
Items []File `json:"items"`
// Pagination metadata and total count information.
Meta FileListMeta `json:"meta"`
}
Paginated file listing response with metadata. Ref: #/components/schemas/FileList
func (*FileList) GetMeta ¶
func (s *FileList) GetMeta() FileListMeta
GetMeta returns the value of Meta.
func (*FileList) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*FileList) SetMeta ¶
func (s *FileList) SetMeta(val FileListMeta)
SetMeta sets the value of Meta.
func (*FileList) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type FileListMeta ¶
type FileListMeta struct {
// Total number of items matching the query.
Count int `json:"count"`
// Total number of available pages based on limit.
TotalPages int `json:"totalPages"`
// Current page number in the pagination.
CurrentPage int `json:"currentPage"`
}
Pagination metadata containing count, page information.
func (*FileListMeta) Decode ¶
func (s *FileListMeta) Decode(d *jx.Decoder) error
Decode decodes FileListMeta from json.
func (*FileListMeta) Encode ¶
func (s *FileListMeta) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*FileListMeta) GetCount ¶
func (s *FileListMeta) GetCount() int
GetCount returns the value of Count.
func (*FileListMeta) GetCurrentPage ¶
func (s *FileListMeta) GetCurrentPage() int
GetCurrentPage returns the value of CurrentPage.
func (*FileListMeta) GetTotalPages ¶
func (s *FileListMeta) GetTotalPages() int
GetTotalPages returns the value of TotalPages.
func (*FileListMeta) MarshalJSON ¶
func (s *FileListMeta) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FileListMeta) SetCount ¶
func (s *FileListMeta) SetCount(val int)
SetCount sets the value of Count.
func (*FileListMeta) SetCurrentPage ¶
func (s *FileListMeta) SetCurrentPage(val int)
SetCurrentPage sets the value of CurrentPage.
func (*FileListMeta) SetTotalPages ¶
func (s *FileListMeta) SetTotalPages(val int)
SetTotalPages sets the value of TotalPages.
func (*FileListMeta) UnmarshalJSON ¶
func (s *FileListMeta) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*FileListMeta) Validate ¶
func (s *FileListMeta) Validate() error
type FileMkDir ¶
type FileMkDir struct {
// Directory path to be created.
Path string `json:"path"`
}
Request to create directories. Ref: #/components/schemas/FileMkDir
func (*FileMkDir) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*FileMkDir) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type FileMove ¶
type FileMove struct {
// Array of file or folders ids to be moved.
Ids []string `json:"ids"`
// Destination parent path or ID where files will be moved to.
DestinationParent string `json:"destinationParent"`
// Destination file or folder name.
DestinationName OptString `json:"destinationName"`
}
Move multiple files by ids or path. Ref: #/components/schemas/FileMove
func (*FileMove) GetDestinationName ¶
GetDestinationName returns the value of DestinationName.
func (*FileMove) GetDestinationParent ¶
GetDestinationParent returns the value of DestinationParent.
func (*FileMove) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*FileMove) SetDestinationName ¶
SetDestinationName sets the value of DestinationName.
func (*FileMove) SetDestinationParent ¶
SetDestinationParent sets the value of DestinationParent.
func (*FileMove) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type FilePartsUpdate ¶
type FilePartsUpdate struct {
// File name.
Name OptString `json:"name"`
// Parent folder ID.
ParentId OptString `json:"parentId"`
// Channel ID.
ChannelId OptInt64 `json:"channelId"`
// Upload ID.
UploadId OptString `json:"uploadId"`
// File parts.
Parts []Part `json:"parts"`
// File size in bytes.
Size int64 `json:"size"`
// Last update time.
UpdatedAt time.Time `json:"updatedAt"`
}
File parts update request. Ref: #/components/schemas/FilePartsUpdate
func (*FilePartsUpdate) Decode ¶
func (s *FilePartsUpdate) Decode(d *jx.Decoder) error
Decode decodes FilePartsUpdate from json.
func (*FilePartsUpdate) Encode ¶
func (s *FilePartsUpdate) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*FilePartsUpdate) GetChannelId ¶
func (s *FilePartsUpdate) GetChannelId() OptInt64
GetChannelId returns the value of ChannelId.
func (*FilePartsUpdate) GetName ¶
func (s *FilePartsUpdate) GetName() OptString
GetName returns the value of Name.
func (*FilePartsUpdate) GetParentId ¶
func (s *FilePartsUpdate) GetParentId() OptString
GetParentId returns the value of ParentId.
func (*FilePartsUpdate) GetParts ¶
func (s *FilePartsUpdate) GetParts() []Part
GetParts returns the value of Parts.
func (*FilePartsUpdate) GetSize ¶
func (s *FilePartsUpdate) GetSize() int64
GetSize returns the value of Size.
func (*FilePartsUpdate) GetUpdatedAt ¶
func (s *FilePartsUpdate) GetUpdatedAt() time.Time
GetUpdatedAt returns the value of UpdatedAt.
func (*FilePartsUpdate) GetUploadId ¶
func (s *FilePartsUpdate) GetUploadId() OptString
GetUploadId returns the value of UploadId.
func (*FilePartsUpdate) MarshalJSON ¶
func (s *FilePartsUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FilePartsUpdate) SetChannelId ¶
func (s *FilePartsUpdate) SetChannelId(val OptInt64)
SetChannelId sets the value of ChannelId.
func (*FilePartsUpdate) SetName ¶
func (s *FilePartsUpdate) SetName(val OptString)
SetName sets the value of Name.
func (*FilePartsUpdate) SetParentId ¶
func (s *FilePartsUpdate) SetParentId(val OptString)
SetParentId sets the value of ParentId.
func (*FilePartsUpdate) SetParts ¶
func (s *FilePartsUpdate) SetParts(val []Part)
SetParts sets the value of Parts.
func (*FilePartsUpdate) SetSize ¶
func (s *FilePartsUpdate) SetSize(val int64)
SetSize sets the value of Size.
func (*FilePartsUpdate) SetUpdatedAt ¶
func (s *FilePartsUpdate) SetUpdatedAt(val time.Time)
SetUpdatedAt sets the value of UpdatedAt.
func (*FilePartsUpdate) SetUploadId ¶
func (s *FilePartsUpdate) SetUploadId(val OptString)
SetUploadId sets the value of UploadId.
func (*FilePartsUpdate) UnmarshalJSON ¶
func (s *FilePartsUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type FileQueryOperation ¶
type FileQueryOperation string
const ( FileQueryOperationList FileQueryOperation = "list" FileQueryOperationFind FileQueryOperation = "find" )
func (FileQueryOperation) AllValues ¶
func (FileQueryOperation) AllValues() []FileQueryOperation
AllValues returns all FileQueryOperation values.
func (FileQueryOperation) MarshalText ¶
func (s FileQueryOperation) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*FileQueryOperation) UnmarshalText ¶
func (s *FileQueryOperation) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (FileQueryOperation) Validate ¶
func (s FileQueryOperation) Validate() error
type FileQueryOrder ¶
type FileQueryOrder string
const ( FileQueryOrderAsc FileQueryOrder = "asc" FileQueryOrderDesc FileQueryOrder = "desc" )
func (FileQueryOrder) AllValues ¶
func (FileQueryOrder) AllValues() []FileQueryOrder
AllValues returns all FileQueryOrder values.
func (FileQueryOrder) MarshalText ¶
func (s FileQueryOrder) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*FileQueryOrder) UnmarshalText ¶
func (s *FileQueryOrder) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (FileQueryOrder) Validate ¶
func (s FileQueryOrder) Validate() error
type FileQuerySearchType ¶
type FileQuerySearchType string
const ( FileQuerySearchTypeText FileQuerySearchType = "text" FileQuerySearchTypeRegex FileQuerySearchType = "regex" )
func (FileQuerySearchType) AllValues ¶
func (FileQuerySearchType) AllValues() []FileQuerySearchType
AllValues returns all FileQuerySearchType values.
func (FileQuerySearchType) MarshalText ¶
func (s FileQuerySearchType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*FileQuerySearchType) UnmarshalText ¶
func (s *FileQuerySearchType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (FileQuerySearchType) Validate ¶
func (s FileQuerySearchType) Validate() error
type FileQuerySort ¶
type FileQuerySort string
const ( FileQuerySortName FileQuerySort = "name" FileQuerySortUpdatedAt FileQuerySort = "updatedAt" FileQuerySortSize FileQuerySort = "size" FileQuerySortID FileQuerySort = "id" )
func (FileQuerySort) AllValues ¶
func (FileQuerySort) AllValues() []FileQuerySort
AllValues returns all FileQuerySort values.
func (FileQuerySort) MarshalText ¶
func (s FileQuerySort) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*FileQuerySort) UnmarshalText ¶
func (s *FileQuerySort) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (FileQuerySort) Validate ¶
func (s FileQuerySort) Validate() error
type FileQueryStatus ¶
type FileQueryStatus string
const ( FileQueryStatusActive FileQueryStatus = "active" FileQueryStatusPendingDeletion FileQueryStatus = "pending_deletion" )
func (FileQueryStatus) AllValues ¶
func (FileQueryStatus) AllValues() []FileQueryStatus
AllValues returns all FileQueryStatus values.
func (FileQueryStatus) MarshalText ¶
func (s FileQueryStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*FileQueryStatus) UnmarshalText ¶
func (s *FileQueryStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (FileQueryStatus) Validate ¶
func (s FileQueryStatus) Validate() error
type FileQueryType ¶
type FileQueryType string
const ( FileQueryTypeFolder FileQueryType = "folder" FileQueryTypeFile FileQueryType = "file" )
func (FileQueryType) AllValues ¶
func (FileQueryType) AllValues() []FileQueryType
AllValues returns all FileQueryType values.
func (FileQueryType) MarshalText ¶
func (s FileQueryType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*FileQueryType) UnmarshalText ¶
func (s *FileQueryType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (FileQueryType) Validate ¶
func (s FileQueryType) Validate() error
type FileShare ¶
type FileShare struct {
ID string `json:"id"`
Protected bool `json:"protected"`
UserId OptInt64 `json:"userId"`
Type FileShareType `json:"type"`
Name string `json:"name"`
ExpiresAt OptDateTime `json:"expiresAt"`
}
File sharing information and settings. Ref: #/components/schemas/FileShare
func (*FileShare) GetExpiresAt ¶
func (s *FileShare) GetExpiresAt() OptDateTime
GetExpiresAt returns the value of ExpiresAt.
func (*FileShare) GetProtected ¶
GetProtected returns the value of Protected.
func (*FileShare) GetType ¶
func (s *FileShare) GetType() FileShareType
GetType returns the value of Type.
func (*FileShare) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*FileShare) SetExpiresAt ¶
func (s *FileShare) SetExpiresAt(val OptDateTime)
SetExpiresAt sets the value of ExpiresAt.
func (*FileShare) SetProtected ¶
SetProtected sets the value of Protected.
func (*FileShare) SetType ¶
func (s *FileShare) SetType(val FileShareType)
SetType sets the value of Type.
func (*FileShare) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type FileShareCreate ¶
type FileShareCreate struct {
Password OptString `json:"password"`
ExpiresAt OptDateTime `json:"expiresAt"`
}
File share creation request. Ref: #/components/schemas/FileShareCreate
func (*FileShareCreate) Decode ¶
func (s *FileShareCreate) Decode(d *jx.Decoder) error
Decode decodes FileShareCreate from json.
func (*FileShareCreate) Encode ¶
func (s *FileShareCreate) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*FileShareCreate) GetExpiresAt ¶
func (s *FileShareCreate) GetExpiresAt() OptDateTime
GetExpiresAt returns the value of ExpiresAt.
func (*FileShareCreate) GetPassword ¶
func (s *FileShareCreate) GetPassword() OptString
GetPassword returns the value of Password.
func (*FileShareCreate) MarshalJSON ¶
func (s *FileShareCreate) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FileShareCreate) SetExpiresAt ¶
func (s *FileShareCreate) SetExpiresAt(val OptDateTime)
SetExpiresAt sets the value of ExpiresAt.
func (*FileShareCreate) SetPassword ¶
func (s *FileShareCreate) SetPassword(val OptString)
SetPassword sets the value of Password.
func (*FileShareCreate) UnmarshalJSON ¶
func (s *FileShareCreate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type FileShareInfo ¶
type FileShareInfo struct {
Name string `json:"name"`
Type FileShareInfoType `json:"type"`
ExpiresAt OptDateTime `json:"expiresAt"`
UserId int64 `json:"userId"`
Protected bool `json:"protected"`
}
Ref: #/components/schemas/FileShareInfo
func (*FileShareInfo) Decode ¶
func (s *FileShareInfo) Decode(d *jx.Decoder) error
Decode decodes FileShareInfo from json.
func (*FileShareInfo) Encode ¶
func (s *FileShareInfo) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*FileShareInfo) GetExpiresAt ¶
func (s *FileShareInfo) GetExpiresAt() OptDateTime
GetExpiresAt returns the value of ExpiresAt.
func (*FileShareInfo) GetName ¶
func (s *FileShareInfo) GetName() string
GetName returns the value of Name.
func (*FileShareInfo) GetProtected ¶
func (s *FileShareInfo) GetProtected() bool
GetProtected returns the value of Protected.
func (*FileShareInfo) GetType ¶
func (s *FileShareInfo) GetType() FileShareInfoType
GetType returns the value of Type.
func (*FileShareInfo) GetUserId ¶
func (s *FileShareInfo) GetUserId() int64
GetUserId returns the value of UserId.
func (*FileShareInfo) MarshalJSON ¶
func (s *FileShareInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FileShareInfo) SetExpiresAt ¶
func (s *FileShareInfo) SetExpiresAt(val OptDateTime)
SetExpiresAt sets the value of ExpiresAt.
func (*FileShareInfo) SetName ¶
func (s *FileShareInfo) SetName(val string)
SetName sets the value of Name.
func (*FileShareInfo) SetProtected ¶
func (s *FileShareInfo) SetProtected(val bool)
SetProtected sets the value of Protected.
func (*FileShareInfo) SetType ¶
func (s *FileShareInfo) SetType(val FileShareInfoType)
SetType sets the value of Type.
func (*FileShareInfo) SetUserId ¶
func (s *FileShareInfo) SetUserId(val int64)
SetUserId sets the value of UserId.
func (*FileShareInfo) UnmarshalJSON ¶
func (s *FileShareInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*FileShareInfo) Validate ¶
func (s *FileShareInfo) Validate() error
type FileShareInfoType ¶
type FileShareInfoType string
File type.
const ( )
func (FileShareInfoType) AllValues ¶
func (FileShareInfoType) AllValues() []FileShareInfoType
AllValues returns all FileShareInfoType values.
func (*FileShareInfoType) Decode ¶
func (s *FileShareInfoType) Decode(d *jx.Decoder) error
Decode decodes FileShareInfoType from json.
func (FileShareInfoType) Encode ¶
func (s FileShareInfoType) Encode(e *jx.Encoder)
Encode encodes FileShareInfoType as json.
func (FileShareInfoType) MarshalJSON ¶
func (s FileShareInfoType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (FileShareInfoType) MarshalText ¶
func (s FileShareInfoType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*FileShareInfoType) UnmarshalJSON ¶
func (s *FileShareInfoType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*FileShareInfoType) UnmarshalText ¶
func (s *FileShareInfoType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (FileShareInfoType) Validate ¶
func (s FileShareInfoType) Validate() error
type FileShareType ¶
type FileShareType string
File type.
const ( )
func (FileShareType) AllValues ¶
func (FileShareType) AllValues() []FileShareType
AllValues returns all FileShareType values.
func (*FileShareType) Decode ¶
func (s *FileShareType) Decode(d *jx.Decoder) error
Decode decodes FileShareType from json.
func (FileShareType) Encode ¶
func (s FileShareType) Encode(e *jx.Encoder)
Encode encodes FileShareType as json.
func (FileShareType) MarshalJSON ¶
func (s FileShareType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (FileShareType) MarshalText ¶
func (s FileShareType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*FileShareType) UnmarshalJSON ¶
func (s *FileShareType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*FileShareType) UnmarshalText ¶
func (s *FileShareType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (FileShareType) Validate ¶
func (s FileShareType) Validate() error
type FileType ¶
type FileType string
File type.
func (FileType) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (FileType) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*FileType) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
func (*FileType) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
type FileUpdate ¶
type FileUpdate struct {
// File name.
Name OptString `json:"name"`
// File parts.
Parts []Part `json:"parts"`
// File size in bytes.
Size OptInt64 `json:"size"`
// Last update time.
UpdatedAt OptDateTime `json:"updatedAt"`
}
File update request. Ref: #/components/schemas/FileUpdate
func (*FileUpdate) Decode ¶
func (s *FileUpdate) Decode(d *jx.Decoder) error
Decode decodes FileUpdate from json.
func (*FileUpdate) Encode ¶
func (s *FileUpdate) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*FileUpdate) GetName ¶
func (s *FileUpdate) GetName() OptString
GetName returns the value of Name.
func (*FileUpdate) GetParts ¶
func (s *FileUpdate) GetParts() []Part
GetParts returns the value of Parts.
func (*FileUpdate) GetSize ¶
func (s *FileUpdate) GetSize() OptInt64
GetSize returns the value of Size.
func (*FileUpdate) GetUpdatedAt ¶
func (s *FileUpdate) GetUpdatedAt() OptDateTime
GetUpdatedAt returns the value of UpdatedAt.
func (*FileUpdate) MarshalJSON ¶
func (s *FileUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*FileUpdate) SetName ¶
func (s *FileUpdate) SetName(val OptString)
SetName sets the value of Name.
func (*FileUpdate) SetParts ¶
func (s *FileUpdate) SetParts(val []Part)
SetParts sets the value of Parts.
func (*FileUpdate) SetSize ¶
func (s *FileUpdate) SetSize(val OptInt64)
SetSize sets the value of Size.
func (*FileUpdate) SetUpdatedAt ¶
func (s *FileUpdate) SetUpdatedAt(val OptDateTime)
SetUpdatedAt sets the value of UpdatedAt.
func (*FileUpdate) UnmarshalJSON ¶
func (s *FileUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type FilesCopyParams ¶
type FilesCopyParams struct {
ID string
}
FilesCopyParams is parameters of Files_copy operation.
type FilesCreateShareCreated ¶
type FilesCreateShareCreated struct{}
FilesCreateShareCreated is response for FilesCreateShare operation.
type FilesCreateShareParams ¶
type FilesCreateShareParams struct {
}
FilesCreateShareParams is parameters of Files_createShare operation.
type FilesDeleteNoContent ¶
type FilesDeleteNoContent struct{}
FilesDeleteNoContent is response for FilesDelete operation.
type FilesDeleteShareNoContent ¶
type FilesDeleteShareNoContent struct{}
FilesDeleteShareNoContent is response for FilesDeleteShare operation.
type FilesDeleteShareParams ¶
type FilesDeleteShareParams struct {
}
FilesDeleteShareParams is parameters of Files_deleteShare operation.
type FilesEditShareNoContent ¶
type FilesEditShareNoContent struct{}
FilesEditShareNoContent is response for FilesEditShare operation.
type FilesEditShareParams ¶
type FilesEditShareParams struct {
}
FilesEditShareParams is parameters of Files_editShare operation.
type FilesGetByIdParams ¶
type FilesGetByIdParams struct {
ID string
}
FilesGetByIdParams is parameters of Files_getById operation.
type FilesListParams ¶
type FilesListParams struct {
// File name filter.
Name OptString
// Search query.
Query OptString
// Search type.
SearchType OptFileQuerySearchType
// File type.
Type OptFileQueryType
// File path.
Path OptString
// Operation.
Operation OptFileQueryOperation
// File Status.
Status OptFileQueryStatus
// Enable deep search.
DeepSearch OptBool
Shared OptBool
// Parent folder ID.
ParentId OptString
// File category.
Category []Category
// UpdatedAt Filter supports operator eq, gt, lt, gte, lte.
UpdatedAt OptString
// Sort field.
Sort OptFileQuerySort
// Sort order.
Order OptFileQueryOrder
// Items per page.
Limit OptInt
// Page number.
Page OptInt
}
FilesListParams is parameters of Files_list operation.
type FilesMkdirNoContent ¶
type FilesMkdirNoContent struct{}
FilesMkdirNoContent is response for FilesMkdir operation.
type FilesMoveNoContent ¶
type FilesMoveNoContent struct{}
FilesMoveNoContent is response for FilesMove operation.
type FilesShareByidParams ¶
type FilesShareByidParams struct {
}
FilesShareByidParams is parameters of Files_shareByid operation.
type FilesStreamDownload ¶
type FilesStreamDownload string
const ( FilesStreamDownload0 FilesStreamDownload = "0" FilesStreamDownload1 FilesStreamDownload = "1" )
func (FilesStreamDownload) AllValues ¶
func (FilesStreamDownload) AllValues() []FilesStreamDownload
AllValues returns all FilesStreamDownload values.
func (FilesStreamDownload) MarshalText ¶
func (s FilesStreamDownload) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*FilesStreamDownload) UnmarshalText ¶
func (s *FilesStreamDownload) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (FilesStreamDownload) Validate ¶
func (s FilesStreamDownload) Validate() error
type FilesStreamOK ¶
type FilesStreamOKAcceptRanges ¶
type FilesStreamOKAcceptRanges string
const (
FilesStreamOKAcceptRangesBytes FilesStreamOKAcceptRanges = "bytes"
)
func (FilesStreamOKAcceptRanges) AllValues ¶
func (FilesStreamOKAcceptRanges) AllValues() []FilesStreamOKAcceptRanges
AllValues returns all FilesStreamOKAcceptRanges values.
func (FilesStreamOKAcceptRanges) MarshalText ¶
func (s FilesStreamOKAcceptRanges) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*FilesStreamOKAcceptRanges) UnmarshalText ¶
func (s *FilesStreamOKAcceptRanges) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (FilesStreamOKAcceptRanges) Validate ¶
func (s FilesStreamOKAcceptRanges) Validate() error
type FilesStreamOKHeaders ¶
type FilesStreamOKHeaders struct {
AcceptRanges FilesStreamOKAcceptRanges
ContentDisposition string
ContentLength string
ContentRange OptString
ContentType string
Etag string
LastModified string
Response FilesStreamOK
}
FilesStreamOKHeaders wraps FilesStreamOK with response headers.
func (*FilesStreamOKHeaders) GetAcceptRanges ¶
func (s *FilesStreamOKHeaders) GetAcceptRanges() FilesStreamOKAcceptRanges
GetAcceptRanges returns the value of AcceptRanges.
func (*FilesStreamOKHeaders) GetContentDisposition ¶
func (s *FilesStreamOKHeaders) GetContentDisposition() string
GetContentDisposition returns the value of ContentDisposition.
func (*FilesStreamOKHeaders) GetContentLength ¶
func (s *FilesStreamOKHeaders) GetContentLength() string
GetContentLength returns the value of ContentLength.
func (*FilesStreamOKHeaders) GetContentRange ¶
func (s *FilesStreamOKHeaders) GetContentRange() OptString
GetContentRange returns the value of ContentRange.
func (*FilesStreamOKHeaders) GetContentType ¶
func (s *FilesStreamOKHeaders) GetContentType() string
GetContentType returns the value of ContentType.
func (*FilesStreamOKHeaders) GetEtag ¶
func (s *FilesStreamOKHeaders) GetEtag() string
GetEtag returns the value of Etag.
func (*FilesStreamOKHeaders) GetLastModified ¶
func (s *FilesStreamOKHeaders) GetLastModified() string
GetLastModified returns the value of LastModified.
func (*FilesStreamOKHeaders) GetResponse ¶
func (s *FilesStreamOKHeaders) GetResponse() FilesStreamOK
GetResponse returns the value of Response.
func (*FilesStreamOKHeaders) SetAcceptRanges ¶
func (s *FilesStreamOKHeaders) SetAcceptRanges(val FilesStreamOKAcceptRanges)
SetAcceptRanges sets the value of AcceptRanges.
func (*FilesStreamOKHeaders) SetContentDisposition ¶
func (s *FilesStreamOKHeaders) SetContentDisposition(val string)
SetContentDisposition sets the value of ContentDisposition.
func (*FilesStreamOKHeaders) SetContentLength ¶
func (s *FilesStreamOKHeaders) SetContentLength(val string)
SetContentLength sets the value of ContentLength.
func (*FilesStreamOKHeaders) SetContentRange ¶
func (s *FilesStreamOKHeaders) SetContentRange(val OptString)
SetContentRange sets the value of ContentRange.
func (*FilesStreamOKHeaders) SetContentType ¶
func (s *FilesStreamOKHeaders) SetContentType(val string)
SetContentType sets the value of ContentType.
func (*FilesStreamOKHeaders) SetEtag ¶
func (s *FilesStreamOKHeaders) SetEtag(val string)
SetEtag sets the value of Etag.
func (*FilesStreamOKHeaders) SetLastModified ¶
func (s *FilesStreamOKHeaders) SetLastModified(val string)
SetLastModified sets the value of LastModified.
func (*FilesStreamOKHeaders) SetResponse ¶
func (s *FilesStreamOKHeaders) SetResponse(val FilesStreamOK)
SetResponse sets the value of Response.
func (*FilesStreamOKHeaders) Validate ¶
func (s *FilesStreamOKHeaders) Validate() error
type FilesStreamParams ¶
type FilesStreamParams struct {
ID string
Name string
Download OptFilesStreamDownload
Hash OptString
Range OptString
AccessToken OptString
}
FilesStreamParams is parameters of Files_stream operation.
type FilesStreamPartialContentAcceptRanges ¶
type FilesStreamPartialContentAcceptRanges string
const (
FilesStreamPartialContentAcceptRangesBytes FilesStreamPartialContentAcceptRanges = "bytes"
)
func (FilesStreamPartialContentAcceptRanges) AllValues ¶
func (FilesStreamPartialContentAcceptRanges) AllValues() []FilesStreamPartialContentAcceptRanges
AllValues returns all FilesStreamPartialContentAcceptRanges values.
func (FilesStreamPartialContentAcceptRanges) MarshalText ¶
func (s FilesStreamPartialContentAcceptRanges) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*FilesStreamPartialContentAcceptRanges) UnmarshalText ¶
func (s *FilesStreamPartialContentAcceptRanges) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (FilesStreamPartialContentAcceptRanges) Validate ¶
func (s FilesStreamPartialContentAcceptRanges) Validate() error
type FilesStreamPartialContentHeaders ¶
type FilesStreamPartialContentHeaders struct {
AcceptRanges FilesStreamPartialContentAcceptRanges
ContentDisposition string
ContentLength string
ContentRange OptString
ContentType string
Etag string
LastModified string
Response FilesStreamPartialContent
}
FilesStreamPartialContentHeaders wraps FilesStreamPartialContent with response headers.
func (*FilesStreamPartialContentHeaders) GetAcceptRanges ¶
func (s *FilesStreamPartialContentHeaders) GetAcceptRanges() FilesStreamPartialContentAcceptRanges
GetAcceptRanges returns the value of AcceptRanges.
func (*FilesStreamPartialContentHeaders) GetContentDisposition ¶
func (s *FilesStreamPartialContentHeaders) GetContentDisposition() string
GetContentDisposition returns the value of ContentDisposition.
func (*FilesStreamPartialContentHeaders) GetContentLength ¶
func (s *FilesStreamPartialContentHeaders) GetContentLength() string
GetContentLength returns the value of ContentLength.
func (*FilesStreamPartialContentHeaders) GetContentRange ¶
func (s *FilesStreamPartialContentHeaders) GetContentRange() OptString
GetContentRange returns the value of ContentRange.
func (*FilesStreamPartialContentHeaders) GetContentType ¶
func (s *FilesStreamPartialContentHeaders) GetContentType() string
GetContentType returns the value of ContentType.
func (*FilesStreamPartialContentHeaders) GetEtag ¶
func (s *FilesStreamPartialContentHeaders) GetEtag() string
GetEtag returns the value of Etag.
func (*FilesStreamPartialContentHeaders) GetLastModified ¶
func (s *FilesStreamPartialContentHeaders) GetLastModified() string
GetLastModified returns the value of LastModified.
func (*FilesStreamPartialContentHeaders) GetResponse ¶
func (s *FilesStreamPartialContentHeaders) GetResponse() FilesStreamPartialContent
GetResponse returns the value of Response.
func (*FilesStreamPartialContentHeaders) SetAcceptRanges ¶
func (s *FilesStreamPartialContentHeaders) SetAcceptRanges(val FilesStreamPartialContentAcceptRanges)
SetAcceptRanges sets the value of AcceptRanges.
func (*FilesStreamPartialContentHeaders) SetContentDisposition ¶
func (s *FilesStreamPartialContentHeaders) SetContentDisposition(val string)
SetContentDisposition sets the value of ContentDisposition.
func (*FilesStreamPartialContentHeaders) SetContentLength ¶
func (s *FilesStreamPartialContentHeaders) SetContentLength(val string)
SetContentLength sets the value of ContentLength.
func (*FilesStreamPartialContentHeaders) SetContentRange ¶
func (s *FilesStreamPartialContentHeaders) SetContentRange(val OptString)
SetContentRange sets the value of ContentRange.
func (*FilesStreamPartialContentHeaders) SetContentType ¶
func (s *FilesStreamPartialContentHeaders) SetContentType(val string)
SetContentType sets the value of ContentType.
func (*FilesStreamPartialContentHeaders) SetEtag ¶
func (s *FilesStreamPartialContentHeaders) SetEtag(val string)
SetEtag sets the value of Etag.
func (*FilesStreamPartialContentHeaders) SetLastModified ¶
func (s *FilesStreamPartialContentHeaders) SetLastModified(val string)
SetLastModified sets the value of LastModified.
func (*FilesStreamPartialContentHeaders) SetResponse ¶
func (s *FilesStreamPartialContentHeaders) SetResponse(val FilesStreamPartialContent)
SetResponse sets the value of Response.
func (*FilesStreamPartialContentHeaders) Validate ¶
func (s *FilesStreamPartialContentHeaders) Validate() error
type FilesStreamRes ¶
type FilesStreamRes interface {
// contains filtered or unexported methods
}
type FilesUpdateParams ¶
type FilesUpdateParams struct {
ID string
}
FilesUpdateParams is parameters of Files_update operation.
type FilesUpdatePartsNoContent ¶
type FilesUpdatePartsNoContent struct{}
FilesUpdatePartsNoContent is response for FilesUpdateParts operation.
type FilesUpdatePartsParams ¶
type FilesUpdatePartsParams struct {
ID string
}
FilesUpdatePartsParams is parameters of Files_updateParts operation.
type Handler ¶
type Handler interface {
// AuthLogin implements Auth_login operation.
//
// Login.
//
// POST /auth/login
AuthLogin(ctx context.Context, req *SessionCreate) (*AuthLoginNoContent, error)
// AuthLogout implements Auth_logout operation.
//
// Logout.
//
// POST /auth/logout
AuthLogout(ctx context.Context) (*AuthLogoutNoContent, error)
// AuthSession implements Auth_session operation.
//
// Get session information.
//
// GET /auth/session
AuthSession(ctx context.Context, params AuthSessionParams) (AuthSessionRes, error)
// AuthWs implements Auth_ws operation.
//
// Websocket QR Login.
//
// GET /auth/ws
AuthWs(ctx context.Context) error
// EventsGetEvents implements Events_getEvents operation.
//
// Get events.
//
// GET /events
EventsGetEvents(ctx context.Context) ([]Event, error)
// FilesCategoryStats implements Files_categoryStats operation.
//
// Get category stats.
//
// GET /files/categories
FilesCategoryStats(ctx context.Context) ([]CategoryStats, error)
// FilesCopy implements Files_copy operation.
//
// Copy file.
//
// POST /files/{id}/copy
FilesCopy(ctx context.Context, req *FileCopy, params FilesCopyParams) (*File, error)
// FilesCreate implements Files_create operation.
//
// Create a new file.
//
// POST /files
FilesCreate(ctx context.Context, req *File) (*File, error)
//
// Create a share for the file.
//
// POST /files/{id}/share
FilesCreateShare(ctx context.Context, req *FileShareCreate, params FilesCreateShareParams) error
// FilesDelete implements Files_delete operation.
//
// Delete files.
//
// POST /files/delete
FilesDelete(ctx context.Context, req *FileDelete) error
//
// Delete share.
//
// DELETE /files/{id}/share
FilesDeleteShare(ctx context.Context, params FilesDeleteShareParams) error
//
// Edit share.
//
// PATCH /files/{id}/share
FilesEditShare(ctx context.Context, req *FileShareCreate, params FilesEditShareParams) error
// FilesGetById implements Files_getById operation.
//
// Get file by ID.
//
// GET /files/{id}
FilesGetById(ctx context.Context, params FilesGetByIdParams) (*File, error)
// FilesList implements Files_list operation.
//
// List all files.
//
// GET /files
FilesList(ctx context.Context, params FilesListParams) (*FileList, error)
// FilesMkdir implements Files_mkdir operation.
//
// Create Folders.
//
// POST /files/mkdir
FilesMkdir(ctx context.Context, req *FileMkDir) error
// FilesMove implements Files_move operation.
//
// Move files.
//
// POST /files/move
FilesMove(ctx context.Context, req *FileMove) error
//
// Get share by file ID.
//
// GET /files/{id}/share
FilesShareByid(ctx context.Context, params FilesShareByidParams) (*FileShare, error)
// FilesStream implements Files_stream operation.
//
// Stream or Download file.
//
// GET /files/{id}/{name}
FilesStream(ctx context.Context, params FilesStreamParams) (FilesStreamRes, error)
// FilesUpdate implements Files_update operation.
//
// Update file.
//
// PATCH /files/{id}
FilesUpdate(ctx context.Context, req *FileUpdate, params FilesUpdateParams) (*File, error)
// FilesUpdateParts implements Files_updateParts operation.
//
// Update file parts.
//
// PUT /files/{id}/parts
FilesUpdateParts(ctx context.Context, req *FilePartsUpdate, params FilesUpdatePartsParams) error
//
// Get share by ID.
//
// GET /shares/{id}
SharesGetById(ctx context.Context, params SharesGetByIdParams) (*FileShareInfo, error)
//
// List files in share.
//
// GET /shares/{id}/files
SharesListFiles(ctx context.Context, params SharesListFilesParams) (*FileList, error)
//
// Stream or Download shared file.
//
// GET /shares/{id}/files/{fileId}/{name}
SharesStream(ctx context.Context, params SharesStreamParams) (SharesStreamRes, error)
//
// Unlock share.
//
// POST /shares/{id}/unlock
SharesUnlock(ctx context.Context, req *ShareUnlock, params SharesUnlockParams) error
// UploadsDelete implements Uploads_delete operation.
//
// Delete uploaded file.
//
// DELETE /uploads/{id}
UploadsDelete(ctx context.Context, params UploadsDeleteParams) error
// UploadsPartsById implements Uploads_partsById operation.
//
// Get uploaded parts by ID.
//
// GET /uploads/{id}
UploadsPartsById(ctx context.Context, params UploadsPartsByIdParams) ([]UploadPart, error)
// UploadsStats implements Uploads_stats operation.
//
// Get upload stats.
//
// GET /uploads/stats
UploadsStats(ctx context.Context, params UploadsStatsParams) ([]UploadStats, error)
// UploadsUpload implements Uploads_upload operation.
//
// Upload file.
//
// POST /uploads/{id}
UploadsUpload(ctx context.Context, req *UploadsUploadReqWithContentType, params UploadsUploadParams) (*UploadPart, error)
// UsersAddBots implements Users_addBots operation.
//
// Add bots to user account.
//
// POST /users/bots
UsersAddBots(ctx context.Context, req *AddBots) error
// UsersListChannels implements Users_listChannels operation.
//
// List user channels.
//
// GET /users/channels
UsersListChannels(ctx context.Context) ([]Channel, error)
// UsersListSessions implements Users_listSessions operation.
//
// List user sessions.
//
// GET /users/sessions
UsersListSessions(ctx context.Context) ([]UserSession, error)
// UsersProfileImage implements Users_profileImage operation.
//
// Get user profile photo.
//
// GET /users/profile/{name}
UsersProfileImage(ctx context.Context, params UsersProfileImageParams) (*UsersProfileImageOKHeaders, error)
// UsersRemoveBots implements Users_removeBots operation.
//
// Remove bots from user account.
//
// DELETE /users/bots
UsersRemoveBots(ctx context.Context) error
// UsersRemoveSession implements Users_removeSession operation.
//
// Remove user session.
//
// DELETE /users/sessions/{id}
UsersRemoveSession(ctx context.Context, params UsersRemoveSessionParams) error
// UsersStats implements Users_stats operation.
//
// Get user config.
//
// GET /users/config
UsersStats(ctx context.Context) (*UserConfig, error)
// UsersSyncChannels implements Users_syncChannels operation.
//
// Sync user channels.
//
// PATCH /users/channels/sync
UsersSyncChannels(ctx context.Context) error
// UsersUpdateChannel implements Users_updateChannel operation.
//
// Update user channel.
//
// PATCH /users/channels
UsersUpdateChannel(ctx context.Context, req *ChannelUpdate) error
// VersionVersion implements Version_version operation.
//
// Get API version.
//
// GET /version
VersionVersion(ctx context.Context) (*ApiVersion, error)
// NewError creates *ErrorStatusCode from error returned by handler.
//
// Used for common default response.
NewError(ctx context.Context, err error) *ErrorStatusCode
}
Handler handles operations described by OpenAPI v3 specification.
type OperationName ¶
type OperationName = string
OperationName is the ogen operation name
const ( AuthLoginOperation OperationName = "AuthLogin" AuthLogoutOperation OperationName = "AuthLogout" AuthSessionOperation OperationName = "AuthSession" AuthWsOperation OperationName = "AuthWs" EventsGetEventsOperation OperationName = "EventsGetEvents" FilesCategoryStatsOperation OperationName = "FilesCategoryStats" FilesCopyOperation OperationName = "FilesCopy" FilesCreateOperation OperationName = "FilesCreate" FilesDeleteOperation OperationName = "FilesDelete" FilesGetByIdOperation OperationName = "FilesGetById" FilesListOperation OperationName = "FilesList" FilesMkdirOperation OperationName = "FilesMkdir" FilesMoveOperation OperationName = "FilesMove" FilesStreamOperation OperationName = "FilesStream" FilesUpdateOperation OperationName = "FilesUpdate" FilesUpdatePartsOperation OperationName = "FilesUpdateParts" UploadsDeleteOperation OperationName = "UploadsDelete" UploadsPartsByIdOperation OperationName = "UploadsPartsById" UploadsStatsOperation OperationName = "UploadsStats" UploadsUploadOperation OperationName = "UploadsUpload" UsersAddBotsOperation OperationName = "UsersAddBots" UsersListChannelsOperation OperationName = "UsersListChannels" UsersListSessionsOperation OperationName = "UsersListSessions" UsersProfileImageOperation OperationName = "UsersProfileImage" UsersRemoveBotsOperation OperationName = "UsersRemoveBots" UsersRemoveSessionOperation OperationName = "UsersRemoveSession" UsersStatsOperation OperationName = "UsersStats" UsersSyncChannelsOperation OperationName = "UsersSyncChannels" UsersUpdateChannelOperation OperationName = "UsersUpdateChannel" VersionVersionOperation OperationName = "VersionVersion" )
type OptBool ¶
OptBool is optional bool.
func NewOptBool ¶
NewOptBool returns new OptBool with value set to v.
func (OptBool) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptBool) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptDateTime ¶
OptDateTime is optional time.Time.
func NewOptDateTime ¶
func NewOptDateTime(v time.Time) OptDateTime
NewOptDateTime returns new OptDateTime with value set to v.
func (OptDateTime) Get ¶
func (o OptDateTime) Get() (v time.Time, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptDateTime) IsSet ¶
func (o OptDateTime) IsSet() bool
IsSet returns true if OptDateTime was set.
func (OptDateTime) MarshalJSON ¶
func (s OptDateTime) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptDateTime) Or ¶
func (o OptDateTime) Or(d time.Time) time.Time
Or returns value if set, or given parameter if does not.
func (*OptDateTime) UnmarshalJSON ¶
func (s *OptDateTime) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptFileCategory ¶
type OptFileCategory struct {
Value FileCategory
Set bool
}
OptFileCategory is optional FileCategory.
func NewOptFileCategory ¶
func NewOptFileCategory(v FileCategory) OptFileCategory
NewOptFileCategory returns new OptFileCategory with value set to v.
func (*OptFileCategory) Decode ¶
func (o *OptFileCategory) Decode(d *jx.Decoder) error
Decode decodes FileCategory from json.
func (OptFileCategory) Encode ¶
func (o OptFileCategory) Encode(e *jx.Encoder)
Encode encodes FileCategory as json.
func (OptFileCategory) Get ¶
func (o OptFileCategory) Get() (v FileCategory, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptFileCategory) IsSet ¶
func (o OptFileCategory) IsSet() bool
IsSet returns true if OptFileCategory was set.
func (OptFileCategory) MarshalJSON ¶
func (s OptFileCategory) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptFileCategory) Or ¶
func (o OptFileCategory) Or(d FileCategory) FileCategory
Or returns value if set, or given parameter if does not.
func (*OptFileCategory) SetTo ¶
func (o *OptFileCategory) SetTo(v FileCategory)
SetTo sets value to v.
func (*OptFileCategory) UnmarshalJSON ¶
func (s *OptFileCategory) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptFileQueryOperation ¶
type OptFileQueryOperation struct {
Value FileQueryOperation
Set bool
}
OptFileQueryOperation is optional FileQueryOperation.
func NewOptFileQueryOperation ¶
func NewOptFileQueryOperation(v FileQueryOperation) OptFileQueryOperation
NewOptFileQueryOperation returns new OptFileQueryOperation with value set to v.
func (OptFileQueryOperation) Get ¶
func (o OptFileQueryOperation) Get() (v FileQueryOperation, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptFileQueryOperation) IsSet ¶
func (o OptFileQueryOperation) IsSet() bool
IsSet returns true if OptFileQueryOperation was set.
func (OptFileQueryOperation) Or ¶
func (o OptFileQueryOperation) Or(d FileQueryOperation) FileQueryOperation
Or returns value if set, or given parameter if does not.
func (*OptFileQueryOperation) SetTo ¶
func (o *OptFileQueryOperation) SetTo(v FileQueryOperation)
SetTo sets value to v.
type OptFileQueryOrder ¶
type OptFileQueryOrder struct {
Value FileQueryOrder
Set bool
}
OptFileQueryOrder is optional FileQueryOrder.
func NewOptFileQueryOrder ¶
func NewOptFileQueryOrder(v FileQueryOrder) OptFileQueryOrder
NewOptFileQueryOrder returns new OptFileQueryOrder with value set to v.
func (OptFileQueryOrder) Get ¶
func (o OptFileQueryOrder) Get() (v FileQueryOrder, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptFileQueryOrder) IsSet ¶
func (o OptFileQueryOrder) IsSet() bool
IsSet returns true if OptFileQueryOrder was set.
func (OptFileQueryOrder) Or ¶
func (o OptFileQueryOrder) Or(d FileQueryOrder) FileQueryOrder
Or returns value if set, or given parameter if does not.
func (*OptFileQueryOrder) SetTo ¶
func (o *OptFileQueryOrder) SetTo(v FileQueryOrder)
SetTo sets value to v.
type OptFileQuerySearchType ¶
type OptFileQuerySearchType struct {
Value FileQuerySearchType
Set bool
}
OptFileQuerySearchType is optional FileQuerySearchType.
func NewOptFileQuerySearchType ¶
func NewOptFileQuerySearchType(v FileQuerySearchType) OptFileQuerySearchType
NewOptFileQuerySearchType returns new OptFileQuerySearchType with value set to v.
func (OptFileQuerySearchType) Get ¶
func (o OptFileQuerySearchType) Get() (v FileQuerySearchType, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptFileQuerySearchType) IsSet ¶
func (o OptFileQuerySearchType) IsSet() bool
IsSet returns true if OptFileQuerySearchType was set.
func (OptFileQuerySearchType) Or ¶
func (o OptFileQuerySearchType) Or(d FileQuerySearchType) FileQuerySearchType
Or returns value if set, or given parameter if does not.
func (*OptFileQuerySearchType) SetTo ¶
func (o *OptFileQuerySearchType) SetTo(v FileQuerySearchType)
SetTo sets value to v.
type OptFileQuerySort ¶
type OptFileQuerySort struct {
Value FileQuerySort
Set bool
}
OptFileQuerySort is optional FileQuerySort.
func NewOptFileQuerySort ¶
func NewOptFileQuerySort(v FileQuerySort) OptFileQuerySort
NewOptFileQuerySort returns new OptFileQuerySort with value set to v.
func (OptFileQuerySort) Get ¶
func (o OptFileQuerySort) Get() (v FileQuerySort, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptFileQuerySort) IsSet ¶
func (o OptFileQuerySort) IsSet() bool
IsSet returns true if OptFileQuerySort was set.
func (OptFileQuerySort) Or ¶
func (o OptFileQuerySort) Or(d FileQuerySort) FileQuerySort
Or returns value if set, or given parameter if does not.
func (*OptFileQuerySort) SetTo ¶
func (o *OptFileQuerySort) SetTo(v FileQuerySort)
SetTo sets value to v.
type OptFileQueryStatus ¶
type OptFileQueryStatus struct {
Value FileQueryStatus
Set bool
}
OptFileQueryStatus is optional FileQueryStatus.
func NewOptFileQueryStatus ¶
func NewOptFileQueryStatus(v FileQueryStatus) OptFileQueryStatus
NewOptFileQueryStatus returns new OptFileQueryStatus with value set to v.
func (OptFileQueryStatus) Get ¶
func (o OptFileQueryStatus) Get() (v FileQueryStatus, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptFileQueryStatus) IsSet ¶
func (o OptFileQueryStatus) IsSet() bool
IsSet returns true if OptFileQueryStatus was set.
func (OptFileQueryStatus) Or ¶
func (o OptFileQueryStatus) Or(d FileQueryStatus) FileQueryStatus
Or returns value if set, or given parameter if does not.
func (*OptFileQueryStatus) SetTo ¶
func (o *OptFileQueryStatus) SetTo(v FileQueryStatus)
SetTo sets value to v.
type OptFileQueryType ¶
type OptFileQueryType struct {
Value FileQueryType
Set bool
}
OptFileQueryType is optional FileQueryType.
func NewOptFileQueryType ¶
func NewOptFileQueryType(v FileQueryType) OptFileQueryType
NewOptFileQueryType returns new OptFileQueryType with value set to v.
func (OptFileQueryType) Get ¶
func (o OptFileQueryType) Get() (v FileQueryType, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptFileQueryType) IsSet ¶
func (o OptFileQueryType) IsSet() bool
IsSet returns true if OptFileQueryType was set.
func (OptFileQueryType) Or ¶
func (o OptFileQueryType) Or(d FileQueryType) FileQueryType
Or returns value if set, or given parameter if does not.
func (*OptFileQueryType) SetTo ¶
func (o *OptFileQueryType) SetTo(v FileQueryType)
SetTo sets value to v.
type OptFilesStreamDownload ¶
type OptFilesStreamDownload struct {
Value FilesStreamDownload
Set bool
}
OptFilesStreamDownload is optional FilesStreamDownload.
func NewOptFilesStreamDownload ¶
func NewOptFilesStreamDownload(v FilesStreamDownload) OptFilesStreamDownload
NewOptFilesStreamDownload returns new OptFilesStreamDownload with value set to v.
func (OptFilesStreamDownload) Get ¶
func (o OptFilesStreamDownload) Get() (v FilesStreamDownload, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptFilesStreamDownload) IsSet ¶
func (o OptFilesStreamDownload) IsSet() bool
IsSet returns true if OptFilesStreamDownload was set.
func (OptFilesStreamDownload) Or ¶
func (o OptFilesStreamDownload) Or(d FilesStreamDownload) FilesStreamDownload
Or returns value if set, or given parameter if does not.
func (*OptFilesStreamDownload) SetTo ¶
func (o *OptFilesStreamDownload) SetTo(v FilesStreamDownload)
SetTo sets value to v.
type OptInt ¶
OptInt is optional int.
type OptInt64 ¶
OptInt64 is optional int64.
func NewOptInt64 ¶
NewOptInt64 returns new OptInt64 with value set to v.
func (OptInt64) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt64) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptShareQueryOrder ¶
type OptShareQueryOrder struct {
}
OptShareQueryOrder is optional ShareQueryOrder.
func NewOptShareQueryOrder ¶
func NewOptShareQueryOrder(v ShareQueryOrder) OptShareQueryOrder
NewOptShareQueryOrder returns new OptShareQueryOrder with value set to v.
func (OptShareQueryOrder) Get ¶
func (o OptShareQueryOrder) Get() (v ShareQueryOrder, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptShareQueryOrder) IsSet ¶
func (o OptShareQueryOrder) IsSet() bool
IsSet returns true if OptShareQueryOrder was set.
func (OptShareQueryOrder) Or ¶
func (o OptShareQueryOrder) Or(d ShareQueryOrder) ShareQueryOrder
Or returns value if set, or given parameter if does not.
func (*OptShareQueryOrder) SetTo ¶
func (o *OptShareQueryOrder) SetTo(v ShareQueryOrder)
SetTo sets value to v.
type OptShareQuerySort ¶
type OptShareQuerySort struct {
}
OptShareQuerySort is optional ShareQuerySort.
func NewOptShareQuerySort ¶
func NewOptShareQuerySort(v ShareQuerySort) OptShareQuerySort
NewOptShareQuerySort returns new OptShareQuerySort with value set to v.
func (OptShareQuerySort) Get ¶
func (o OptShareQuerySort) Get() (v ShareQuerySort, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptShareQuerySort) IsSet ¶
func (o OptShareQuerySort) IsSet() bool
IsSet returns true if OptShareQuerySort was set.
func (OptShareQuerySort) Or ¶
func (o OptShareQuerySort) Or(d ShareQuerySort) ShareQuerySort
Or returns value if set, or given parameter if does not.
func (*OptShareQuerySort) SetTo ¶
func (o *OptShareQuerySort) SetTo(v ShareQuerySort)
SetTo sets value to v.
type OptSharesStreamDownload ¶
type OptSharesStreamDownload struct {
}
OptSharesStreamDownload is optional SharesStreamDownload.
func NewOptSharesStreamDownload ¶
func NewOptSharesStreamDownload(v SharesStreamDownload) OptSharesStreamDownload
NewOptSharesStreamDownload returns new OptSharesStreamDownload with value set to v.
func (OptSharesStreamDownload) Get ¶
func (o OptSharesStreamDownload) Get() (v SharesStreamDownload, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSharesStreamDownload) IsSet ¶
func (o OptSharesStreamDownload) IsSet() bool
IsSet returns true if OptSharesStreamDownload was set.
func (OptSharesStreamDownload) Or ¶
func (o OptSharesStreamDownload) Or(d SharesStreamDownload) SharesStreamDownload
Or returns value if set, or given parameter if does not.
func (*OptSharesStreamDownload) Reset ¶
func (o *OptSharesStreamDownload) Reset()
Reset unsets value.
func (*OptSharesStreamDownload) SetTo ¶
func (o *OptSharesStreamDownload) SetTo(v SharesStreamDownload)
SetTo sets value to v.
type OptString ¶
OptString is optional string.
func NewOptString ¶
NewOptString returns new OptString with value set to v.
func (OptString) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptString) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type Part ¶
type Part struct {
// Part ID.
ID int `json:"id"`
// Encryption salt.
Salt OptString `json:"salt"`
}
File part information. Ref: #/components/schemas/Part
func (*Part) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Part) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
Route is route object.
func (Route) OperationID ¶
OperationID returns OpenAPI operationId.
type SecurityHandler ¶
type SecurityHandler interface {
// HandleApiKeyAuth handles ApiKeyAuth security.
HandleApiKeyAuth(ctx context.Context, operationName OperationName, t ApiKeyAuth) (context.Context, error)
// HandleBearerAuth handles BearerAuth security.
HandleBearerAuth(ctx context.Context, operationName OperationName, t BearerAuth) (context.Context, error)
}
SecurityHandler is handler for security parameters.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.
func NewServer ¶
func NewServer(h Handler, sec SecurityHandler, opts ...ServerOption) (*Server, error)
NewServer creates new Server.
type ServerOption ¶
type ServerOption interface {
// contains filtered or unexported methods
}
ServerOption is server config option.
func WithErrorHandler ¶
func WithErrorHandler(h ErrorHandler) ServerOption
WithErrorHandler specifies error handler to use.
func WithMaxMultipartMemory ¶
func WithMaxMultipartMemory(max int64) ServerOption
WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.
func WithMethodNotAllowed ¶
func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
WithMethodNotAllowed specifies Method Not Allowed handler to use.
func WithMiddleware ¶
func WithMiddleware(m ...Middleware) ServerOption
WithMiddleware specifies middlewares to use.
func WithNotFound ¶
func WithNotFound(notFound http.HandlerFunc) ServerOption
WithNotFound specifies Not Found handler to use.
func WithPathPrefix ¶
func WithPathPrefix(prefix string) ServerOption
WithPathPrefix specifies server path prefix.
type Session ¶
type Session struct {
// User's display name or full name.
Name string `json:"name"`
// Telegram username without @ symbol.
UserName string `json:"userName"`
// Telegram user ID (unique identifier).
UserId int64 `json:"userId"`
// Premium subscription status.
IsPremium bool `json:"isPremium"`
// Session hash for verification and security.
Hash string `json:"hash"`
// Session expiration date.
Expires time.Time `json:"expires"`
}
User session information containing authentication and profile details. Ref: #/components/schemas/Session
func (*Session) GetExpires ¶
GetExpires returns the value of Expires.
func (*Session) GetIsPremium ¶
GetIsPremium returns the value of IsPremium.
func (*Session) GetUserName ¶
GetUserName returns the value of UserName.
func (*Session) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Session) SetExpires ¶
SetExpires sets the value of Expires.
func (*Session) SetIsPremium ¶
SetIsPremium sets the value of IsPremium.
func (*Session) SetUserName ¶
SetUserName sets the value of UserName.
func (*Session) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type SessionCreate ¶
type SessionCreate struct {
// User's display name or full name.
Name string `json:"name"`
// Telegram username without @ symbol.
UserName string `json:"userName"`
// Telegram user ID (unique identifier).
UserId int64 `json:"userId"`
// Premium subscription status.
IsPremium bool `json:"isPremium"`
// Session hash for verification and security.
Hash string `json:"hash"`
// Session expiration date.
Expires time.Time `json:"expires"`
// Optional session token for client identification.
Session string `json:"session"`
}
User session information containing authentication and profile details. Ref: #/components/schemas/SessionCreate
func (*SessionCreate) Decode ¶
func (s *SessionCreate) Decode(d *jx.Decoder) error
Decode decodes SessionCreate from json.
func (*SessionCreate) Encode ¶
func (s *SessionCreate) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SessionCreate) GetExpires ¶
func (s *SessionCreate) GetExpires() time.Time
GetExpires returns the value of Expires.
func (*SessionCreate) GetHash ¶
func (s *SessionCreate) GetHash() string
GetHash returns the value of Hash.
func (*SessionCreate) GetIsPremium ¶
func (s *SessionCreate) GetIsPremium() bool
GetIsPremium returns the value of IsPremium.
func (*SessionCreate) GetName ¶
func (s *SessionCreate) GetName() string
GetName returns the value of Name.
func (*SessionCreate) GetSession ¶
func (s *SessionCreate) GetSession() string
GetSession returns the value of Session.
func (*SessionCreate) GetUserId ¶
func (s *SessionCreate) GetUserId() int64
GetUserId returns the value of UserId.
func (*SessionCreate) GetUserName ¶
func (s *SessionCreate) GetUserName() string
GetUserName returns the value of UserName.
func (*SessionCreate) MarshalJSON ¶
func (s *SessionCreate) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SessionCreate) SetExpires ¶
func (s *SessionCreate) SetExpires(val time.Time)
SetExpires sets the value of Expires.
func (*SessionCreate) SetHash ¶
func (s *SessionCreate) SetHash(val string)
SetHash sets the value of Hash.
func (*SessionCreate) SetIsPremium ¶
func (s *SessionCreate) SetIsPremium(val bool)
SetIsPremium sets the value of IsPremium.
func (*SessionCreate) SetName ¶
func (s *SessionCreate) SetName(val string)
SetName sets the value of Name.
func (*SessionCreate) SetSession ¶
func (s *SessionCreate) SetSession(val string)
SetSession sets the value of Session.
func (*SessionCreate) SetUserId ¶
func (s *SessionCreate) SetUserId(val int64)
SetUserId sets the value of UserId.
func (*SessionCreate) SetUserName ¶
func (s *SessionCreate) SetUserName(val string)
SetUserName sets the value of UserName.
func (*SessionCreate) UnmarshalJSON ¶
func (s *SessionCreate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SessionCreate) Validate ¶
func (s *SessionCreate) Validate() error
type SessionHeaders ¶
SessionHeaders wraps Session with response headers.
func (*SessionHeaders) GetResponse ¶
func (s *SessionHeaders) GetResponse() Session
GetResponse returns the value of Response.
func (*SessionHeaders) GetSetCookie ¶
func (s *SessionHeaders) GetSetCookie() string
GetSetCookie returns the value of SetCookie.
func (*SessionHeaders) SetResponse ¶
func (s *SessionHeaders) SetResponse(val Session)
SetResponse sets the value of Response.
func (*SessionHeaders) SetSetCookie ¶
func (s *SessionHeaders) SetSetCookie(val string)
SetSetCookie sets the value of SetCookie.
func (*SessionHeaders) Validate ¶
func (s *SessionHeaders) Validate() error
type ShareQueryOrder ¶
type ShareQueryOrder string
const ( )
func (ShareQueryOrder) AllValues ¶
func (ShareQueryOrder) AllValues() []ShareQueryOrder
AllValues returns all ShareQueryOrder values.
func (ShareQueryOrder) MarshalText ¶
func (s ShareQueryOrder) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ShareQueryOrder) UnmarshalText ¶
func (s *ShareQueryOrder) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ShareQueryOrder) Validate ¶
func (s ShareQueryOrder) Validate() error
type ShareQuerySort ¶
type ShareQuerySort string
const ( )
func (ShareQuerySort) AllValues ¶
func (ShareQuerySort) AllValues() []ShareQuerySort
AllValues returns all ShareQuerySort values.
func (ShareQuerySort) MarshalText ¶
func (s ShareQuerySort) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ShareQuerySort) UnmarshalText ¶
func (s *ShareQuerySort) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ShareQuerySort) Validate ¶
func (s ShareQuerySort) Validate() error
type ShareUnlock ¶
type ShareUnlock struct {
Password string `json:"password"`
}
Ref: #/components/schemas/ShareUnlock
func (*ShareUnlock) Decode ¶
func (s *ShareUnlock) Decode(d *jx.Decoder) error
Decode decodes ShareUnlock from json.
func (*ShareUnlock) Encode ¶
func (s *ShareUnlock) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ShareUnlock) GetPassword ¶
func (s *ShareUnlock) GetPassword() string
GetPassword returns the value of Password.
func (*ShareUnlock) MarshalJSON ¶
func (s *ShareUnlock) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ShareUnlock) SetPassword ¶
func (s *ShareUnlock) SetPassword(val string)
SetPassword sets the value of Password.
func (*ShareUnlock) UnmarshalJSON ¶
func (s *ShareUnlock) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SharesGetByIdParams ¶
type SharesGetByIdParams struct {
}
SharesGetByIdParams is parameters of Shares_getById operation.
type SharesListFilesParams ¶
type SharesListFilesParams struct {
Path OptString
Sort OptShareQuerySort
Order OptShareQueryOrder
Limit OptInt
Page OptInt
}
SharesListFilesParams is parameters of Shares_listFiles operation.
type SharesStreamDownload ¶
type SharesStreamDownload string
const ( )
func (SharesStreamDownload) AllValues ¶
func (SharesStreamDownload) AllValues() []SharesStreamDownload
AllValues returns all SharesStreamDownload values.
func (SharesStreamDownload) MarshalText ¶
func (s SharesStreamDownload) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*SharesStreamDownload) UnmarshalText ¶
func (s *SharesStreamDownload) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (SharesStreamDownload) Validate ¶
func (s SharesStreamDownload) Validate() error
type SharesStreamOK ¶
type SharesStreamOK struct {
}
type SharesStreamOKAcceptRanges ¶
type SharesStreamOKAcceptRanges string
const (
)
func (SharesStreamOKAcceptRanges) AllValues ¶
func (SharesStreamOKAcceptRanges) AllValues() []SharesStreamOKAcceptRanges
AllValues returns all SharesStreamOKAcceptRanges values.
func (SharesStreamOKAcceptRanges) MarshalText ¶
func (s SharesStreamOKAcceptRanges) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*SharesStreamOKAcceptRanges) UnmarshalText ¶
func (s *SharesStreamOKAcceptRanges) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (SharesStreamOKAcceptRanges) Validate ¶
func (s SharesStreamOKAcceptRanges) Validate() error
type SharesStreamOKHeaders ¶
type SharesStreamOKHeaders struct {
}
SharesStreamOKHeaders wraps SharesStreamOK with response headers.
func (*SharesStreamOKHeaders) GetAcceptRanges ¶
func (s *SharesStreamOKHeaders) GetAcceptRanges() SharesStreamOKAcceptRanges
GetAcceptRanges returns the value of AcceptRanges.
func (*SharesStreamOKHeaders) GetContentDisposition ¶
func (s *SharesStreamOKHeaders) GetContentDisposition() string
GetContentDisposition returns the value of ContentDisposition.
func (*SharesStreamOKHeaders) GetContentLength ¶
func (s *SharesStreamOKHeaders) GetContentLength() string
GetContentLength returns the value of ContentLength.
func (*SharesStreamOKHeaders) GetContentRange ¶
func (s *SharesStreamOKHeaders) GetContentRange() OptString
GetContentRange returns the value of ContentRange.
func (*SharesStreamOKHeaders) GetContentType ¶
func (s *SharesStreamOKHeaders) GetContentType() string
GetContentType returns the value of ContentType.
func (*SharesStreamOKHeaders) GetEtag ¶
func (s *SharesStreamOKHeaders) GetEtag() string
GetEtag returns the value of Etag.
func (*SharesStreamOKHeaders) GetLastModified ¶
func (s *SharesStreamOKHeaders) GetLastModified() string
GetLastModified returns the value of LastModified.
func (*SharesStreamOKHeaders) GetResponse ¶
func (s *SharesStreamOKHeaders) GetResponse() SharesStreamOK
GetResponse returns the value of Response.
func (*SharesStreamOKHeaders) SetAcceptRanges ¶
func (s *SharesStreamOKHeaders) SetAcceptRanges(val SharesStreamOKAcceptRanges)
SetAcceptRanges sets the value of AcceptRanges.
func (*SharesStreamOKHeaders) SetContentDisposition ¶
func (s *SharesStreamOKHeaders) SetContentDisposition(val string)
SetContentDisposition sets the value of ContentDisposition.
func (*SharesStreamOKHeaders) SetContentLength ¶
func (s *SharesStreamOKHeaders) SetContentLength(val string)
SetContentLength sets the value of ContentLength.
func (*SharesStreamOKHeaders) SetContentRange ¶
func (s *SharesStreamOKHeaders) SetContentRange(val OptString)
SetContentRange sets the value of ContentRange.
func (*SharesStreamOKHeaders) SetContentType ¶
func (s *SharesStreamOKHeaders) SetContentType(val string)
SetContentType sets the value of ContentType.
func (*SharesStreamOKHeaders) SetEtag ¶
func (s *SharesStreamOKHeaders) SetEtag(val string)
SetEtag sets the value of Etag.
func (*SharesStreamOKHeaders) SetLastModified ¶
func (s *SharesStreamOKHeaders) SetLastModified(val string)
SetLastModified sets the value of LastModified.
func (*SharesStreamOKHeaders) SetResponse ¶
func (s *SharesStreamOKHeaders) SetResponse(val SharesStreamOK)
SetResponse sets the value of Response.
func (*SharesStreamOKHeaders) Validate ¶
func (s *SharesStreamOKHeaders) Validate() error
type SharesStreamParams ¶
type SharesStreamParams struct {
}
SharesStreamParams is parameters of Shares_stream operation.
type SharesStreamPartialContent ¶
type SharesStreamPartialContent struct {
}
type SharesStreamPartialContentAcceptRanges ¶
type SharesStreamPartialContentAcceptRanges string
const (
)
func (SharesStreamPartialContentAcceptRanges) AllValues ¶
func (SharesStreamPartialContentAcceptRanges) AllValues() []SharesStreamPartialContentAcceptRanges
AllValues returns all SharesStreamPartialContentAcceptRanges values.
func (SharesStreamPartialContentAcceptRanges) MarshalText ¶
func (s SharesStreamPartialContentAcceptRanges) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*SharesStreamPartialContentAcceptRanges) UnmarshalText ¶
func (s *SharesStreamPartialContentAcceptRanges) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (SharesStreamPartialContentAcceptRanges) Validate ¶
func (s SharesStreamPartialContentAcceptRanges) Validate() error
type SharesStreamPartialContentHeaders ¶
type SharesStreamPartialContentHeaders struct {
}
SharesStreamPartialContentHeaders wraps SharesStreamPartialContent with response headers.
func (*SharesStreamPartialContentHeaders) GetAcceptRanges ¶
func (s *SharesStreamPartialContentHeaders) GetAcceptRanges() SharesStreamPartialContentAcceptRanges
GetAcceptRanges returns the value of AcceptRanges.
func (*SharesStreamPartialContentHeaders) GetContentDisposition ¶
func (s *SharesStreamPartialContentHeaders) GetContentDisposition() string
GetContentDisposition returns the value of ContentDisposition.
func (*SharesStreamPartialContentHeaders) GetContentLength ¶
func (s *SharesStreamPartialContentHeaders) GetContentLength() string
GetContentLength returns the value of ContentLength.
func (*SharesStreamPartialContentHeaders) GetContentRange ¶
func (s *SharesStreamPartialContentHeaders) GetContentRange() OptString
GetContentRange returns the value of ContentRange.
func (*SharesStreamPartialContentHeaders) GetContentType ¶
func (s *SharesStreamPartialContentHeaders) GetContentType() string
GetContentType returns the value of ContentType.
func (*SharesStreamPartialContentHeaders) GetEtag ¶
func (s *SharesStreamPartialContentHeaders) GetEtag() string
GetEtag returns the value of Etag.
func (*SharesStreamPartialContentHeaders) GetLastModified ¶
func (s *SharesStreamPartialContentHeaders) GetLastModified() string
GetLastModified returns the value of LastModified.
func (*SharesStreamPartialContentHeaders) GetResponse ¶
func (s *SharesStreamPartialContentHeaders) GetResponse() SharesStreamPartialContent
GetResponse returns the value of Response.
func (*SharesStreamPartialContentHeaders) SetAcceptRanges ¶
func (s *SharesStreamPartialContentHeaders) SetAcceptRanges(val SharesStreamPartialContentAcceptRanges)
SetAcceptRanges sets the value of AcceptRanges.
func (*SharesStreamPartialContentHeaders) SetContentDisposition ¶
func (s *SharesStreamPartialContentHeaders) SetContentDisposition(val string)
SetContentDisposition sets the value of ContentDisposition.
func (*SharesStreamPartialContentHeaders) SetContentLength ¶
func (s *SharesStreamPartialContentHeaders) SetContentLength(val string)
SetContentLength sets the value of ContentLength.
func (*SharesStreamPartialContentHeaders) SetContentRange ¶
func (s *SharesStreamPartialContentHeaders) SetContentRange(val OptString)
SetContentRange sets the value of ContentRange.
func (*SharesStreamPartialContentHeaders) SetContentType ¶
func (s *SharesStreamPartialContentHeaders) SetContentType(val string)
SetContentType sets the value of ContentType.
func (*SharesStreamPartialContentHeaders) SetEtag ¶
func (s *SharesStreamPartialContentHeaders) SetEtag(val string)
SetEtag sets the value of Etag.
func (*SharesStreamPartialContentHeaders) SetLastModified ¶
func (s *SharesStreamPartialContentHeaders) SetLastModified(val string)
SetLastModified sets the value of LastModified.
func (*SharesStreamPartialContentHeaders) SetResponse ¶
func (s *SharesStreamPartialContentHeaders) SetResponse(val SharesStreamPartialContent)
SetResponse sets the value of Response.
func (*SharesStreamPartialContentHeaders) Validate ¶
func (s *SharesStreamPartialContentHeaders) Validate() error
type SharesStreamRes ¶
type SharesStreamRes interface {
// contains filtered or unexported methods
}
type SharesUnlockNoContent ¶
type SharesUnlockNoContent struct{}
SharesUnlockNoContent is response for SharesUnlock operation.
type SharesUnlockParams ¶
type SharesUnlockParams struct {
}
SharesUnlockParams is parameters of Shares_unlock operation.
type UploadPart ¶
type UploadPart struct {
// Name identifier of the part.
Name string `json:"name"`
// Telegram Message ID.
PartId int `json:"partId"`
// Sequential number of the part.
PartNo int `json:"partNo"`
// Channel identifier associated with the upload.
ChannelId int64 `json:"channelId"`
// Size of the part in bytes.
Size int64 `json:"size"`
// Indicates if the part is encrypted.
Encrypted bool `json:"encrypted"`
// Salt value used for encryption, required if encrypted is true.
Salt OptString `json:"salt"`
}
Details of an uploaded part. Ref: #/components/schemas/UploadPart
func (*UploadPart) Decode ¶
func (s *UploadPart) Decode(d *jx.Decoder) error
Decode decodes UploadPart from json.
func (*UploadPart) Encode ¶
func (s *UploadPart) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UploadPart) GetChannelId ¶
func (s *UploadPart) GetChannelId() int64
GetChannelId returns the value of ChannelId.
func (*UploadPart) GetEncrypted ¶
func (s *UploadPart) GetEncrypted() bool
GetEncrypted returns the value of Encrypted.
func (*UploadPart) GetName ¶
func (s *UploadPart) GetName() string
GetName returns the value of Name.
func (*UploadPart) GetPartId ¶
func (s *UploadPart) GetPartId() int
GetPartId returns the value of PartId.
func (*UploadPart) GetPartNo ¶
func (s *UploadPart) GetPartNo() int
GetPartNo returns the value of PartNo.
func (*UploadPart) GetSalt ¶
func (s *UploadPart) GetSalt() OptString
GetSalt returns the value of Salt.
func (*UploadPart) GetSize ¶
func (s *UploadPart) GetSize() int64
GetSize returns the value of Size.
func (*UploadPart) MarshalJSON ¶
func (s *UploadPart) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UploadPart) SetChannelId ¶
func (s *UploadPart) SetChannelId(val int64)
SetChannelId sets the value of ChannelId.
func (*UploadPart) SetEncrypted ¶
func (s *UploadPart) SetEncrypted(val bool)
SetEncrypted sets the value of Encrypted.
func (*UploadPart) SetName ¶
func (s *UploadPart) SetName(val string)
SetName sets the value of Name.
func (*UploadPart) SetPartId ¶
func (s *UploadPart) SetPartId(val int)
SetPartId sets the value of PartId.
func (*UploadPart) SetPartNo ¶
func (s *UploadPart) SetPartNo(val int)
SetPartNo sets the value of PartNo.
func (*UploadPart) SetSalt ¶
func (s *UploadPart) SetSalt(val OptString)
SetSalt sets the value of Salt.
func (*UploadPart) SetSize ¶
func (s *UploadPart) SetSize(val int64)
SetSize sets the value of Size.
func (*UploadPart) UnmarshalJSON ¶
func (s *UploadPart) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UploadStats ¶
type UploadStats struct {
// Date and time when the upload occurred.
UploadDate time.Time `json:"uploadDate"`
// Total number of bytes uploaded.
TotalUploaded int64 `json:"totalUploaded"`
}
Statistics about the upload. Ref: #/components/schemas/UploadStats
func (*UploadStats) Decode ¶
func (s *UploadStats) Decode(d *jx.Decoder) error
Decode decodes UploadStats from json.
func (*UploadStats) Encode ¶
func (s *UploadStats) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UploadStats) GetTotalUploaded ¶
func (s *UploadStats) GetTotalUploaded() int64
GetTotalUploaded returns the value of TotalUploaded.
func (*UploadStats) GetUploadDate ¶
func (s *UploadStats) GetUploadDate() time.Time
GetUploadDate returns the value of UploadDate.
func (*UploadStats) MarshalJSON ¶
func (s *UploadStats) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UploadStats) SetTotalUploaded ¶
func (s *UploadStats) SetTotalUploaded(val int64)
SetTotalUploaded sets the value of TotalUploaded.
func (*UploadStats) SetUploadDate ¶
func (s *UploadStats) SetUploadDate(val time.Time)
SetUploadDate sets the value of UploadDate.
func (*UploadStats) UnmarshalJSON ¶
func (s *UploadStats) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UploadsDeleteNoContent ¶
type UploadsDeleteNoContent struct{}
UploadsDeleteNoContent is response for UploadsDelete operation.
type UploadsDeleteParams ¶
type UploadsDeleteParams struct {
ID string
}
UploadsDeleteParams is parameters of Uploads_delete operation.
type UploadsPartsByIdParams ¶
type UploadsPartsByIdParams struct {
ID string
}
UploadsPartsByIdParams is parameters of Uploads_partsById operation.
type UploadsStatsParams ¶
type UploadsStatsParams struct {
Days int
}
UploadsStatsParams is parameters of Uploads_stats operation.
type UploadsUploadParams ¶
type UploadsUploadParams struct {
ID string
ContentLength int64
// Name of the part being uploaded.
PartName string
// Original file name.
FileName string
// Part number in sequence.
PartNo int
// Optional channel identifier for upload.
ChannelId OptInt64
// Whether the upload content is encrypted.
Encrypted OptBool
}
UploadsUploadParams is parameters of Uploads_upload operation.
type UploadsUploadReq ¶
type UploadsUploadReqWithContentType ¶
type UploadsUploadReqWithContentType struct {
ContentType string
Content UploadsUploadReq
}
UploadsUploadReqWithContentType wraps UploadsUploadReq with Content-Type.
func (*UploadsUploadReqWithContentType) GetContent ¶
func (s *UploadsUploadReqWithContentType) GetContent() UploadsUploadReq
GetContent returns the value of Content.
func (*UploadsUploadReqWithContentType) GetContentType ¶
func (s *UploadsUploadReqWithContentType) GetContentType() string
GetContentType returns the value of ContentType.
func (*UploadsUploadReqWithContentType) SetContent ¶
func (s *UploadsUploadReqWithContentType) SetContent(val UploadsUploadReq)
SetContent sets the value of Content.
func (*UploadsUploadReqWithContentType) SetContentType ¶
func (s *UploadsUploadReqWithContentType) SetContentType(val string)
SetContentType sets the value of ContentType.
type UserConfig ¶
type UserConfig struct {
// Channel identifier associated with the user.
ChannelId int64 `json:"channelId"`
// List of bot tokens.
Bots []string `json:"bots"`
}
User configuration for channel and bot settings. Ref: #/components/schemas/UserConfig
func (*UserConfig) Decode ¶
func (s *UserConfig) Decode(d *jx.Decoder) error
Decode decodes UserConfig from json.
func (*UserConfig) Encode ¶
func (s *UserConfig) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UserConfig) GetBots ¶
func (s *UserConfig) GetBots() []string
GetBots returns the value of Bots.
func (*UserConfig) GetChannelId ¶
func (s *UserConfig) GetChannelId() int64
GetChannelId returns the value of ChannelId.
func (*UserConfig) MarshalJSON ¶
func (s *UserConfig) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserConfig) SetBots ¶
func (s *UserConfig) SetBots(val []string)
SetBots sets the value of Bots.
func (*UserConfig) SetChannelId ¶
func (s *UserConfig) SetChannelId(val int64)
SetChannelId sets the value of ChannelId.
func (*UserConfig) UnmarshalJSON ¶
func (s *UserConfig) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserConfig) Validate ¶
func (s *UserConfig) Validate() error
type UserSession ¶
type UserSession struct {
// Unique hash identifier for the session.
Hash string `json:"hash"`
// Session creation timestamp.
CreatedAt time.Time `json:"createdAt"`
// Geographic location where session was created.
Location OptString `json:"location"`
// Indicates if session is from an official Telegram app.
OfficialApp OptBool `json:"officialApp"`
// Name of the application used for session.
AppName OptString `json:"appName"`
// Indicates if the session is still valid.
Valid bool `json:"valid"`
// Indicates if this is the currently active session.
Current bool `json:"current"`
}
User session information. Ref: #/components/schemas/UserSession
func (*UserSession) Decode ¶
func (s *UserSession) Decode(d *jx.Decoder) error
Decode decodes UserSession from json.
func (*UserSession) Encode ¶
func (s *UserSession) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UserSession) GetAppName ¶
func (s *UserSession) GetAppName() OptString
GetAppName returns the value of AppName.
func (*UserSession) GetCreatedAt ¶
func (s *UserSession) GetCreatedAt() time.Time
GetCreatedAt returns the value of CreatedAt.
func (*UserSession) GetCurrent ¶
func (s *UserSession) GetCurrent() bool
GetCurrent returns the value of Current.
func (*UserSession) GetHash ¶
func (s *UserSession) GetHash() string
GetHash returns the value of Hash.
func (*UserSession) GetLocation ¶
func (s *UserSession) GetLocation() OptString
GetLocation returns the value of Location.
func (*UserSession) GetOfficialApp ¶
func (s *UserSession) GetOfficialApp() OptBool
GetOfficialApp returns the value of OfficialApp.
func (*UserSession) GetValid ¶
func (s *UserSession) GetValid() bool
GetValid returns the value of Valid.
func (*UserSession) MarshalJSON ¶
func (s *UserSession) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserSession) SetAppName ¶
func (s *UserSession) SetAppName(val OptString)
SetAppName sets the value of AppName.
func (*UserSession) SetCreatedAt ¶
func (s *UserSession) SetCreatedAt(val time.Time)
SetCreatedAt sets the value of CreatedAt.
func (*UserSession) SetCurrent ¶
func (s *UserSession) SetCurrent(val bool)
SetCurrent sets the value of Current.
func (*UserSession) SetHash ¶
func (s *UserSession) SetHash(val string)
SetHash sets the value of Hash.
func (*UserSession) SetLocation ¶
func (s *UserSession) SetLocation(val OptString)
SetLocation sets the value of Location.
func (*UserSession) SetOfficialApp ¶
func (s *UserSession) SetOfficialApp(val OptBool)
SetOfficialApp sets the value of OfficialApp.
func (*UserSession) SetValid ¶
func (s *UserSession) SetValid(val bool)
SetValid sets the value of Valid.
func (*UserSession) UnmarshalJSON ¶
func (s *UserSession) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UsersAddBotsNoContent ¶
type UsersAddBotsNoContent struct{}
UsersAddBotsNoContent is response for UsersAddBots operation.
type UsersProfileImageOK ¶
type UsersProfileImageOKHeaders ¶
type UsersProfileImageOKHeaders struct {
CacheControl string
ContentDisposition string
ContentLength int64
Etag string
Response UsersProfileImageOK
}
UsersProfileImageOKHeaders wraps UsersProfileImageOK with response headers.
func (*UsersProfileImageOKHeaders) GetCacheControl ¶
func (s *UsersProfileImageOKHeaders) GetCacheControl() string
GetCacheControl returns the value of CacheControl.
func (*UsersProfileImageOKHeaders) GetContentDisposition ¶
func (s *UsersProfileImageOKHeaders) GetContentDisposition() string
GetContentDisposition returns the value of ContentDisposition.
func (*UsersProfileImageOKHeaders) GetContentLength ¶
func (s *UsersProfileImageOKHeaders) GetContentLength() int64
GetContentLength returns the value of ContentLength.
func (*UsersProfileImageOKHeaders) GetEtag ¶
func (s *UsersProfileImageOKHeaders) GetEtag() string
GetEtag returns the value of Etag.
func (*UsersProfileImageOKHeaders) GetResponse ¶
func (s *UsersProfileImageOKHeaders) GetResponse() UsersProfileImageOK
GetResponse returns the value of Response.
func (*UsersProfileImageOKHeaders) SetCacheControl ¶
func (s *UsersProfileImageOKHeaders) SetCacheControl(val string)
SetCacheControl sets the value of CacheControl.
func (*UsersProfileImageOKHeaders) SetContentDisposition ¶
func (s *UsersProfileImageOKHeaders) SetContentDisposition(val string)
SetContentDisposition sets the value of ContentDisposition.
func (*UsersProfileImageOKHeaders) SetContentLength ¶
func (s *UsersProfileImageOKHeaders) SetContentLength(val int64)
SetContentLength sets the value of ContentLength.
func (*UsersProfileImageOKHeaders) SetEtag ¶
func (s *UsersProfileImageOKHeaders) SetEtag(val string)
SetEtag sets the value of Etag.
func (*UsersProfileImageOKHeaders) SetResponse ¶
func (s *UsersProfileImageOKHeaders) SetResponse(val UsersProfileImageOK)
SetResponse sets the value of Response.
type UsersProfileImageParams ¶
type UsersProfileImageParams struct {
Name string
}
UsersProfileImageParams is parameters of Users_profileImage operation.
type UsersRemoveBotsNoContent ¶
type UsersRemoveBotsNoContent struct{}
UsersRemoveBotsNoContent is response for UsersRemoveBots operation.
type UsersRemoveSessionNoContent ¶
type UsersRemoveSessionNoContent struct{}
UsersRemoveSessionNoContent is response for UsersRemoveSession operation.
type UsersRemoveSessionParams ¶
type UsersRemoveSessionParams struct {
ID string
}
UsersRemoveSessionParams is parameters of Users_removeSession operation.
type UsersSyncChannelsNoContent ¶
type UsersSyncChannelsNoContent struct{}
UsersSyncChannelsNoContent is response for UsersSyncChannels operation.
type UsersUpdateChannelNoContent ¶
type UsersUpdateChannelNoContent struct{}
UsersUpdateChannelNoContent is response for UsersUpdateChannel operation.