Documentation
¶
Index ¶
- func AccessControlMiddlewareGenerator(rbac *rbac.RBAC) func(p ...gorbac.Permission) echo.MiddlewareFunc
- func CustomHTTPErrorHandler(err error, c echo.Context)
- func DeleteAllMySessions(c echo.Context) error
- func DeleteMySession(c echo.Context) error
- func GetMySessions(c echo.Context) error
- func LoadWebhookTemplate(pattern string)
- func RequestBodyLengthLimit(kb int64) echo.MiddlewareFunc
- func SetupRouting(e *echo.Echo, h *Handlers)
- type AllowedClientInfo
- type ChannelForResponse
- type ClientInfo
- type Handlers
- func (h *Handlers) DeleteChannelByChannelID(c echo.Context) error
- func (h *Handlers) DeleteClient(c echo.Context) error
- func (h *Handlers) DeleteClip(c echo.Context) error
- func (h *Handlers) DeleteClipFolder(c echo.Context) error
- func (h *Handlers) DeleteFileByID(c echo.Context) error
- func (h *Handlers) DeleteMessageByID(c echo.Context) error
- func (h *Handlers) DeleteMessageStamp(c echo.Context) error
- func (h *Handlers) DeleteMutedChannel(c echo.Context) error
- func (h *Handlers) DeleteMyToken(c echo.Context) error
- func (h *Handlers) DeletePin(c echo.Context) error
- func (h *Handlers) DeleteStamp(c echo.Context) error
- func (h *Handlers) DeleteStars(c echo.Context) error
- func (h *Handlers) DeleteUnread(c echo.Context) error
- func (h *Handlers) DeleteUserGroup(c echo.Context) error
- func (h *Handlers) DeleteUserGroupMembers(c echo.Context) error
- func (h *Handlers) DeleteUserTag(c echo.Context) error
- func (h *Handlers) DeleteWebhook(c echo.Context) error
- func (h *Handlers) GetActivityLatestMessages(c echo.Context) error
- func (h *Handlers) GetChannelByChannelID(c echo.Context) error
- func (h *Handlers) GetChannelPin(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) GetClip(c echo.Context) error
- func (h *Handlers) GetClipFolder(c echo.Context) error
- func (h *Handlers) GetClipFolders(c echo.Context) error
- func (h *Handlers) GetClips(c echo.Context) error
- func (h *Handlers) GetClipsFolder(c echo.Context) error
- func (h *Handlers) GetDirectMessages(c echo.Context) error
- func (h *Handlers) GetFileByID(c echo.Context) error
- func (h *Handlers) GetHeartbeat(c echo.Context) error
- func (h *Handlers) GetMe(c echo.Context) error
- func (h *Handlers) GetMessageByID(c echo.Context) error
- func (h *Handlers) GetMessageReports(c echo.Context) error
- func (h *Handlers) GetMessageStamps(c echo.Context) error
- func (h *Handlers) GetMessagesByChannelID(c echo.Context) error
- func (h *Handlers) GetMetaDataByFileID(c echo.Context) error
- func (h *Handlers) GetMutedChannelIDs(c echo.Context) error
- func (h *Handlers) GetMyBelongingGroup(c echo.Context) error
- func (h *Handlers) GetMyIcon(c echo.Context) error
- func (h *Handlers) GetMyNotificationChannels(c echo.Context) error
- func (h *Handlers) GetMyStampHistory(c echo.Context) error
- func (h *Handlers) GetMyTokens(c echo.Context) error
- func (h *Handlers) GetNotificationChannels(c echo.Context) error
- func (h *Handlers) GetNotificationStatus(c echo.Context) error
- func (h *Handlers) GetPin(c echo.Context) error
- func (h *Handlers) GetPublicEmojiCSS(c echo.Context) error
- func (h *Handlers) GetPublicEmojiImage(c echo.Context) error
- func (h *Handlers) GetPublicEmojiJSON(c echo.Context) error
- func (h *Handlers) GetPublicUserIcon(c echo.Context) error
- func (h *Handlers) GetStamp(c echo.Context) error
- func (h *Handlers) GetStamps(c echo.Context) error
- func (h *Handlers) GetStars(c echo.Context) error
- func (h *Handlers) GetThumbnailByID(c echo.Context) error
- func (h *Handlers) GetTopic(c echo.Context) error
- func (h *Handlers) GetUnread(c echo.Context) error
- func (h *Handlers) GetUserBelongingGroup(c echo.Context) error
- func (h *Handlers) GetUserByID(c echo.Context) error
- func (h *Handlers) GetUserGroup(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) GetUserTags(c echo.Context) error
- func (h *Handlers) GetUsers(c echo.Context) error
- func (h *Handlers) GetUsersByTagID(c echo.Context) error
- func (h *Handlers) GetWebhook(c echo.Context) error
- func (h *Handlers) GetWebhooks(c echo.Context) error
- func (h *Handlers) NotificationStream(c echo.Context) error
- func (h *Handlers) PatchChannelByChannelID(c echo.Context) error
- func (h *Handlers) PatchClient(c echo.Context) error
- func (h *Handlers) PatchClipFolder(c echo.Context) error
- func (h *Handlers) PatchMe(c echo.Context) error
- func (h *Handlers) PatchStamp(c echo.Context) error
- func (h *Handlers) PatchTag(c echo.Context) error
- func (h *Handlers) PatchUserGroup(c echo.Context) error
- func (h *Handlers) PatchUserTag(c echo.Context) error
- func (h *Handlers) PatchWebhook(c echo.Context) error
- func (h *Handlers) PostChannelChildren(c echo.Context) error
- func (h *Handlers) PostChannels(c echo.Context) error
- func (h *Handlers) PostClients(c echo.Context) error
- func (h *Handlers) PostClip(c echo.Context) error
- func (h *Handlers) PostClipFolder(c echo.Context) error
- func (h *Handlers) PostDeviceToken(c echo.Context) error
- func (h *Handlers) PostDirectMessage(c echo.Context) error
- func (h *Handlers) PostFile(c echo.Context) error
- func (h *Handlers) PostHeartbeat(c echo.Context) error
- func (h *Handlers) PostLogin(c echo.Context) error
- func (h *Handlers) PostLogout(c echo.Context) error
- func (h *Handlers) PostMessage(c echo.Context) error
- func (h *Handlers) PostMessageReport(c echo.Context) error
- func (h *Handlers) PostMessageStamp(c echo.Context) error
- func (h *Handlers) PostMutedChannel(c echo.Context) error
- func (h *Handlers) PostPin(c echo.Context) error
- func (h *Handlers) PostStamp(c echo.Context) error
- func (h *Handlers) PostUserGroupMembers(c echo.Context) error
- func (h *Handlers) PostUserGroups(c echo.Context) error
- func (h *Handlers) PostUserTag(c echo.Context) error
- func (h *Handlers) PostUsers(c echo.Context) error
- func (h *Handlers) PostWebhook(c echo.Context) error
- func (h *Handlers) PostWebhookByGithub(c echo.Context) error
- func (h *Handlers) PostWebhooks(c echo.Context) error
- func (h *Handlers) PutChannelParent(c echo.Context) error
- func (h *Handlers) PutClipsFolder(c echo.Context) error
- func (h *Handlers) PutMessageByID(c echo.Context) error
- func (h *Handlers) PutMyIcon(c echo.Context) error
- func (h *Handlers) PutNotificationStatus(c echo.Context) error
- func (h *Handlers) PutPassword(c echo.Context) error
- func (h *Handlers) PutStars(c echo.Context) error
- func (h *Handlers) PutTopic(c echo.Context) error
- func (h *Handlers) PutWebhookIcon(c echo.Context) error
- func (h *Handlers) UserAuthenticate(oh *oauth2.Handler) echo.MiddlewareFunc
- func (h *Handlers) ValidateChannelID(availabilityCheckOnly bool) echo.MiddlewareFunc
- func (h *Handlers) ValidateClipFolderID() echo.MiddlewareFunc
- func (h *Handlers) ValidateClipID() echo.MiddlewareFunc
- func (h *Handlers) ValidateFileID() echo.MiddlewareFunc
- func (h *Handlers) ValidateGroupID() echo.MiddlewareFunc
- func (h *Handlers) ValidateMessageID() echo.MiddlewareFunc
- func (h *Handlers) ValidatePinID() echo.MiddlewareFunc
- func (h *Handlers) ValidateStampID(existenceCheckOnly bool) echo.MiddlewareFunc
- func (h *Handlers) ValidateUserID(existenceCheckOnly bool) echo.MiddlewareFunc
- func (h *Handlers) ValidateWebhookID(requestUserCheck bool) echo.MiddlewareFunc
- type MessageForResponse
- type OwnedClientInfo
- type Payload
- type PostChannel
- type SSEStreamer
- type TagForResponse
- type UserDetailForResponse
- type UserForResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessControlMiddlewareGenerator ¶
func AccessControlMiddlewareGenerator(rbac *rbac.RBAC) func(p ...gorbac.Permission) echo.MiddlewareFunc
AccessControlMiddlewareGenerator アクセスコントロールミドルウェアのジェネレーターを返します
func CustomHTTPErrorHandler ¶
CustomHTTPErrorHandler json形式でエラーレスポンスを返す
func DeleteAllMySessions ¶
DeleteAllMySessions DELETE /users/me/sessions
func DeleteMySession ¶
DeleteMySession DELETE /users/me/sessions/:referenceID
func LoadWebhookTemplate ¶
func LoadWebhookTemplate(pattern string)
LoadWebhookTemplate Webhookのテンプレートファイルを読み込みます
func RequestBodyLengthLimit ¶
func RequestBodyLengthLimit(kb int64) echo.MiddlewareFunc
RequestBodyLengthLimit リクエストボディのContentLengthで制限をかけるミドルウェア
Types ¶
type AllowedClientInfo ¶
type AllowedClientInfo struct { TokenID string `json:"tokenId"` ClientID string `json:"clientId"` Name string `json:"name"` Description string `json:"description"` CreatorID string `json:"creatorId"` Scopes scope.AccessScopes `json:"scopes"` ApprovedAt time.Time `json:"approvedAt"` }
AllowedClientInfo レスポンス用クライアント情報構造体
type ChannelForResponse ¶
type ChannelForResponse struct { ChannelID string `json:"channelId"` Name string `json:"name"` Parent string `json:"parent"` Children []uuid.UUID `json:"children"` Member []uuid.UUID `json:"member"` Visibility bool `json:"visibility"` Force bool `json:"force"` Private bool `json:"private"` DM bool `json:"dm"` }
ChannelForResponse レスポンス用のチャンネル構造体
type ClientInfo ¶
type ClientInfo struct { ClientID string `json:"clientId"` Name string `json:"name"` Description string `json:"description"` CreatorID string `json:"creatorId"` }
ClientInfo レスポンス用クライアント情報構造体
type Handlers ¶
type Handlers struct { OAuth2 *oauth2.Handler RBAC *rbac.RBAC Repo repository.Repository SSE *SSEStreamer Hub *hub.Hub ImageMagickPath string }
Handlers ハンドラ
func NewHandlers ¶
func NewHandlers(oauth2 *oauth2.Handler, rbac *rbac.RBAC, repo repository.Repository, hub *hub.Hub, imageMagickPath string) *Handlers
NewHandlers ハンドラを生成します
func (*Handlers) DeleteChannelByChannelID ¶
DeleteChannelByChannelID DELETE /channels/:channelID
func (*Handlers) DeleteClient ¶
DeleteClient DELETE /clients/:clientID
func (*Handlers) DeleteClip ¶
DeleteClip DELETE /users/me/clips/:clipID
func (*Handlers) DeleteClipFolder ¶
DeleteClipFolder DELETE /users/me/clips/folders/:folderID
func (*Handlers) DeleteFileByID ¶
DeleteFileByID DELETE /files/:fileID
func (*Handlers) DeleteMessageByID ¶
DeleteMessageByID DELETE /message/:messageID
func (*Handlers) DeleteMessageStamp ¶
DeleteMessageStamp DELETE /messages/:messageID/stamps/:stampID
func (*Handlers) DeleteMutedChannel ¶
DeleteMutedChannel DELETE /users/me/mute/:channelID
func (*Handlers) DeleteMyToken ¶
DeleteMyToken DELETE /users/me/tokens/:tokenID
func (*Handlers) DeleteStamp ¶
DeleteStamp DELETE /stamps/:stampID
func (*Handlers) DeleteStars ¶
DeleteStars DELETE /users/me/stars/:channelID
func (*Handlers) DeleteUnread ¶
DeleteUnread DELETE /users/me/unread/:channelID
func (*Handlers) DeleteUserGroup ¶
DeleteUserGroup DELETE /groups/:groupID
func (*Handlers) DeleteUserGroupMembers ¶
DeleteUserGroupMembers DELETE /groups/:groupID/members/:userID
func (*Handlers) DeleteUserTag ¶
DeleteUserTag DELETE /users/:userID/tags/:tagID
func (*Handlers) DeleteWebhook ¶
DeleteWebhook DELETE /webhooks/:webhookID
func (*Handlers) GetActivityLatestMessages ¶
GET /activity/latest-messages
func (*Handlers) GetChannelByChannelID ¶
GetChannelByChannelID GET /channels/:channelID
func (*Handlers) GetChannelPin ¶
GetChannelPin GET /channels/:channelID/pins
func (*Handlers) GetChannels ¶
GetChannels GET /channels
func (*Handlers) GetClients ¶
GetClients GET /clients
func (*Handlers) GetClipFolder ¶
GetClipFolder GET /users/me/clips/folders/:folderID
func (*Handlers) GetClipFolders ¶
GetClipFolders GET /users/me/clips/folders
func (*Handlers) GetClipsFolder ¶
GetClipsFolder GET /users/me/clips/:clipID/folder
func (*Handlers) GetDirectMessages ¶
GetDirectMessages GET /users/:userId/messages
func (*Handlers) GetFileByID ¶
GetFileByID GET /files/:fileID
func (*Handlers) GetHeartbeat ¶
GetHeartbeat GET /heartbeat
func (*Handlers) GetMessageByID ¶
GetMessageByID GET /messages/:messageID
func (*Handlers) GetMessageReports ¶
GetMessageReports GET /reports
func (*Handlers) GetMessageStamps ¶
GetMessageStamps GET /messages/:messageID/stamps
func (*Handlers) GetMessagesByChannelID ¶
GetMessagesByChannelID GET /channels/:channelID/messages
func (*Handlers) GetMetaDataByFileID ¶
GetMetaDataByFileID GET /files/:fileID/meta
func (*Handlers) GetMutedChannelIDs ¶
GetMutedChannelIDs GET /users/me/mute
func (*Handlers) GetMyBelongingGroup ¶
GetMyBelongingGroup GET /users/me/groups
func (*Handlers) GetMyNotificationChannels ¶
GetMyNotificationChannels GET /users/me/notification
func (*Handlers) GetMyStampHistory ¶
GetMyStampHistory GET /users/me/stamp-history
func (*Handlers) GetMyTokens ¶
GetMyTokens GET /users/me/tokens
func (*Handlers) GetNotificationChannels ¶
GetNotificationChannels GET /users/:userID/notification
func (*Handlers) GetNotificationStatus ¶
GetNotificationStatus GET /channels/:channelID/notification
func (*Handlers) GetPublicEmojiCSS ¶
GetPublicEmojiCSS GET /public/emoji.css
func (*Handlers) GetPublicEmojiImage ¶
GetPublicEmojiImage GET /public/emoji/{stampID}
func (*Handlers) GetPublicEmojiJSON ¶
GetPublicEmojiJSON GET /public/emoji.json
func (*Handlers) GetPublicUserIcon ¶
GetPublicUserIcon GET /public/icon/{username}
func (*Handlers) GetThumbnailByID ¶
GetThumbnailByID GET /files/:fileID/thumbnail
func (*Handlers) GetUserBelongingGroup ¶
GetUserBelongingGroup GET /users/:userID/groups
func (*Handlers) GetUserByID ¶
GetUserByID GET /users/:userID
func (*Handlers) GetUserGroup ¶
GetUserGroup GET /groups/:groupID
func (*Handlers) GetUserGroupMembers ¶
GetUserGroupMembers GET /groups/:groupID/members
func (*Handlers) GetUserGroups ¶
GetUserGroups GET /groups
func (*Handlers) GetUserIcon ¶
GetUserIcon GET /users/:userID/icon
func (*Handlers) GetUserTags ¶
GetUserTags GET /users/:userID/tags
func (*Handlers) GetUsersByTagID ¶
GetUsersByTagID GET /tags/:tagID
func (*Handlers) GetWebhook ¶
GetWebhook GET /webhooks/:webhookID
func (*Handlers) GetWebhooks ¶
GetWebhooks GET /webhooks
func (*Handlers) NotificationStream ¶
NotificationStream GET /notification
func (*Handlers) PatchChannelByChannelID ¶
PatchChannelByChannelID PATCH /channels/:channelID
func (*Handlers) PatchClient ¶
PatchClient PATCH /clients/:clientID
func (*Handlers) PatchClipFolder ¶
PatchClipFolder PATCH /users/me/clips/folders/:folderID
func (*Handlers) PatchStamp ¶
PatchStamp PATCH /stamps/:stampID
func (*Handlers) PatchUserGroup ¶
PatchUserGroup PATCH /groups/:groupID
func (*Handlers) PatchUserTag ¶
PatchUserTag PATCH /users/:userID/tags/:tagID
func (*Handlers) PatchWebhook ¶
PatchWebhook PATCH /webhooks/:webhookID
func (*Handlers) PostChannelChildren ¶
PostChannelChildren POST /channels/:channelID/children
func (*Handlers) PostChannels ¶
PostChannels POST /channels
func (*Handlers) PostClients ¶
PostClients POST /clients
func (*Handlers) PostClipFolder ¶
PostClipFolder POST /users/me/clips/folders
func (*Handlers) PostDeviceToken ¶
PostDeviceToken POST /notification/device
func (*Handlers) PostDirectMessage ¶
PostDirectMessage POST /users/:userId/messages
func (*Handlers) PostHeartbeat ¶
PostHeartbeat POST /heartbeat
func (*Handlers) PostLogout ¶
PostLogout POST /logout
func (*Handlers) PostMessage ¶
PostMessage POST /channels/:channelID/messages
func (*Handlers) PostMessageReport ¶
PostMessageReport POST /messages/:messageID/report
func (*Handlers) PostMessageStamp ¶
PostMessageStamp POST /messages/:messageID/stamps/:stampID
func (*Handlers) PostMutedChannel ¶
PostMutedChannel POST /users/me/mute/:channelID
func (*Handlers) PostUserGroupMembers ¶
PostUserGroupMembers POST /groups/:groupID/members
func (*Handlers) PostUserGroups ¶
PostUserGroups POST /groups
func (*Handlers) PostUserTag ¶
PostUserTag POST /users/:userID/tags
func (*Handlers) PostWebhook ¶
PostWebhook POST /webhooks/:webhookID
func (*Handlers) PostWebhookByGithub ¶
PostWebhookByGithub POST /webhooks/:webhookID/github
func (*Handlers) PostWebhooks ¶
PostWebhooks POST /webhooks
func (*Handlers) PutChannelParent ¶
PutChannelParent PUT /channels/:channelID/parent
func (*Handlers) PutClipsFolder ¶
PutClipsFolder PUT /users/me/clips/:clipID/folder
func (*Handlers) PutMessageByID ¶
PutMessageByID PUT /messages/:messageID
func (*Handlers) PutNotificationStatus ¶
PutNotificationStatus PUT /channels/:channelID/notification
func (*Handlers) PutPassword ¶
PutPassword PUT /users/me/password
func (*Handlers) PutWebhookIcon ¶
PutWebhookIcon PUT /webhooks/:webhookID/icon
func (*Handlers) UserAuthenticate ¶
func (h *Handlers) UserAuthenticate(oh *oauth2.Handler) echo.MiddlewareFunc
UserAuthenticate User認証するミドルウェア
func (*Handlers) ValidateChannelID ¶
func (h *Handlers) ValidateChannelID(availabilityCheckOnly bool) echo.MiddlewareFunc
ValidateChannelID 'channelID'パラメータのチャンネルを検証するミドルウェア
func (*Handlers) ValidateClipFolderID ¶
func (h *Handlers) ValidateClipFolderID() echo.MiddlewareFunc
ValidateClipFolderID 'folderID'パラメータのクリップフォルダを検証するミドルウェア
func (*Handlers) ValidateClipID ¶
func (h *Handlers) ValidateClipID() echo.MiddlewareFunc
ValidateClipID 'clipID'パラメータのクリップを検証するミドルウェア
func (*Handlers) ValidateFileID ¶
func (h *Handlers) ValidateFileID() echo.MiddlewareFunc
ValidateFileID 'fileID'パラメータのファイルを検証するミドルウェア
func (*Handlers) ValidateGroupID ¶
func (h *Handlers) ValidateGroupID() echo.MiddlewareFunc
ValidateGroupID 'groupID'パラメータのグループを検証するミドルウェア
func (*Handlers) ValidateMessageID ¶
func (h *Handlers) ValidateMessageID() echo.MiddlewareFunc
ValidateMessageID 'messageID'パラメータのメッセージを検証するミドルウェア
func (*Handlers) ValidatePinID ¶
func (h *Handlers) ValidatePinID() echo.MiddlewareFunc
ValidatePinID 'pinID'パラメータのピンを検証するミドルウェア
func (*Handlers) ValidateStampID ¶
func (h *Handlers) ValidateStampID(existenceCheckOnly bool) echo.MiddlewareFunc
ValidateStampID 'stampID'パラメータのスタンプを検証するミドルウェア
func (*Handlers) ValidateUserID ¶
func (h *Handlers) ValidateUserID(existenceCheckOnly bool) echo.MiddlewareFunc
ValidateUserID 'userID'パラメータのユーザーを検証するミドルウェア
func (*Handlers) ValidateWebhookID ¶
func (h *Handlers) ValidateWebhookID(requestUserCheck bool) echo.MiddlewareFunc
ValidateWebhookID 'webhookID'パラメータのWebhookを検証するミドルウェア
type MessageForResponse ¶
type MessageForResponse struct { MessageID uuid.UUID `json:"messageId"` UserID uuid.UUID `json:"userId"` ParentChannelID uuid.UUID `json:"parentChannelId"` Content string `json:"content"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` Pin bool `json:"pin"` Reported bool `json:"reported"` StampList []*model.MessageStamp `json:"stampList"` }
MessageForResponse クライアントに返す形のメッセージオブジェクト
type OwnedClientInfo ¶
type OwnedClientInfo struct { ClientID string `json:"clientId"` Name string `json:"name"` Description string `json:"description"` CreatorID string `json:"creatorId"` Scopes scope.AccessScopes `json:"scopes"` RedirectURI string `json:"redirectUri"` Secret string `json:"secret"` }
OwnedClientInfo レスポンス用クライアント情報構造体
type PostChannel ¶
type PostChannel struct { Name string `json:"name" validate:"channel,required"` Parent uuid.UUID `json:"parent"` Private bool `json:"private"` Members []uuid.UUID `json:"member"` }
PostChannel リクエストボディ用構造体
type SSEStreamer ¶
type SSEStreamer struct {
// contains filtered or unexported fields
}
SSEStreamer SSEストリーマー
func NewSSEStreamer ¶
func NewSSEStreamer(hub *hub.Hub, repo repository.Repository) *SSEStreamer
NewSSEStreamer SSEストリーマーを作成します
type TagForResponse ¶
type TagForResponse struct { ID uuid.UUID `json:"tagId"` Tag string `json:"tag"` IsLocked bool `json:"isLocked"` Editable bool `json:"editable"` Type string `json:"type"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
TagForResponse クライアントに返す形のタグ構造体
type UserDetailForResponse ¶
type UserDetailForResponse struct { UserID uuid.UUID `json:"userId"` Name string `json:"name"` DisplayName string `json:"displayName"` IconID uuid.UUID `json:"iconFileId"` Bot bool `json:"bot"` TwitterID string `json:"twitterId"` LastOnline *time.Time `json:"lastOnline"` IsOnline bool `json:"isOnline"` Suspended bool `json:"suspended"` Status int `json:"accountStatus"` TagList []*TagForResponse `json:"tagList"` }
UserDetailForResponse クライアントに返す形の詳細ユーザー構造体
type UserForResponse ¶
type UserForResponse struct { UserID uuid.UUID `json:"userId"` Name string `json:"name"` DisplayName string `json:"displayName"` IconID uuid.UUID `json:"iconFileId"` Bot bool `json:"bot"` TwitterID string `json:"twitterId"` LastOnline *time.Time `json:"lastOnline"` IsOnline bool `json:"isOnline"` Suspended bool `json:"suspended"` Status int `json:"accountStatus"` }
UserForResponse クライアントに返す形のユーザー構造体