package
0.0.0-20210505031818-76742328cd97
Repository: https://github.com/usagibooru/accounts-server.git
Documentation: pkg.go.dev

# Functions

EncodeJSONResponse uses the json encoder to write an interface to the http response with an optional status code.
Logger returns access log logger.
NewAccountsApiController creates a default api controller.
NewAccountsApiService creates a default api service.
NewMutesApiController creates a default api controller.
NewMutesApiService creates a default api service.
NewMylistApiController creates a default api controller.
NewMylistApiService creates a default api service.
NewNotifyApiController creates a default api controller.
NewNotifyApiService creates a default api service.
NewRouter creates a new router for any number of api routers.
NewTimelineApiController creates a default api controller.
NewTimelineApiService creates a default api service.
ReadFormFilesToTempFiles reads files array data from a request form and writes it to a temporary files.
ReadFormFileToTempFile reads file data from a request form and writes it to a temporary file.
Response return a ImplResponse struct filled.

# Structs

A AccountsApiController binds http requests to an api service and writes the service results to the http response.
AccountsApiService is a service that implents the logic for the AccountsApiServicer This service should implement the business logic for every endpoint for the AccountsApi API.
AccountStruct - アカウントの取得/編集に使う構造体.
AccountStructAccess - 管理者権限とは別の細かな権限.
AccountStructInvite - 招待情報.
AccountStructIpfs - IPFS設定.
AccountStructNotify - 通知クライアントを設定済みか.
GeneralMessageResponse - 共通の応答構造体(404/401/400等を返す際に使用).
GetMutesResponse - ミュート情報一覧の応答構造体.
GetMylistListResponse - マイリスト情報一覧の応答構造体.
GetNotifyClientsResponse - 通知クライアント情報一覧の応答構造体.
GetNotifyConditionsResponse - 通知条件情報一覧の応答構造体.
GetTimelineFollowingResponse - タイムラインのフォロー一覧の応答構造体.
GetUploadHistoryResponse - 投稿履歴情報一覧の応答構造体.
ImplResponse defines an error code with the associated body.
LightAccountStruct - アカウント情報の簡易構造体(読み取り専用).
LightArtistStruct - 絵師情報の簡易構造体(読み取り専用).
LightArtStruct - イラスト情報の簡易構造体(読み取り専用)(検索結果等で利用).
No description provided by the author
LightArtStructFileIpfsHash - IPFSのハッシュ情報.
A MutesApiController binds http requests to an api service and writes the service results to the http response.
MutesApiService is a service that implents the logic for the MutesApiServicer This service should implement the business logic for every endpoint for the MutesApi API.
MuteStruct - ミュート情報の構造体.
A MylistApiController binds http requests to an api service and writes the service results to the http response.
MylistApiService is a service that implents the logic for the MylistApiServicer This service should implement the business logic for every endpoint for the MylistApi API.
MylistStruct - マイリスト情報の構造体.
A NotifyApiController binds http requests to an api service and writes the service results to the http response.
NotifyApiService is a service that implents the logic for the NotifyApiServicer This service should implement the business logic for every endpoint for the NotifyApi API.
NotifyClientStruct - 通知クライアント情報の構造体.
NotifyConditionStruct - 通知条件情報の構造体.
PaginationStruct - ページネーション情報の構造体.
PostLoginWithFormRequest - ログインする際に利用される要求構造体.
PostLoginWithFormResponse - ログインに成功した際に利用される応答構造体.
PostRegisterLineNotifyRequest - LineNotifyのトークンを登録する際の要求構造体.
PostRegisterWebPushRequest - WebPushのトークンを登録する際の要求構造体.
PostResetPasswordRequest - パスワードをリセットする際に使う要求構造体.
A Route defines the parameters for an api endpoint.
A TimelineApiController binds http requests to an api service and writes the service results to the http response.
TimelineApiService is a service that implents the logic for the TimelineApiServicer This service should implement the business logic for every endpoint for the TimelineApi API.
UploadHistoryStruct - 投稿履歴の応答構造体.

# Interfaces

AccountsApiRouter defines the required methods for binding the api requests to a responses for the AccountsApi The AccountsApiRouter implementation should parse necessary information from the http request, pass the data to a AccountsApiServicer to perform the required actions, then write the service results to the http response.
AccountsApiServicer defines the api actions for the AccountsApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
MutesApiRouter defines the required methods for binding the api requests to a responses for the MutesApi The MutesApiRouter implementation should parse necessary information from the http request, pass the data to a MutesApiServicer to perform the required actions, then write the service results to the http response.
MutesApiServicer defines the api actions for the MutesApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
MylistApiRouter defines the required methods for binding the api requests to a responses for the MylistApi The MylistApiRouter implementation should parse necessary information from the http request, pass the data to a MylistApiServicer to perform the required actions, then write the service results to the http response.
MylistApiServicer defines the api actions for the MylistApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
NotifyApiRouter defines the required methods for binding the api requests to a responses for the NotifyApi The NotifyApiRouter implementation should parse necessary information from the http request, pass the data to a NotifyApiServicer to perform the required actions, then write the service results to the http response.
NotifyApiServicer defines the api actions for the NotifyApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
Router defines the required methods for retrieving api routes.
TimelineApiRouter defines the required methods for binding the api requests to a responses for the TimelineApi The TimelineApiRouter implementation should parse necessary information from the http request, pass the data to a TimelineApiServicer to perform the required actions, then write the service results to the http response.
TimelineApiServicer defines the api actions for the TimelineApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.

# Type aliases

Routes are a collection of defined api endpoints.