Documentation ¶
Index ¶
- func NotImplemented(c echo.Context) error
- type Bot
- type BotDetail
- type BotTokens
- type CacheHitState
- type Channel
- type ClipFolder
- type ClipFolderMessage
- type Config
- type CreateStampPaletteRequest
- type DMChannel
- type FileInfo
- type FileInfoOldThumbnail
- type FileInfoThumbnail
- type GetActivityTimelineRequest
- type GetBotLogsRequest
- type GetFilesRequest
- type GetMyStampHistoryRequest
- type GetStampsQuery
- type Handlers
- func (h *Handlers) ActivateBot(c echo.Context) error
- func (h *Handlers) AddMessageStamp(c echo.Context) error
- func (h *Handlers) AddMyUserTag(c echo.Context) error
- func (h *Handlers) AddUserGroupAdmin(c echo.Context) error
- func (h *Handlers) AddUserGroupMember(c echo.Context) error
- func (h *Handlers) AddUserTag(c echo.Context) error
- func (h *Handlers) ChangeBotIcon(c echo.Context) error
- func (h *Handlers) ChangeMyIcon(c echo.Context) error
- func (h *Handlers) ChangeStampImage(c echo.Context) error
- func (h *Handlers) ChangeUserIcon(c echo.Context) error
- func (h *Handlers) ChangeUserPassword(c echo.Context) error
- func (h *Handlers) ChangeWebhookIcon(c echo.Context) error
- func (h *Handlers) CreateBot(c echo.Context) error
- func (h *Handlers) CreateChannels(c echo.Context) error
- func (h *Handlers) CreateClient(c echo.Context) error
- func (h *Handlers) CreateClipFolder(c echo.Context) error
- func (h *Handlers) CreatePin(c echo.Context) error
- func (h *Handlers) CreateStamp(c echo.Context) error
- func (h *Handlers) CreateStampPalette(c echo.Context) error
- func (h *Handlers) CreateUser(c echo.Context) error
- func (h *Handlers) CreateWebhook(c echo.Context) error
- func (h *Handlers) DeleteBot(c echo.Context) error
- func (h *Handlers) DeleteClient(c echo.Context) error
- func (h *Handlers) DeleteClipFolder(c echo.Context) error
- func (h *Handlers) DeleteClipFolderMessages(c echo.Context) error
- func (h *Handlers) DeleteFile(c echo.Context) error
- func (h *Handlers) DeleteMessage(c echo.Context) error
- func (h *Handlers) DeleteStamp(c echo.Context) error
- func (h *Handlers) DeleteStampPalette(c echo.Context) error
- func (h *Handlers) DeleteUserGroup(c echo.Context) error
- func (h *Handlers) DeleteWebhook(c echo.Context) error
- func (h *Handlers) EditBot(c echo.Context) error
- func (h *Handlers) EditChannel(c echo.Context) error
- func (h *Handlers) EditChannelSubscribers(c echo.Context) error
- func (h *Handlers) EditChannelTopic(c echo.Context) error
- func (h *Handlers) EditClient(c echo.Context) error
- func (h *Handlers) EditClipFolder(c echo.Context) error
- func (h *Handlers) EditMe(c echo.Context) error
- func (h *Handlers) EditMessage(c echo.Context) error
- func (h *Handlers) EditMyUserTag(c echo.Context) error
- func (h *Handlers) EditStamp(c echo.Context) error
- func (h *Handlers) EditStampPalette(c echo.Context) error
- func (h *Handlers) EditUser(c echo.Context) error
- func (h *Handlers) EditUserGroup(c echo.Context) error
- func (h *Handlers) EditUserGroupMember(c echo.Context) error
- func (h *Handlers) EditUserTag(c echo.Context) error
- func (h *Handlers) EditWebhook(c echo.Context) error
- func (h *Handlers) GetActivityTimeline(c echo.Context) error
- func (h *Handlers) GetBot(c echo.Context) error
- func (h *Handlers) GetBotIcon(c echo.Context) error
- func (h *Handlers) GetBotLogs(c echo.Context) error
- func (h *Handlers) GetBots(c echo.Context) error
- func (h *Handlers) GetChannel(c echo.Context) error
- func (h *Handlers) GetChannelBots(c echo.Context) error
- func (h *Handlers) GetChannelEvents(c echo.Context) error
- func (h *Handlers) GetChannelPins(c echo.Context) error
- func (h *Handlers) GetChannelStats(c echo.Context) error
- func (h *Handlers) GetChannelSubscribers(c echo.Context) error
- func (h *Handlers) GetChannelTopic(c echo.Context) error
- func (h *Handlers) GetChannelViewers(c echo.Context) error
- func (h *Handlers) GetChannels(c echo.Context) error
- func (h *Handlers) GetClient(c echo.Context) error
- func (h *Handlers) GetClients(c echo.Context) error
- func (h *Handlers) GetClipFolder(c echo.Context) error
- func (h *Handlers) GetClipFolderMessages(c echo.Context) error
- func (h *Handlers) GetClipFolders(c echo.Context) error
- func (h *Handlers) GetDirectMessages(c echo.Context) error
- func (h *Handlers) GetFile(c echo.Context) error
- func (h *Handlers) GetFileMeta(c echo.Context) error
- func (h *Handlers) GetFiles(c echo.Context) error
- func (h *Handlers) GetMe(c echo.Context) error
- func (h *Handlers) GetMessage(c echo.Context) error
- func (h *Handlers) GetMessageClips(c echo.Context) error
- func (h *Handlers) GetMessageStamps(c echo.Context) error
- func (h *Handlers) GetMessages(c echo.Context) error
- func (h *Handlers) GetMyChannelSubscriptions(c echo.Context) error
- func (h *Handlers) GetMyExternalAccounts(c echo.Context) error
- func (h *Handlers) GetMyIcon(c echo.Context) error
- func (h *Handlers) GetMyNotifyCitation(c echo.Context) error
- func (h *Handlers) GetMyQRCode(c echo.Context) error
- func (h *Handlers) GetMySessions(c echo.Context) error
- func (h *Handlers) GetMySettings(c echo.Context) error
- func (h *Handlers) GetMyStampHistory(c echo.Context) error
- func (h *Handlers) GetMyStars(c echo.Context) error
- func (h *Handlers) GetMyTokens(c echo.Context) error
- func (h *Handlers) GetMyUnreadChannels(c echo.Context) error
- func (h *Handlers) GetMyUserTags(c echo.Context) error
- func (h *Handlers) GetMyViewStates(c echo.Context) error
- func (h *Handlers) GetOgp(c echo.Context) error
- func (h *Handlers) GetOnlineUsers(c echo.Context) error
- func (h *Handlers) GetPin(c echo.Context) error
- func (h *Handlers) GetPublicUserIcon(c echo.Context) error
- func (h *Handlers) GetStamp(c echo.Context) error
- func (h *Handlers) GetStampImage(c echo.Context) error
- func (h *Handlers) GetStampPalette(c echo.Context) error
- func (h *Handlers) GetStampPalettes(c echo.Context) error
- func (h *Handlers) GetStampStats(c echo.Context) error
- func (h *Handlers) GetStamps(c echo.Context) error
- func (h *Handlers) GetTag(c echo.Context) error
- func (h *Handlers) GetThumbnailImage(c echo.Context) error
- func (h *Handlers) GetUser(c echo.Context) error
- func (h *Handlers) GetUserDMChannel(c echo.Context) error
- func (h *Handlers) GetUserGroup(c echo.Context) error
- func (h *Handlers) GetUserGroupAdmins(c echo.Context) error
- func (h *Handlers) GetUserGroupMembers(c echo.Context) error
- func (h *Handlers) GetUserGroups(c echo.Context) error
- func (h *Handlers) GetUserIcon(c echo.Context) error
- func (h *Handlers) GetUserStats(c echo.Context) error
- func (h *Handlers) GetUserTags(c echo.Context) error
- func (h *Handlers) GetUsers(c echo.Context) error
- func (h *Handlers) GetVersion(c echo.Context) error
- func (h *Handlers) GetWebRTCState(c echo.Context) error
- func (h *Handlers) GetWebhook(c echo.Context) error
- func (h *Handlers) GetWebhookIcon(c echo.Context) error
- func (h *Handlers) GetWebhookMessages(c echo.Context) error
- func (h *Handlers) GetWebhooks(c echo.Context) error
- func (h *Handlers) InactivateBot(c echo.Context) error
- func (h *Handlers) L(c echo.Context) *zap.Logger
- func (h *Handlers) LetBotJoinChannel(c echo.Context) error
- func (h *Handlers) LetBotLeaveChannel(c echo.Context) error
- func (h *Handlers) LinkExternalAccount(c echo.Context) error
- func (h *Handlers) Login(c echo.Context) error
- func (h *Handlers) Logout(c echo.Context) error
- func (h *Handlers) PostClipFolderMessage(c echo.Context) error
- func (h *Handlers) PostDirectMessage(c echo.Context) error
- func (h *Handlers) PostFile(c echo.Context) error
- func (h *Handlers) PostMessage(c echo.Context) error
- func (h *Handlers) PostMyFCMDevice(c echo.Context) error
- func (h *Handlers) PostStar(c echo.Context) error
- func (h *Handlers) PostUserGroups(c echo.Context) error
- func (h *Handlers) PostWebRTCAuthenticate(c echo.Context) error
- func (h *Handlers) PostWebhook(c echo.Context) error
- func (h *Handlers) PutMyNotifyCitation(c echo.Context) error
- func (h *Handlers) PutMyPassword(c echo.Context) error
- func (h *Handlers) PutUserGroupIcon(c echo.Context) error
- func (h *Handlers) ReadChannel(c echo.Context) error
- func (h *Handlers) ReissueBot(c echo.Context) error
- func (h *Handlers) RemoveMessageStamp(c echo.Context) error
- func (h *Handlers) RemoveMyStar(c echo.Context) error
- func (h *Handlers) RemoveMyUserTag(c echo.Context) error
- func (h *Handlers) RemovePin(c echo.Context) error
- func (h *Handlers) RemoveUserGroupAdmin(c echo.Context) error
- func (h *Handlers) RemoveUserGroupMember(c echo.Context) error
- func (h *Handlers) RemoveUserTag(c echo.Context) error
- func (h *Handlers) RevokeMySession(c echo.Context) error
- func (h *Handlers) RevokeMyToken(c echo.Context) error
- func (h *Handlers) SearchMessages(c echo.Context) error
- func (h *Handlers) SetChannelSubscribeLevel(c echo.Context) error
- func (h *Handlers) SetChannelSubscribers(c echo.Context) error
- func (h *Handlers) Setup(e *echo.Group)
- func (h *Handlers) UnlinkExternalAccount(c echo.Context) error
- type Message
- type MessageClip
- type MessagePin
- type MessagesQuery
- type OAuth2Client
- type OAuth2ClientDetail
- type PatchBotRequest
- type PatchChannelRequest
- type PatchChannelSubscribersRequest
- type PatchClientRequest
- type PatchMeRequest
- type PatchStampPaletteRequest
- type PatchStampRequest
- type PatchUserGroupMemberRequest
- type PatchUserGroupRequest
- type PatchUserRequest
- type PatchUserTagRequest
- type PatchWebhookRequest
- type Pin
- type PostBotActionJoinRequest
- type PostBotActionLeaveRequest
- type PostBotRequest
- type PostChannelRequest
- type PostClientsRequest
- type PostClipFolderMessageRequest
- type PostClipFolderRequest
- type PostLinkExternalAccount
- type PostLoginRequest
- type PostMessageRequest
- type PostMessageStampRequest
- type PostMyFCMDeviceRequest
- type PostStarRequest
- type PostUnlinkExternalAccount
- type PostUserGroupAdminRequest
- type PostUserGroupMemberRequest
- type PostUserGroupRequest
- type PostUserRequest
- type PostUserTagRequest
- type PostWebRTCAuthenticateRequest
- type PostWebhooksRequest
- type PutChannelSubscribeLevelRequest
- type PutChannelSubscribersRequest
- type PutChannelTopicRequest
- type PutMyNotifyCitationRequest
- type PutMyPasswordRequest
- type PutUserPasswordRequest
- type StampPalette
- type UpdateClipFolderRequest
- type User
- type UserDetail
- type UserGroup
- type UserGroupMember
- type UserTag
- type Webhook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NotImplemented ¶
func NotImplemented(c echo.Context) error
NotImplemented 未実装API. 501 NotImplementedを返す
Types ¶
type Bot ¶
type Bot struct { ID uuid.UUID `json:"id"` BotUserID uuid.UUID `json:"botUserId"` Description string `json:"description"` DeveloperID uuid.UUID `json:"developerId"` SubscribeEvents model.BotEventTypes `json:"subscribeEvents"` Mode model.BotMode `json:"mode"` State model.BotState `json:"state"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
type BotDetail ¶
type BotDetail struct { ID uuid.UUID `json:"id"` BotUserID uuid.UUID `json:"botUserId"` Description string `json:"description"` DeveloperID uuid.UUID `json:"developerId"` SubscribeEvents model.BotEventTypes `json:"subscribeEvents"` Mode model.BotMode `json:"mode"` State model.BotState `json:"state"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` Tokens BotTokens `json:"tokens"` Endpoint string `json:"endpoint"` Privileged bool `json:"privileged"` Channels []uuid.UUID `json:"channels"` }
type CacheHitState ¶
type CacheHitState int
type ClipFolder ¶
type ClipFolderMessage ¶
type CreateStampPaletteRequest ¶
type CreateStampPaletteRequest struct { Name string `json:"name"` Description string `json:"description"` Stamps model.UUIDs `json:"stamps"` }
CreateStampPaletteRequest POST /stamp-palettes リクエストボディ
func (CreateStampPaletteRequest) Validate ¶
func (r CreateStampPaletteRequest) Validate() error
type FileInfo ¶
type FileInfo struct { ID uuid.UUID `json:"id"` Name string `json:"name"` Mime string `json:"mime"` Size int64 `json:"size"` MD5 string `json:"md5"` IsAnimatedImage bool `json:"isAnimatedImage"` CreatedAt time.Time `json:"createdAt"` Thumbnail *FileInfoOldThumbnail `json:"thumbnail"` // deprecated ChannelID optional.UUID `json:"channelId"` UploaderID optional.UUID `json:"uploaderId"` Thumbnails []FileInfoThumbnail `json:"thumbnails"` }
type FileInfoOldThumbnail ¶
type FileInfoOldThumbnail struct { Mime string `json:"mime"` Width int `json:"width,omitempty"` Height int `json:"height,omitempty"` }
FileInfoOldThumbnail deprecated
type FileInfoThumbnail ¶
type GetActivityTimelineRequest ¶
type GetActivityTimelineRequest struct { Limit int `query:"limit"` All bool `query:"all"` PerChannel bool `query:"per_channel"` }
GetActivityTimelineRequest GET /activity/timeline リクエストボディ
func (*GetActivityTimelineRequest) Validate ¶
func (r *GetActivityTimelineRequest) Validate() error
type GetBotLogsRequest ¶
GetBotLogsRequest GET /bots/:botID/logs リクエストクエリ
func (*GetBotLogsRequest) Validate ¶
func (r *GetBotLogsRequest) Validate() error
type GetFilesRequest ¶
type GetFilesRequest struct { Limit int `query:"limit"` Offset int `query:"offset"` Since optional.Time `query:"since"` Until optional.Time `query:"until"` Inclusive bool `query:"inclusive"` Order string `query:"order"` ChannelID uuid.UUID `query:"channelId"` Mine bool `query:"mine"` }
GetFilesRequest GET /files 用リクエストクエリ
func (*GetFilesRequest) Validate ¶
func (q *GetFilesRequest) Validate() error
type GetMyStampHistoryRequest ¶
type GetMyStampHistoryRequest struct {
Limit int `query:"limit"`
}
GetMyStampHistoryRequest GET /users/me/stamp-history リクエストクエリ
func (*GetMyStampHistoryRequest) Validate ¶
func (r *GetMyStampHistoryRequest) Validate() error
type GetStampsQuery ¶
type GetStampsQuery struct { IncludeUnicode string `query:"include-unicode"` Type string `query:"type"` }
GetStampsQuery GET /stamps クエリパラメーター
func (GetStampsQuery) ValidateWithContext ¶
func (q GetStampsQuery) ValidateWithContext(ctx context.Context) error
type Handlers ¶
type Handlers struct { RBAC rbac.RBAC Repo repository.Repository WS *ws.Streamer BotWS *botWS.Streamer Hub *hub.Hub Logger *zap.Logger OC *counter.OnlineCounter OGP ogp.Service VM *viewer.Manager WebRTC *webrtcv3.Manager Imaging imaging.Processor SessStore session.Store SearchEngine search.Engine ChannelManager channel.Manager MessageManager message.Manager FileManager file.Manager Replacer *mutil.Replacer Config }
func (*Handlers) ActivateBot ¶
ActivateBot POST /bots/:botID/actions/activate
func (*Handlers) AddMessageStamp ¶
AddMessageStamp POST /messages/:messageID/stamps/:stampID
func (*Handlers) AddMyUserTag ¶
AddMyUserTag POST /users/me/tags
func (*Handlers) AddUserGroupAdmin ¶
AddUserGroupAdmin POST /groups/:groupID/admins
func (*Handlers) AddUserGroupMember ¶
AddUserGroupMember POST /groups/:groupID/members
func (*Handlers) AddUserTag ¶
AddUserTag POST /users/:userID/tags
func (*Handlers) ChangeBotIcon ¶
ChangeBotIcon PUT /bots/:botID/icon
func (*Handlers) ChangeMyIcon ¶
ChangeMyIcon PUT /users/me/icon
func (*Handlers) ChangeStampImage ¶
ChangeStampImage PUT /stamps/:stampID/image
func (*Handlers) ChangeUserIcon ¶
ChangeUserIcon PUT /users/:userID/icon
func (*Handlers) ChangeUserPassword ¶
ChangeUserPassword PUT /users/:userID/password
func (*Handlers) ChangeWebhookIcon ¶
ChangeWebhookIcon PUT /webhooks/:webhookID/icon
func (*Handlers) CreateChannels ¶
CreateChannels POST /channels
func (*Handlers) CreateClient ¶
CreateClient POST /clients
func (*Handlers) CreateClipFolder ¶
CreateClipFolder POST /clip-folders
func (*Handlers) CreateStamp ¶
CreateStamp POST /stamps
func (*Handlers) CreateStampPalette ¶
CreateStampPalette POST /stamp-palettes
func (*Handlers) CreateUser ¶
CreateUser POST /users
func (*Handlers) CreateWebhook ¶
CreateWebhook POST /webhooks
func (*Handlers) DeleteClient ¶
DeleteClient DELETE /clients/:clientID
func (*Handlers) DeleteClipFolder ¶
DeleteClipFolder DELETE /clip-folders/:folderID
func (*Handlers) DeleteClipFolderMessages ¶
DeleteClipFolderMessages DELETE /clip-folders/:folderID/messages/:messageID
func (*Handlers) DeleteFile ¶
DeleteFile DELETE /files/:fileID
func (*Handlers) DeleteMessage ¶
DeleteMessage DELETE /messages/:messageID
func (*Handlers) DeleteStamp ¶
DeleteStamp DELETE /stamps/:stampID
func (*Handlers) DeleteStampPalette ¶
DeleteStampPalette DELETE /stamp-palette/:paletteID
func (*Handlers) DeleteUserGroup ¶
DeleteUserGroup DELETE /groups/:groupID
func (*Handlers) DeleteWebhook ¶
DeleteWebhook DELETE /webhooks/:webhookID
func (*Handlers) EditChannel ¶
EditChannel PATCH /channels/:channelID
func (*Handlers) EditChannelSubscribers ¶
EditChannelSubscribers PATCH /channels/:channelID/subscribers
func (*Handlers) EditChannelTopic ¶
EditChannelTopic PUT /channels/:channelID/topic
func (*Handlers) EditClient ¶
EditClient PATCH /clients/:clientID
func (*Handlers) EditClipFolder ¶
EditClipFolder PATCH /clip-folders/:folderID
func (*Handlers) EditMessage ¶
EditMessage PUT /messages/:messageID
func (*Handlers) EditMyUserTag ¶
EditMyUserTag PATCH /users/me/tags/:tagID
func (*Handlers) EditStampPalette ¶
EditStampPalette PATCH /stamp-palettes/:paletteID
func (*Handlers) EditUserGroup ¶
EditUserGroup PATCH /groups/:groupID
func (*Handlers) EditUserGroupMember ¶
EditUserGroupMember POST /groups/:groupID/members/:userID
func (*Handlers) EditUserTag ¶
EditUserTag PATCH /users/:userID/tags/:tagID
func (*Handlers) EditWebhook ¶
EditWebhook PATCH /webhooks/:webhookID
func (*Handlers) GetActivityTimeline ¶
GetActivityTimeline GET /activity/timeline
func (*Handlers) GetBotIcon ¶
GetBotIcon GET /bots/:botID/icon
func (*Handlers) GetBotLogs ¶
GetBotLogs GET /bots/:botID/logs
func (*Handlers) GetChannel ¶
GetChannel GET /channels/:channelID
func (*Handlers) GetChannelBots ¶
GetChannelBots GET /channels/:channelID/bots
func (*Handlers) GetChannelEvents ¶
GetChannelEvents GET /channels/:channelID/events
func (*Handlers) GetChannelPins ¶
GetChannelPins GET /channels/:channelID/pins
func (*Handlers) GetChannelStats ¶
GetChannelStats GET /channels/:channelID/stats
func (*Handlers) GetChannelSubscribers ¶
GetChannelSubscribers GET /channels/:channelID/subscribers
func (*Handlers) GetChannelTopic ¶
GetChannelTopic GET /channels/:channelID/topic
func (*Handlers) GetChannelViewers ¶
GetChannelViewers GET /channels/:channelID/viewers
func (*Handlers) GetChannels ¶
GetChannels GET /channels
func (*Handlers) GetClients ¶
GetClients GET /clients
func (*Handlers) GetClipFolder ¶
GetClipFolder GET /clip-folders/:folderID
func (*Handlers) GetClipFolderMessages ¶
GetClipFolderMessages GET /clip-folders/:folderID/messages
func (*Handlers) GetClipFolders ¶
GetClipFolders GET /clip-folders
func (*Handlers) GetDirectMessages ¶
GetDirectMessages GET /users/:userId/messages
func (*Handlers) GetFileMeta ¶
GetFileMeta GET /files/:fileID/meta
func (*Handlers) GetMessage ¶
GetMessage GET /messages/:messageID
func (*Handlers) GetMessageClips ¶
GetMessageClips GET /messages/:messageID/clips
func (*Handlers) GetMessageStamps ¶
GetMessageStamps GET /messages/:messageID/stamps
func (*Handlers) GetMessages ¶
GetMessages GET /channels/:channelID/messages
func (*Handlers) GetMyChannelSubscriptions ¶
GetMyChannelSubscriptions GET /users/me/subscriptions
func (*Handlers) GetMyExternalAccounts ¶
GetMyExternalAccounts GET /users/me/ex-accounts
func (*Handlers) GetMyNotifyCitation ¶
GetMyNotifyCitation GET /user/me/settings/notify-citation
func (*Handlers) GetMyQRCode ¶
GetMyQRCode GET /users/me/qr-code
func (*Handlers) GetMySessions ¶
GetMySessions GET /users/me/sessions
func (*Handlers) GetMySettings ¶
GetMySettings GET /user/me/settings
func (*Handlers) GetMyStampHistory ¶
GetMyStampHistory GET /users/me/stamp-history
func (*Handlers) GetMyStars ¶
GetMyStars GET /users/me/stars
func (*Handlers) GetMyTokens ¶
GetMyTokens GET /users/me/tokens
func (*Handlers) GetMyUnreadChannels ¶
GetMyUnreadChannels GET /users/me/unread
func (*Handlers) GetMyUserTags ¶
GetMyUserTags GET /users/me/tags
func (*Handlers) GetMyViewStates ¶
func (*Handlers) GetOnlineUsers ¶
GetOnlineUsers GET /activity/onlines
func (*Handlers) GetPublicUserIcon ¶
GetPublicUserIcon GET /public/icon/{username}
func (*Handlers) GetStampImage ¶
GetStampImage GET /stamps/:stampID/image
func (*Handlers) GetStampPalette ¶
GetStampPalette GET /stamp-palette/:paletteID
func (*Handlers) GetStampPalettes ¶
GetStampPalettes GET /stamp-palettes
func (*Handlers) GetStampStats ¶
GetStampStats GET /stamps/:stampID/stats
func (*Handlers) GetThumbnailImage ¶
GetThumbnailImage GET /files/:fileID/thumbnail
func (*Handlers) GetUserDMChannel ¶
GetUserDMChannel GET /users/:userID/dm-channel
func (*Handlers) GetUserGroup ¶
GetUserGroup GET /groups/:groupID
func (*Handlers) GetUserGroupAdmins ¶
GetUserGroupAdmins GET /groups/:groupID/admins
func (*Handlers) GetUserGroupMembers ¶
GetUserGroupMembers GET /groups/:groupID/members
func (*Handlers) GetUserGroups ¶
GetUserGroups GET /groups
func (*Handlers) GetUserIcon ¶
GetUserIcon GET /users/:userID/icon
func (*Handlers) GetUserStats ¶
GetUserStats GET /users/me/:userID/stats
func (*Handlers) GetUserTags ¶
GetUserTags GET /users/:userID/tags
func (*Handlers) GetVersion ¶
GetVersion GET /version
func (*Handlers) GetWebRTCState ¶
GetWebRTCState GET /webrtc/state
func (*Handlers) GetWebhook ¶
GetWebhook GET /webhooks/:webhookID
func (*Handlers) GetWebhookIcon ¶
GetWebhookIcon GET /webhooks/:webhookID/icon
func (*Handlers) GetWebhookMessages ¶
GetWebhookMessages GET /webhooks/:webhookID/messages
func (*Handlers) GetWebhooks ¶
GetWebhooks GET /webhooks
func (*Handlers) InactivateBot ¶
InactivateBot POST /bots/:botID/actions/inactivate
func (*Handlers) LetBotJoinChannel ¶
LetBotJoinChannel POST /bots/:botID/actions/join
func (*Handlers) LetBotLeaveChannel ¶
LetBotLeaveChannel POST /bots/:botID/actions/leave
func (*Handlers) LinkExternalAccount ¶
LinkExternalAccount POST /users/me/ex-accounts/link
func (*Handlers) PostClipFolderMessage ¶
PostClipFolderMessage POST /clip-folders/:folderID/messages
func (*Handlers) PostDirectMessage ¶
PostDirectMessage POST /users/:userId/messages
func (*Handlers) PostMessage ¶
PostMessage POST /channels/:channelID/messages
func (*Handlers) PostMyFCMDevice ¶
PostMyFCMDevice POST /users/me/fcm-device
func (*Handlers) PostUserGroups ¶
PostUserGroups POST /groups
func (*Handlers) PostWebRTCAuthenticate ¶
PostWebRTCAuthenticate POST /webrtc/authenticate
func (*Handlers) PostWebhook ¶
PostWebhook POST /webhooks/:webhookID
func (*Handlers) PutMyNotifyCitation ¶
PutMyNotifyCitation PUT /user/me/settings/notify-citation
func (*Handlers) PutMyPassword ¶
PutMyPassword PUT /users/me/password
func (*Handlers) PutUserGroupIcon ¶
PutUserGroupIcon PUT /groups/:groupID/icon
func (*Handlers) ReadChannel ¶
ReadChannel DELETE /users/me/unread/:channelID
func (*Handlers) ReissueBot ¶
ReissueBot POST /bots/:botID/actions/reissue
func (*Handlers) RemoveMessageStamp ¶
RemoveMessageStamp DELETE /messages/:messageID/stamps/:stampID
func (*Handlers) RemoveMyStar ¶
RemoveMyStar DELETE /users/me/stars/:channelID
func (*Handlers) RemoveMyUserTag ¶
RemoveMyUserTag DELETE /users/me/tags/:tagID
func (*Handlers) RemoveUserGroupAdmin ¶
RemoveUserGroupAdmin DELETE /groups/:groupID/admins/:userID
func (*Handlers) RemoveUserGroupMember ¶
RemoveUserGroupMember DELETE /groups/:groupID/members/:userID
func (*Handlers) RemoveUserTag ¶
RemoveUserTag DELETE /users/:userID/tags/:tagID
func (*Handlers) RevokeMySession ¶
RevokeMySession DELETE /users/me/sessions/:referenceID
func (*Handlers) RevokeMyToken ¶
RevokeMyToken DELETE /users/me/tokens/:tokenID
func (*Handlers) SearchMessages ¶
SearchMessages GET /messages
func (*Handlers) SetChannelSubscribeLevel ¶
SetChannelSubscribeLevel PUT /users/me/subscriptions/:channelID
func (*Handlers) SetChannelSubscribers ¶
SetChannelSubscribers PUT /channels/:channelID/subscribers
func (*Handlers) UnlinkExternalAccount ¶
UnlinkExternalAccount POST /users/me/ex-accounts/unlink
type Message ¶
type Message struct { ID uuid.UUID `json:"id"` UserID uuid.UUID `json:"userId"` ChannelID uuid.UUID `json:"channelId"` Content string `json:"content"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` Pinned bool `json:"pinned"` Stamps []model.MessageStamp `json:"stamps"` ThreadID optional.UUID `json:"threadId"` // TODO }
type MessageClip ¶
type MessagePin ¶
type MessagesQuery ¶
type MessagesQuery struct { Limit int `query:"limit"` Offset int `query:"offset"` Since optional.Time `query:"since"` Until optional.Time `query:"until"` Inclusive bool `query:"inclusive"` Order string `query:"order"` }
func (*MessagesQuery) Validate ¶
func (q *MessagesQuery) Validate() error
type OAuth2Client ¶
type OAuth2ClientDetail ¶
type PatchBotRequest ¶
type PatchBotRequest struct { DisplayName optional.String `json:"displayName"` Description optional.String `json:"description"` Mode optional.String `json:"mode"` Endpoint optional.String `json:"endpoint"` Privileged optional.Bool `json:"privileged"` DeveloperID optional.UUID `json:"developerId"` SubscribeEvents model.BotEventTypes `json:"subscribeEvents"` }
PatchBotRequest PATCH /bots/:botID リクエストボディ
func (PatchBotRequest) ValidateWithContext ¶
func (r PatchBotRequest) ValidateWithContext(ctx context.Context) error
type PatchChannelRequest ¶
type PatchChannelRequest struct { Name optional.String `json:"name"` Archived optional.Bool `json:"archived"` Force optional.Bool `json:"force"` Parent optional.UUID `json:"parent"` }
PatchChannelRequest PATCH /channels/:channelID リクエストボディ
func (PatchChannelRequest) Validate ¶
func (r PatchChannelRequest) Validate() error
type PatchChannelSubscribersRequest ¶
PatchChannelSubscribersRequest PATCH /channels/:channelID/subscribers リクエストボディ
type PatchClientRequest ¶
type PatchClientRequest struct { Name optional.String `json:"name"` Description optional.String `json:"description"` CallbackURL optional.String `json:"callbackUrl"` DeveloperID optional.UUID `json:"developerId"` }
PatchClientRequest PATCH /clients/:clientID リクエストボディ
func (PatchClientRequest) Validate ¶
func (r PatchClientRequest) Validate() error
type PatchMeRequest ¶
type PatchMeRequest struct { DisplayName optional.String `json:"displayName"` TwitterID optional.String `json:"twitterId"` Bio optional.String `json:"bio"` HomeChannel optional.UUID `json:"homeChannel"` }
PatchMeRequest PATCH /users/me リクエストボディ
func (PatchMeRequest) ValidateWithContext ¶
func (r PatchMeRequest) ValidateWithContext(ctx context.Context) error
type PatchStampPaletteRequest ¶
type PatchStampPaletteRequest struct { Name optional.String `json:"name"` Description optional.String `json:"description"` Stamps model.UUIDs `json:"stamps"` }
PatchStampPaletteRequest PATCH /stamp-palettes/:paletteID リクエストボディ
func (PatchStampPaletteRequest) Validate ¶
func (r PatchStampPaletteRequest) Validate() error
type PatchStampRequest ¶
type PatchStampRequest struct { Name optional.String `json:"name"` CreatorID optional.UUID `json:"creatorId"` }
PatchStampRequest PATCH /stamps/:stampID リクエストボディ
func (PatchStampRequest) ValidateWithContext ¶
func (r PatchStampRequest) ValidateWithContext(ctx context.Context) error
type PatchUserGroupMemberRequest ¶
type PatchUserGroupMemberRequest struct {
Role string `json:"role"`
}
PatchUserGroupMemberRequest PATCH /groups/:groupID/members リクエストボディ
func (PatchUserGroupMemberRequest) Validate ¶
func (r PatchUserGroupMemberRequest) Validate() error
type PatchUserGroupRequest ¶
type PatchUserGroupRequest struct { Name optional.String `json:"name"` Description optional.String `json:"description"` Type optional.String `json:"type"` }
PatchUserGroupRequest PATCH /groups/:groupID リクエストボディ
func (PatchUserGroupRequest) Validate ¶
func (r PatchUserGroupRequest) Validate() error
type PatchUserRequest ¶
type PatchUserRequest struct { DisplayName optional.String `json:"displayName"` TwitterID optional.String `json:"twitterId"` Role optional.String `json:"role"` State optional.Int `json:"state"` }
PatchUserRequest PATCH /users/:userID リクエストボディ
func (PatchUserRequest) Validate ¶
func (r PatchUserRequest) Validate() error
type PatchUserTagRequest ¶
type PatchUserTagRequest struct {
IsLocked bool `json:"isLocked"`
}
PatchUserTagRequest PATCH /users/:userID/tags/:tagID リクエストボディ
type PatchWebhookRequest ¶
type PatchWebhookRequest struct { Name optional.String `json:"name"` Description optional.String `json:"description"` ChannelID optional.UUID `json:"channelId"` Secret optional.String `json:"secret"` OwnerID optional.UUID `json:"ownerId"` }
PatchWebhookRequest PATCH /webhooks/:webhookID リクエストボディ
func (PatchWebhookRequest) ValidateWithContext ¶
func (r PatchWebhookRequest) ValidateWithContext(ctx context.Context) error
type PostBotActionJoinRequest ¶
PostBotActionJoinRequest POST /bots/:botID/actions/join リクエストボディ
func (PostBotActionJoinRequest) ValidateWithContext ¶
func (r PostBotActionJoinRequest) ValidateWithContext(ctx context.Context) error
type PostBotActionLeaveRequest ¶
PostBotActionLeaveRequest POST /bots/:botID/actions/leave リクエストボディ
func (PostBotActionLeaveRequest) Validate ¶
func (r PostBotActionLeaveRequest) Validate() error
type PostBotRequest ¶
type PostBotRequest struct { Name string `json:"name"` DisplayName string `json:"displayName"` Description string `json:"description"` Mode string `json:"mode"` Endpoint string `json:"endpoint"` }
PostBotRequest POST /bots リクエストボディ
func (PostBotRequest) Validate ¶
func (r PostBotRequest) Validate() error
type PostChannelRequest ¶
PostChannelRequest POST /channels リクエストボディ
func (PostChannelRequest) Validate ¶
func (r PostChannelRequest) Validate() error
type PostClientsRequest ¶
type PostClientsRequest struct { Name string `json:"name"` Description string `json:"description"` CallbackURL string `json:"callbackUrl"` Scopes model.AccessScopes `json:"scopes"` }
PostClientsRequest POST /clients リクエストボディ
func (PostClientsRequest) Validate ¶
func (r PostClientsRequest) Validate() error
type PostClipFolderRequest ¶
type PostClipFolderRequest struct { Name string `json:"name"` Description string `json:"description"` }
func (PostClipFolderRequest) Validate ¶
func (r PostClipFolderRequest) Validate() error
type PostLinkExternalAccount ¶
type PostLinkExternalAccount struct {
ProviderName string `json:"providerName"`
}
PostLinkExternalAccount POST /users/me/ex-accounts/link リクエストボディ
func (PostLinkExternalAccount) Validate ¶
func (r PostLinkExternalAccount) Validate() error
type PostLoginRequest ¶
PostLoginRequest POST /login リクエストボディ
func (PostLoginRequest) Validate ¶
func (r PostLoginRequest) Validate() error
type PostMessageRequest ¶
type PostMessageRequest struct { Content string `json:"content"` Embed bool `json:"embed" query:"embed"` }
PostMessageRequest POST /channels/:channelID/messages等リクエストボディ
func (PostMessageRequest) Validate ¶
func (r PostMessageRequest) Validate() error
type PostMessageStampRequest ¶
type PostMessageStampRequest struct {
Count int `json:"count"`
}
PostMessageStampRequest POST /messages/:messageID/stamps/:stampID リクエストボディ
func (*PostMessageStampRequest) Validate ¶
func (r *PostMessageStampRequest) Validate() error
type PostMyFCMDeviceRequest ¶
type PostMyFCMDeviceRequest struct {
Token string `json:"token"`
}
PostMyFCMDeviceRequest POST /users/me/fcm-device リクエストボディ
func (PostMyFCMDeviceRequest) Validate ¶
func (r PostMyFCMDeviceRequest) Validate() error
type PostStarRequest ¶
PostStarRequest POST /users/me/stars リクエストボディ
func (PostStarRequest) ValidateWithContext ¶
func (r PostStarRequest) ValidateWithContext(ctx context.Context) error
type PostUnlinkExternalAccount ¶
type PostUnlinkExternalAccount struct {
ProviderName string `json:"providerName"`
}
PostUnlinkExternalAccount POST /users/me/ex-accounts/unlink リクエストボディ
func (PostUnlinkExternalAccount) Validate ¶
func (r PostUnlinkExternalAccount) Validate() error
type PostUserGroupAdminRequest ¶
PostUserGroupAdminRequest POST /groups/:groupID/admins リクエストボディ
func (PostUserGroupAdminRequest) ValidateWithContext ¶
func (r PostUserGroupAdminRequest) ValidateWithContext(ctx context.Context) error
type PostUserGroupMemberRequest ¶
PostUserGroupMemberRequest POST /groups/:groupID/members リクエストボディ
func (PostUserGroupMemberRequest) ValidateWithContext ¶
func (r PostUserGroupMemberRequest) ValidateWithContext(ctx context.Context) error
type PostUserGroupRequest ¶
type PostUserGroupRequest struct { Name string `json:"name"` Description string `json:"description"` Type string `json:"type"` }
PostUserGroupRequest POST /groups リクエストボディ
func (PostUserGroupRequest) Validate ¶
func (r PostUserGroupRequest) Validate() error
type PostUserRequest ¶
type PostUserRequest struct { Name string `json:"name"` Password optional.String `json:"password"` }
PostUserRequest POST /users リクエストボディ
func (PostUserRequest) Validate ¶
func (r PostUserRequest) Validate() error
type PostUserTagRequest ¶
type PostUserTagRequest struct {
Tag string `json:"tag"`
}
PostUserTagRequest POST /users/:userID/tags リクエストボディ
func (PostUserTagRequest) Validate ¶
func (r PostUserTagRequest) Validate() error
type PostWebRTCAuthenticateRequest ¶
type PostWebRTCAuthenticateRequest struct {
PeerID string `json:"peerId"`
}
PostWebRTCAuthenticateRequest POST /webrtc/authenticate リクエストボディ
func (PostWebRTCAuthenticateRequest) Validate ¶
func (r PostWebRTCAuthenticateRequest) Validate() error
type PostWebhooksRequest ¶
type PostWebhooksRequest struct { Name string `json:"name"` Description string `json:"description"` ChannelID uuid.UUID `json:"channelId"` Secret string `json:"secret"` }
PostWebhooksRequest POST /webhooks リクエストボディ
func (PostWebhooksRequest) ValidateWithContext ¶
func (r PostWebhooksRequest) ValidateWithContext(ctx context.Context) error
type PutChannelSubscribeLevelRequest ¶
PutChannelSubscribeLevelRequest PUT /users/me/subscriptions/:channelID リクエストボディ
func (PutChannelSubscribeLevelRequest) Validate ¶
func (r PutChannelSubscribeLevelRequest) Validate() error
type PutChannelSubscribersRequest ¶
PutChannelSubscribersRequest PUT /channels/:channelID/subscribers リクエストボディ
type PutChannelTopicRequest ¶
type PutChannelTopicRequest struct {
Topic string `json:"topic"`
}
PutChannelTopicRequest PUT /channels/:channelID/topic リクエストボディ
func (PutChannelTopicRequest) Validate ¶
func (r PutChannelTopicRequest) Validate() error
type PutMyNotifyCitationRequest ¶
type PutMyNotifyCitationRequest struct {
NotifyCitation bool `json:"notifyCitation"`
}
PutMyNotifyCitationRequest PUT /user/me/settings/notify-citation リクエストボディ
type PutMyPasswordRequest ¶
type PutMyPasswordRequest struct { Password string `json:"password"` NewPassword string `json:"newPassword"` }
PutMyPasswordRequest PUT /users/me/password リクエストボディ
func (PutMyPasswordRequest) Validate ¶
func (r PutMyPasswordRequest) Validate() error
type PutUserPasswordRequest ¶
type PutUserPasswordRequest struct {
NewPassword string `json:"newPassword"`
}
PutUserPasswordRequest PUT /users/:userID/password リクエストボディ
func (PutUserPasswordRequest) Validate ¶
func (r PutUserPasswordRequest) Validate() error
type StampPalette ¶
type UpdateClipFolderRequest ¶
type UpdateClipFolderRequest struct { Name optional.String `json:"name"` Description optional.String `json:"description"` }
func (UpdateClipFolderRequest) Validate ¶
func (r UpdateClipFolderRequest) Validate() error
type UserDetail ¶
type UserDetail struct { ID uuid.UUID `json:"id"` State int `json:"state"` Bot bool `json:"bot"` IconFileID uuid.UUID `json:"iconFileId"` DisplayName string `json:"displayName"` Name string `json:"name"` TwitterID string `json:"twitterId"` LastOnline optional.Time `json:"lastOnline"` UpdatedAt time.Time `json:"updatedAt"` Tags []UserTag `json:"tags"` Groups []uuid.UUID `json:"groups"` Bio string `json:"bio"` HomeChannel optional.UUID `json:"homeChannel"` }
type UserGroup ¶
type UserGroup struct { ID uuid.UUID `json:"id"` Name string `json:"name"` Description string `json:"description"` Type string `json:"type"` Icon uuid.UUID `json:"icon"` Members []UserGroupMember `json:"members"` Admins []uuid.UUID `json:"admins"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
type UserGroupMember ¶
type Webhook ¶
type Webhook struct { WebhookID string `json:"id"` BotUserID string `json:"botUserId"` DisplayName string `json:"displayName"` Description string `json:"description"` Secure bool `json:"secure"` ChannelID string `json:"channelId"` OwnerID string `json:"ownerId"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }