Documentation ¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- type AdminV1APIAuthLoginPostOK
- type AdminV1APIAuthLoginPostRes
- type AdminV1APIAuthLogoutPostOK
- type AdminV1APIAuthLogoutPostRes
- type AdminV1APIAuthRegistrationPostOK
- type AdminV1APIAuthRegistrationPostRes
- type AdminV1APIBlogGetRes
- type AdminV1APIBlogPatchOK
- type AdminV1APIBlogPatchRes
- type AdminV1APIImageDeleteOK
- type AdminV1APIImageDeleteReq
- func (s *AdminV1APIImageDeleteReq) Decode(d *jx.Decoder) error
- func (s *AdminV1APIImageDeleteReq) Encode(e *jx.Encoder)
- func (s *AdminV1APIImageDeleteReq) GetFilename() string
- func (s *AdminV1APIImageDeleteReq) MarshalJSON() ([]byte, error)
- func (s *AdminV1APIImageDeleteReq) SetFilename(val string)
- func (s *AdminV1APIImageDeleteReq) UnmarshalJSON(data []byte) error
- type AdminV1APIImageDeleteRes
- type AdminV1APIImagesNumberGetOK
- func (s *AdminV1APIImagesNumberGetOK) Decode(d *jx.Decoder) error
- func (s *AdminV1APIImagesNumberGetOK) Encode(e *jx.Encoder)
- func (s *AdminV1APIImagesNumberGetOK) GetImages() []string
- func (s *AdminV1APIImagesNumberGetOK) MarshalJSON() ([]byte, error)
- func (s *AdminV1APIImagesNumberGetOK) SetImages(val []string)
- func (s *AdminV1APIImagesNumberGetOK) UnmarshalJSON(data []byte) error
- type AdminV1APIImagesNumberGetParams
- type AdminV1APIImagesNumberGetRes
- type AdminV1APIPostPatchOK
- type AdminV1APIPostPatchRes
- type AdminV1APIPostPostIdDeleteOK
- type AdminV1APIPostPostIdDeleteParams
- type AdminV1APIPostPostIdDeleteRes
- type AdminV1APIPostPostIdGetParams
- type AdminV1APIPostPostIdGetRes
- type AdminV1APIPostPostOK
- type AdminV1APIPostPostRes
- type AdminV1APIPostsNumberGetOKApplicationJSON
- func (s *AdminV1APIPostsNumberGetOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s AdminV1APIPostsNumberGetOKApplicationJSON) Encode(e *jx.Encoder)
- func (s AdminV1APIPostsNumberGetOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *AdminV1APIPostsNumberGetOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s AdminV1APIPostsNumberGetOKApplicationJSON) Validate() error
- type AdminV1APIPostsNumberGetParams
- type AdminV1APIPostsNumberGetRes
- type AdminV1APIUploadPostOKApplicationJSON
- func (s *AdminV1APIUploadPostOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s AdminV1APIUploadPostOKApplicationJSON) Encode(e *jx.Encoder)
- func (s AdminV1APIUploadPostOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *AdminV1APIUploadPostOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s AdminV1APIUploadPostOKApplicationJSON) Validate() error
- type AdminV1APIUploadPostReq
- type AdminV1APIUploadPostRes
- type AdminV1APIUserGetRes
- type AdminV1APIUserIDGetParams
- type AdminV1APIUserIDGetRes
- type AdminV1APIUserPatchOK
- type AdminV1APIUserPatchRes
- type AdminV1APIUseridGetOK
- func (s *AdminV1APIUseridGetOK) Decode(d *jx.Decoder) error
- func (s *AdminV1APIUseridGetOK) Encode(e *jx.Encoder)
- func (s *AdminV1APIUseridGetOK) GetID() OptInt64
- func (s *AdminV1APIUseridGetOK) MarshalJSON() ([]byte, error)
- func (s *AdminV1APIUseridGetOK) SetID(val OptInt64)
- func (s *AdminV1APIUseridGetOK) UnmarshalJSON(data []byte) error
- type AdminV1APIUseridGetRes
- type Blog
- func (s *Blog) Decode(d *jx.Decoder) error
- func (s *Blog) Encode(e *jx.Encoder)
- func (s *Blog) GetActiveTheme() OptString
- func (s *Blog) GetCover() OptString
- func (s *Blog) GetDescription() OptString
- func (s *Blog) GetLogo() OptString
- func (s *Blog) GetNavigationItems() []Navigation
- func (s *Blog) GetPostsPerPage() OptInt64
- func (s *Blog) GetThemes() []string
- func (s *Blog) GetTitle() OptString
- func (s *Blog) GetURL() OptString
- func (s *Blog) MarshalJSON() ([]byte, error)
- func (s *Blog) SetActiveTheme(val OptString)
- func (s *Blog) SetCover(val OptString)
- func (s *Blog) SetDescription(val OptString)
- func (s *Blog) SetLogo(val OptString)
- func (s *Blog) SetNavigationItems(val []Navigation)
- func (s *Blog) SetPostsPerPage(val OptInt64)
- func (s *Blog) SetThemes(val []string)
- func (s *Blog) SetTitle(val OptString)
- func (s *Blog) SetURL(val OptString)
- func (s *Blog) UnmarshalJSON(data []byte) error
- type CookieAuth
- type DefaultStatusCode
- type Error
- type ErrorHandler
- type Handler
- type Middleware
- type Navigation
- func (s *Navigation) Decode(d *jx.Decoder) error
- func (s *Navigation) Encode(e *jx.Encoder)
- func (s *Navigation) GetLabel() OptString
- func (s *Navigation) GetURL() OptString
- func (s *Navigation) MarshalJSON() ([]byte, error)
- func (s *Navigation) SetLabel(val OptString)
- func (s *Navigation) SetURL(val OptString)
- func (s *Navigation) UnmarshalJSON(data []byte) error
- type OptAdminV1APIUploadPostReq
- func (o OptAdminV1APIUploadPostReq) Get() (v AdminV1APIUploadPostReq, ok bool)
- func (o OptAdminV1APIUploadPostReq) IsSet() bool
- func (o OptAdminV1APIUploadPostReq) Or(d AdminV1APIUploadPostReq) AdminV1APIUploadPostReq
- func (o *OptAdminV1APIUploadPostReq) Reset()
- func (o *OptAdminV1APIUploadPostReq) SetTo(v AdminV1APIUploadPostReq)
- 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 OptDate
- func (o *OptDate) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error
- func (o OptDate) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))
- func (o OptDate) Get() (v time.Time, ok bool)
- func (o OptDate) IsSet() bool
- func (s OptDate) MarshalJSON() ([]byte, error)
- func (o OptDate) Or(d time.Time) time.Time
- func (o *OptDate) Reset()
- func (o *OptDate) SetTo(v time.Time)
- func (s *OptDate) UnmarshalJSON(data []byte) error
- 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 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 ParamsAuthLogin
- func (s *ParamsAuthLogin) Decode(d *jx.Decoder) error
- func (s *ParamsAuthLogin) Encode(e *jx.Encoder)
- func (s *ParamsAuthLogin) GetLogin() string
- func (s *ParamsAuthLogin) GetPassword() string
- func (s *ParamsAuthLogin) MarshalJSON() ([]byte, error)
- func (s *ParamsAuthLogin) SetLogin(val string)
- func (s *ParamsAuthLogin) SetPassword(val string)
- func (s *ParamsAuthLogin) UnmarshalJSON(data []byte) error
- type ParamsAuthRegistration
- func (s *ParamsAuthRegistration) Decode(d *jx.Decoder) error
- func (s *ParamsAuthRegistration) Encode(e *jx.Encoder)
- func (s *ParamsAuthRegistration) GetEmail() string
- func (s *ParamsAuthRegistration) GetLogin() string
- func (s *ParamsAuthRegistration) GetPassword() string
- func (s *ParamsAuthRegistration) MarshalJSON() ([]byte, error)
- func (s *ParamsAuthRegistration) SetEmail(val string)
- func (s *ParamsAuthRegistration) SetLogin(val string)
- func (s *ParamsAuthRegistration) SetPassword(val string)
- func (s *ParamsAuthRegistration) UnmarshalJSON(data []byte) error
- type Post
- func (s *Post) Decode(d *jx.Decoder) error
- func (s *Post) Encode(e *jx.Encoder)
- func (s *Post) GetDate() OptDate
- func (s *Post) GetHTML() OptString
- func (s *Post) GetID() OptInt64
- func (s *Post) GetImage() OptString
- func (s *Post) GetIsFeatured() OptBool
- func (s *Post) GetIsPage() OptBool
- func (s *Post) GetIsPublished() OptBool
- func (s *Post) GetMarkdown() OptString
- func (s *Post) GetMetaDescription() OptString
- func (s *Post) GetSlug() OptString
- func (s *Post) GetTags() OptString
- func (s *Post) GetTitle() OptString
- func (s *Post) MarshalJSON() ([]byte, error)
- func (s *Post) SetDate(val OptDate)
- func (s *Post) SetHTML(val OptString)
- func (s *Post) SetID(val OptInt64)
- func (s *Post) SetImage(val OptString)
- func (s *Post) SetIsFeatured(val OptBool)
- func (s *Post) SetIsPage(val OptBool)
- func (s *Post) SetIsPublished(val OptBool)
- func (s *Post) SetMarkdown(val OptString)
- func (s *Post) SetMetaDescription(val OptString)
- func (s *Post) SetSlug(val OptString)
- func (s *Post) SetTags(val OptString)
- func (s *Post) SetTitle(val OptString)
- func (s *Post) 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 Unauthorized
- type UnimplementedHandler
- func (UnimplementedHandler) AdminV1APIAuthLoginPost(ctx context.Context, req *ParamsAuthLogin) (r AdminV1APIAuthLoginPostRes, _ error)
- func (UnimplementedHandler) AdminV1APIAuthLogoutPost(ctx context.Context) (r AdminV1APIAuthLogoutPostRes, _ error)
- func (UnimplementedHandler) AdminV1APIAuthRegistrationPost(ctx context.Context, req *ParamsAuthRegistration) (r AdminV1APIAuthRegistrationPostRes, _ error)
- func (UnimplementedHandler) AdminV1APIBlogGet(ctx context.Context) (r AdminV1APIBlogGetRes, _ error)
- func (UnimplementedHandler) AdminV1APIBlogPatch(ctx context.Context, req *Blog) (r AdminV1APIBlogPatchRes, _ error)
- func (UnimplementedHandler) AdminV1APIImageDelete(ctx context.Context, req *AdminV1APIImageDeleteReq) (r AdminV1APIImageDeleteRes, _ error)
- func (UnimplementedHandler) AdminV1APIImagesNumberGet(ctx context.Context, params AdminV1APIImagesNumberGetParams) (r AdminV1APIImagesNumberGetRes, _ error)
- func (UnimplementedHandler) AdminV1APIPostPatch(ctx context.Context, req *Post) (r AdminV1APIPostPatchRes, _ error)
- func (UnimplementedHandler) AdminV1APIPostPost(ctx context.Context, req *Post) (r AdminV1APIPostPostRes, _ error)
- func (UnimplementedHandler) AdminV1APIPostPostIdDelete(ctx context.Context, params AdminV1APIPostPostIdDeleteParams) (r AdminV1APIPostPostIdDeleteRes, _ error)
- func (UnimplementedHandler) AdminV1APIPostPostIdGet(ctx context.Context, params AdminV1APIPostPostIdGetParams) (r AdminV1APIPostPostIdGetRes, _ error)
- func (UnimplementedHandler) AdminV1APIPostsNumberGet(ctx context.Context, params AdminV1APIPostsNumberGetParams) (r AdminV1APIPostsNumberGetRes, _ error)
- func (UnimplementedHandler) AdminV1APIUploadPost(ctx context.Context, req OptAdminV1APIUploadPostReq) (r AdminV1APIUploadPostRes, _ error)
- func (UnimplementedHandler) AdminV1APIUserGet(ctx context.Context) (r AdminV1APIUserGetRes, _ error)
- func (UnimplementedHandler) AdminV1APIUserIDGet(ctx context.Context, params AdminV1APIUserIDGetParams) (r AdminV1APIUserIDGetRes, _ error)
- func (UnimplementedHandler) AdminV1APIUserPatch(ctx context.Context, req *User) (r AdminV1APIUserPatchRes, _ error)
- func (UnimplementedHandler) AdminV1APIUseridGet(ctx context.Context) (r AdminV1APIUseridGetRes, _ error)
- func (UnimplementedHandler) NewError(ctx context.Context, err error) (r *DefaultStatusCode)
- type User
- func (s *User) Decode(d *jx.Decoder) error
- func (s *User) Encode(e *jx.Encoder)
- func (s *User) GetBio() OptString
- func (s *User) GetCover() OptString
- func (s *User) GetEmail() OptString
- func (s *User) GetID() OptInt64
- func (s *User) GetImage() OptString
- func (s *User) GetLocation() OptString
- func (s *User) GetName() OptString
- func (s *User) GetPassword() OptString
- func (s *User) GetPasswordRepeated() OptString
- func (s *User) GetSlug() OptString
- func (s *User) GetWebsite() OptString
- func (s *User) MarshalJSON() ([]byte, error)
- func (s *User) SetBio(val OptString)
- func (s *User) SetCover(val OptString)
- func (s *User) SetEmail(val OptString)
- func (s *User) SetID(val OptInt64)
- func (s *User) SetImage(val OptString)
- func (s *User) SetLocation(val OptString)
- func (s *User) SetName(val OptString)
- func (s *User) SetPassword(val OptString)
- func (s *User) SetPasswordRepeated(val OptString)
- func (s *User) SetSlug(val OptString)
- func (s *User) SetWebsite(val OptString)
- func (s *User) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminV1APIAuthLoginPostOK ¶
type AdminV1APIAuthLoginPostOK struct {
SetCookie OptString
}
AdminV1APIAuthLoginPostOK is response for AdminV1APIAuthLoginPost operation.
func (*AdminV1APIAuthLoginPostOK) GetSetCookie ¶
func (s *AdminV1APIAuthLoginPostOK) GetSetCookie() OptString
GetSetCookie returns the value of SetCookie.
func (*AdminV1APIAuthLoginPostOK) SetSetCookie ¶
func (s *AdminV1APIAuthLoginPostOK) SetSetCookie(val OptString)
SetSetCookie sets the value of SetCookie.
type AdminV1APIAuthLoginPostRes ¶
type AdminV1APIAuthLoginPostRes interface {
// contains filtered or unexported methods
}
type AdminV1APIAuthLogoutPostOK ¶
type AdminV1APIAuthLogoutPostOK struct {
SetCookie OptString
}
AdminV1APIAuthLogoutPostOK is response for AdminV1APIAuthLogoutPost operation.
func (*AdminV1APIAuthLogoutPostOK) GetSetCookie ¶
func (s *AdminV1APIAuthLogoutPostOK) GetSetCookie() OptString
GetSetCookie returns the value of SetCookie.
func (*AdminV1APIAuthLogoutPostOK) SetSetCookie ¶
func (s *AdminV1APIAuthLogoutPostOK) SetSetCookie(val OptString)
SetSetCookie sets the value of SetCookie.
type AdminV1APIAuthLogoutPostRes ¶
type AdminV1APIAuthLogoutPostRes interface {
// contains filtered or unexported methods
}
type AdminV1APIAuthRegistrationPostOK ¶
type AdminV1APIAuthRegistrationPostOK struct {
SetCookie OptString
}
AdminV1APIAuthRegistrationPostOK is response for AdminV1APIAuthRegistrationPost operation.
func (*AdminV1APIAuthRegistrationPostOK) GetSetCookie ¶
func (s *AdminV1APIAuthRegistrationPostOK) GetSetCookie() OptString
GetSetCookie returns the value of SetCookie.
func (*AdminV1APIAuthRegistrationPostOK) SetSetCookie ¶
func (s *AdminV1APIAuthRegistrationPostOK) SetSetCookie(val OptString)
SetSetCookie sets the value of SetCookie.
type AdminV1APIAuthRegistrationPostRes ¶
type AdminV1APIAuthRegistrationPostRes interface {
// contains filtered or unexported methods
}
type AdminV1APIBlogGetRes ¶
type AdminV1APIBlogGetRes interface {
// contains filtered or unexported methods
}
type AdminV1APIBlogPatchOK ¶
type AdminV1APIBlogPatchOK struct{}
AdminV1APIBlogPatchOK is response for AdminV1APIBlogPatch operation.
type AdminV1APIBlogPatchRes ¶
type AdminV1APIBlogPatchRes interface {
// contains filtered or unexported methods
}
type AdminV1APIImageDeleteOK ¶
type AdminV1APIImageDeleteOK struct{}
AdminV1APIImageDeleteOK is response for AdminV1APIImageDelete operation.
type AdminV1APIImageDeleteReq ¶
type AdminV1APIImageDeleteReq struct {
Filename string `json:"Filename"`
}
func (*AdminV1APIImageDeleteReq) Decode ¶
func (s *AdminV1APIImageDeleteReq) Decode(d *jx.Decoder) error
Decode decodes AdminV1APIImageDeleteReq from json.
func (*AdminV1APIImageDeleteReq) Encode ¶
func (s *AdminV1APIImageDeleteReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AdminV1APIImageDeleteReq) GetFilename ¶
func (s *AdminV1APIImageDeleteReq) GetFilename() string
GetFilename returns the value of Filename.
func (*AdminV1APIImageDeleteReq) MarshalJSON ¶
func (s *AdminV1APIImageDeleteReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AdminV1APIImageDeleteReq) SetFilename ¶
func (s *AdminV1APIImageDeleteReq) SetFilename(val string)
SetFilename sets the value of Filename.
func (*AdminV1APIImageDeleteReq) UnmarshalJSON ¶
func (s *AdminV1APIImageDeleteReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type AdminV1APIImageDeleteRes ¶
type AdminV1APIImageDeleteRes interface {
// contains filtered or unexported methods
}
type AdminV1APIImagesNumberGetOK ¶
type AdminV1APIImagesNumberGetOK struct {
Images []string `json:"images"`
}
func (*AdminV1APIImagesNumberGetOK) Decode ¶
func (s *AdminV1APIImagesNumberGetOK) Decode(d *jx.Decoder) error
Decode decodes AdminV1APIImagesNumberGetOK from json.
func (*AdminV1APIImagesNumberGetOK) Encode ¶
func (s *AdminV1APIImagesNumberGetOK) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AdminV1APIImagesNumberGetOK) GetImages ¶
func (s *AdminV1APIImagesNumberGetOK) GetImages() []string
GetImages returns the value of Images.
func (*AdminV1APIImagesNumberGetOK) MarshalJSON ¶
func (s *AdminV1APIImagesNumberGetOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AdminV1APIImagesNumberGetOK) SetImages ¶
func (s *AdminV1APIImagesNumberGetOK) SetImages(val []string)
SetImages sets the value of Images.
func (*AdminV1APIImagesNumberGetOK) UnmarshalJSON ¶
func (s *AdminV1APIImagesNumberGetOK) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type AdminV1APIImagesNumberGetParams ¶
type AdminV1APIImagesNumberGetParams struct { // Page number. Number int64 }
AdminV1APIImagesNumberGetParams is parameters of GET /admin/v1/api/images/{number} operation.
type AdminV1APIImagesNumberGetRes ¶
type AdminV1APIImagesNumberGetRes interface {
// contains filtered or unexported methods
}
type AdminV1APIPostPatchOK ¶
type AdminV1APIPostPatchOK struct{}
AdminV1APIPostPatchOK is response for AdminV1APIPostPatch operation.
type AdminV1APIPostPatchRes ¶
type AdminV1APIPostPatchRes interface {
// contains filtered or unexported methods
}
type AdminV1APIPostPostIdDeleteOK ¶
type AdminV1APIPostPostIdDeleteOK struct{}
AdminV1APIPostPostIdDeleteOK is response for AdminV1APIPostPostIdDelete operation.
type AdminV1APIPostPostIdDeleteParams ¶
type AdminV1APIPostPostIdDeleteParams struct { // ID of post to return. PostId int64 }
AdminV1APIPostPostIdDeleteParams is parameters of DELETE /admin/v1/api/post/{postId} operation.
type AdminV1APIPostPostIdDeleteRes ¶
type AdminV1APIPostPostIdDeleteRes interface {
// contains filtered or unexported methods
}
type AdminV1APIPostPostIdGetParams ¶
type AdminV1APIPostPostIdGetParams struct { // ID of post to return. PostId int64 }
AdminV1APIPostPostIdGetParams is parameters of GET /admin/v1/api/post/{postId} operation.
type AdminV1APIPostPostIdGetRes ¶
type AdminV1APIPostPostIdGetRes interface {
// contains filtered or unexported methods
}
type AdminV1APIPostPostOK ¶
type AdminV1APIPostPostOK struct{}
AdminV1APIPostPostOK is response for AdminV1APIPostPost operation.
type AdminV1APIPostPostRes ¶
type AdminV1APIPostPostRes interface {
// contains filtered or unexported methods
}
type AdminV1APIPostsNumberGetOKApplicationJSON ¶
type AdminV1APIPostsNumberGetOKApplicationJSON []Post
func (*AdminV1APIPostsNumberGetOKApplicationJSON) Decode ¶
func (s *AdminV1APIPostsNumberGetOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes AdminV1APIPostsNumberGetOKApplicationJSON from json.
func (AdminV1APIPostsNumberGetOKApplicationJSON) Encode ¶
func (s AdminV1APIPostsNumberGetOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes AdminV1APIPostsNumberGetOKApplicationJSON as json.
func (AdminV1APIPostsNumberGetOKApplicationJSON) MarshalJSON ¶
func (s AdminV1APIPostsNumberGetOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AdminV1APIPostsNumberGetOKApplicationJSON) UnmarshalJSON ¶
func (s *AdminV1APIPostsNumberGetOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (AdminV1APIPostsNumberGetOKApplicationJSON) Validate ¶
func (s AdminV1APIPostsNumberGetOKApplicationJSON) Validate() error
type AdminV1APIPostsNumberGetParams ¶
type AdminV1APIPostsNumberGetParams struct { // Page number. Number int64 }
AdminV1APIPostsNumberGetParams is parameters of GET /admin/v1/api/posts/{number} operation.
type AdminV1APIPostsNumberGetRes ¶
type AdminV1APIPostsNumberGetRes interface {
// contains filtered or unexported methods
}
type AdminV1APIUploadPostOKApplicationJSON ¶
type AdminV1APIUploadPostOKApplicationJSON []string
func (*AdminV1APIUploadPostOKApplicationJSON) Decode ¶
func (s *AdminV1APIUploadPostOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes AdminV1APIUploadPostOKApplicationJSON from json.
func (AdminV1APIUploadPostOKApplicationJSON) Encode ¶
func (s AdminV1APIUploadPostOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes AdminV1APIUploadPostOKApplicationJSON as json.
func (AdminV1APIUploadPostOKApplicationJSON) MarshalJSON ¶
func (s AdminV1APIUploadPostOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AdminV1APIUploadPostOKApplicationJSON) UnmarshalJSON ¶
func (s *AdminV1APIUploadPostOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (AdminV1APIUploadPostOKApplicationJSON) Validate ¶
func (s AdminV1APIUploadPostOKApplicationJSON) Validate() error
type AdminV1APIUploadPostReq ¶
type AdminV1APIUploadPostReq struct {
Multiplefiles []ht.MultipartFile `json:"multiplefiles"`
}
func (*AdminV1APIUploadPostReq) GetMultiplefiles ¶
func (s *AdminV1APIUploadPostReq) GetMultiplefiles() []ht.MultipartFile
GetMultiplefiles returns the value of Multiplefiles.
func (*AdminV1APIUploadPostReq) SetMultiplefiles ¶
func (s *AdminV1APIUploadPostReq) SetMultiplefiles(val []ht.MultipartFile)
SetMultiplefiles sets the value of Multiplefiles.
type AdminV1APIUploadPostRes ¶
type AdminV1APIUploadPostRes interface {
// contains filtered or unexported methods
}
type AdminV1APIUserGetRes ¶
type AdminV1APIUserGetRes interface {
// contains filtered or unexported methods
}
type AdminV1APIUserIDGetParams ¶
type AdminV1APIUserIDGetParams struct { // ID of user to return. ID int64 }
AdminV1APIUserIDGetParams is parameters of GET /admin/v1/api/user/{id} operation.
type AdminV1APIUserIDGetRes ¶
type AdminV1APIUserIDGetRes interface {
// contains filtered or unexported methods
}
type AdminV1APIUserPatchOK ¶
type AdminV1APIUserPatchOK struct {
SetCookie OptString
}
AdminV1APIUserPatchOK is response for AdminV1APIUserPatch operation.
func (*AdminV1APIUserPatchOK) GetSetCookie ¶
func (s *AdminV1APIUserPatchOK) GetSetCookie() OptString
GetSetCookie returns the value of SetCookie.
func (*AdminV1APIUserPatchOK) SetSetCookie ¶
func (s *AdminV1APIUserPatchOK) SetSetCookie(val OptString)
SetSetCookie sets the value of SetCookie.
type AdminV1APIUserPatchRes ¶
type AdminV1APIUserPatchRes interface {
// contains filtered or unexported methods
}
type AdminV1APIUseridGetOK ¶
type AdminV1APIUseridGetOK struct {
ID OptInt64 `json:"Id"`
}
func (*AdminV1APIUseridGetOK) Decode ¶
func (s *AdminV1APIUseridGetOK) Decode(d *jx.Decoder) error
Decode decodes AdminV1APIUseridGetOK from json.
func (*AdminV1APIUseridGetOK) Encode ¶
func (s *AdminV1APIUseridGetOK) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AdminV1APIUseridGetOK) GetID ¶
func (s *AdminV1APIUseridGetOK) GetID() OptInt64
GetID returns the value of ID.
func (*AdminV1APIUseridGetOK) MarshalJSON ¶
func (s *AdminV1APIUseridGetOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AdminV1APIUseridGetOK) SetID ¶
func (s *AdminV1APIUseridGetOK) SetID(val OptInt64)
SetID sets the value of ID.
func (*AdminV1APIUseridGetOK) UnmarshalJSON ¶
func (s *AdminV1APIUseridGetOK) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type AdminV1APIUseridGetRes ¶
type AdminV1APIUseridGetRes interface {
// contains filtered or unexported methods
}
type Blog ¶
type Blog struct { URL OptString `json:"Url"` Title OptString `json:"Title"` Description OptString `json:"Description"` Logo OptString `json:"Logo"` Cover OptString `json:"Cover"` Themes []string `json:"Themes"` ActiveTheme OptString `json:"ActiveTheme"` PostsPerPage OptInt64 `json:"PostsPerPage"` }
Ref: #/components/schemas/Blog
func (*Blog) GetActiveTheme ¶
GetActiveTheme returns the value of ActiveTheme.
func (*Blog) GetDescription ¶
GetDescription returns the value of Description.
func (*Blog) GetNavigationItems ¶
func (s *Blog) GetNavigationItems() []Navigation
GetNavigationItems returns the value of NavigationItems.
func (*Blog) GetPostsPerPage ¶
GetPostsPerPage returns the value of PostsPerPage.
func (*Blog) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Blog) SetActiveTheme ¶
SetActiveTheme sets the value of ActiveTheme.
func (*Blog) SetDescription ¶
SetDescription sets the value of Description.
func (*Blog) SetNavigationItems ¶
func (s *Blog) SetNavigationItems(val []Navigation)
SetNavigationItems sets the value of NavigationItems.
func (*Blog) SetPostsPerPage ¶
SetPostsPerPage sets the value of PostsPerPage.
func (*Blog) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type CookieAuth ¶
type CookieAuth struct {
APIKey string
}
func (*CookieAuth) GetAPIKey ¶
func (s *CookieAuth) GetAPIKey() string
GetAPIKey returns the value of APIKey.
func (*CookieAuth) SetAPIKey ¶
func (s *CookieAuth) SetAPIKey(val string)
SetAPIKey sets the value of APIKey.
type DefaultStatusCode ¶
DefaultStatusCode wraps Error with StatusCode.
func (*DefaultStatusCode) Error ¶
func (s *DefaultStatusCode) Error() string
func (*DefaultStatusCode) GetResponse ¶
func (s *DefaultStatusCode) GetResponse() Error
GetResponse returns the value of Response.
func (*DefaultStatusCode) GetStatusCode ¶
func (s *DefaultStatusCode) GetStatusCode() int
GetStatusCode returns the value of StatusCode.
func (*DefaultStatusCode) SetResponse ¶
func (s *DefaultStatusCode) SetResponse(val Error)
SetResponse sets the value of Response.
func (*DefaultStatusCode) SetStatusCode ¶
func (s *DefaultStatusCode) SetStatusCode(val int)
SetStatusCode sets the value of StatusCode.
type Error ¶
type Error struct {
ErrorMessage OptString `json:"error_message"`
}
Ref: #/components/schemas/Error
func (*Error) GetErrorMessage ¶
GetErrorMessage returns the value of ErrorMessage.
func (*Error) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Error) SetErrorMessage ¶
SetErrorMessage sets the value of ErrorMessage.
func (*Error) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type Handler ¶
type Handler interface { // AdminV1APIAuthLoginPost implements POST /admin/v1/api/auth/login operation. // // POST /admin/v1/api/auth/login AdminV1APIAuthLoginPost(ctx context.Context, req *ParamsAuthLogin) (AdminV1APIAuthLoginPostRes, error) // AdminV1APIAuthLogoutPost implements POST /admin/v1/api/auth/logout operation. // // POST /admin/v1/api/auth/logout AdminV1APIAuthLogoutPost(ctx context.Context) (AdminV1APIAuthLogoutPostRes, error) // AdminV1APIAuthRegistrationPost implements POST /admin/v1/api/auth/registration operation. // // POST /admin/v1/api/auth/registration AdminV1APIAuthRegistrationPost(ctx context.Context, req *ParamsAuthRegistration) (AdminV1APIAuthRegistrationPostRes, error) // AdminV1APIBlogGet implements GET /admin/v1/api/blog operation. // // GET /admin/v1/api/blog AdminV1APIBlogGet(ctx context.Context) (AdminV1APIBlogGetRes, error) // AdminV1APIBlogPatch implements PATCH /admin/v1/api/blog operation. // // PATCH /admin/v1/api/blog AdminV1APIBlogPatch(ctx context.Context, req *Blog) (AdminV1APIBlogPatchRes, error) // AdminV1APIImageDelete implements DELETE /admin/v1/api/image operation. // // DELETE /admin/v1/api/image AdminV1APIImageDelete(ctx context.Context, req *AdminV1APIImageDeleteReq) (AdminV1APIImageDeleteRes, error) // AdminV1APIImagesNumberGet implements GET /admin/v1/api/images/{number} operation. // // GET /admin/v1/api/images/{number} AdminV1APIImagesNumberGet(ctx context.Context, params AdminV1APIImagesNumberGetParams) (AdminV1APIImagesNumberGetRes, error) // AdminV1APIPostPatch implements PATCH /admin/v1/api/post operation. // // PATCH /admin/v1/api/post AdminV1APIPostPatch(ctx context.Context, req *Post) (AdminV1APIPostPatchRes, error) // AdminV1APIPostPost implements POST /admin/v1/api/post operation. // // POST /admin/v1/api/post AdminV1APIPostPost(ctx context.Context, req *Post) (AdminV1APIPostPostRes, error) // AdminV1APIPostPostIdDelete implements DELETE /admin/v1/api/post/{postId} operation. // // DELETE /admin/v1/api/post/{postId} AdminV1APIPostPostIdDelete(ctx context.Context, params AdminV1APIPostPostIdDeleteParams) (AdminV1APIPostPostIdDeleteRes, error) // AdminV1APIPostPostIdGet implements GET /admin/v1/api/post/{postId} operation. // // GET /admin/v1/api/post/{postId} AdminV1APIPostPostIdGet(ctx context.Context, params AdminV1APIPostPostIdGetParams) (AdminV1APIPostPostIdGetRes, error) // AdminV1APIPostsNumberGet implements GET /admin/v1/api/posts/{number} operation. // // GET /admin/v1/api/posts/{number} AdminV1APIPostsNumberGet(ctx context.Context, params AdminV1APIPostsNumberGetParams) (AdminV1APIPostsNumberGetRes, error) // AdminV1APIUploadPost implements POST /admin/v1/api/upload operation. // // POST /admin/v1/api/upload AdminV1APIUploadPost(ctx context.Context, req OptAdminV1APIUploadPostReq) (AdminV1APIUploadPostRes, error) // AdminV1APIUserGet implements GET /admin/v1/api/user operation. // // GET /admin/v1/api/user AdminV1APIUserGet(ctx context.Context) (AdminV1APIUserGetRes, error) // AdminV1APIUserIDGet implements GET /admin/v1/api/user/{id} operation. // // GET /admin/v1/api/user/{id} AdminV1APIUserIDGet(ctx context.Context, params AdminV1APIUserIDGetParams) (AdminV1APIUserIDGetRes, error) // AdminV1APIUserPatch implements PATCH /admin/v1/api/user operation. // // PATCH /admin/v1/api/user AdminV1APIUserPatch(ctx context.Context, req *User) (AdminV1APIUserPatchRes, error) // AdminV1APIUseridGet implements GET /admin/v1/api/userid operation. // // GET /admin/v1/api/userid AdminV1APIUseridGet(ctx context.Context) (AdminV1APIUseridGetRes, error) // NewError creates *DefaultStatusCode from error returned by handler. // // Used for common default response. NewError(ctx context.Context, err error) *DefaultStatusCode }
Handler handles operations described by OpenAPI v3 specification.
type Navigation ¶
type Navigation struct {}
Ref: #/components/schemas/Navigation
func (*Navigation) Decode ¶
func (s *Navigation) Decode(d *jx.Decoder) error
Decode decodes Navigation from json.
func (*Navigation) Encode ¶
func (s *Navigation) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*Navigation) GetLabel ¶
func (s *Navigation) GetLabel() OptString
GetLabel returns the value of Label.
func (*Navigation) GetURL ¶
func (s *Navigation) GetURL() OptString
GetURL returns the value of URL.
func (*Navigation) MarshalJSON ¶
func (s *Navigation) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*Navigation) SetLabel ¶
func (s *Navigation) SetLabel(val OptString)
SetLabel sets the value of Label.
func (*Navigation) SetURL ¶
func (s *Navigation) SetURL(val OptString)
SetURL sets the value of URL.
func (*Navigation) UnmarshalJSON ¶
func (s *Navigation) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptAdminV1APIUploadPostReq ¶
type OptAdminV1APIUploadPostReq struct { Value AdminV1APIUploadPostReq Set bool }
OptAdminV1APIUploadPostReq is optional AdminV1APIUploadPostReq.
func NewOptAdminV1APIUploadPostReq ¶
func NewOptAdminV1APIUploadPostReq(v AdminV1APIUploadPostReq) OptAdminV1APIUploadPostReq
NewOptAdminV1APIUploadPostReq returns new OptAdminV1APIUploadPostReq with value set to v.
func (OptAdminV1APIUploadPostReq) Get ¶
func (o OptAdminV1APIUploadPostReq) Get() (v AdminV1APIUploadPostReq, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptAdminV1APIUploadPostReq) IsSet ¶
func (o OptAdminV1APIUploadPostReq) IsSet() bool
IsSet returns true if OptAdminV1APIUploadPostReq was set.
func (*OptAdminV1APIUploadPostReq) Reset ¶
func (o *OptAdminV1APIUploadPostReq) Reset()
Reset unsets value.
func (*OptAdminV1APIUploadPostReq) SetTo ¶
func (o *OptAdminV1APIUploadPostReq) SetTo(v AdminV1APIUploadPostReq)
SetTo sets value to v.
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 OptDate ¶
OptDate is optional time.Time.
func NewOptDate ¶
NewOptDate returns new OptDate with value set to v.
func (OptDate) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptDate) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
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 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 Option ¶
type Option interface { ServerOption }
Option is config option.
func WithMeterProvider ¶
func WithMeterProvider(provider metric.MeterProvider) Option
WithMeterProvider specifies a meter provider to use for creating a meter.
If none is specified, the otel.GetMeterProvider() is used.
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) Option
WithTracerProvider specifies a tracer provider to use for creating a tracer.
If none is specified, the global provider is used.
type ParamsAuthLogin ¶
Ref: #/components/schemas/ParamsAuthLogin
func (*ParamsAuthLogin) Decode ¶
func (s *ParamsAuthLogin) Decode(d *jx.Decoder) error
Decode decodes ParamsAuthLogin from json.
func (*ParamsAuthLogin) Encode ¶
func (s *ParamsAuthLogin) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ParamsAuthLogin) GetLogin ¶
func (s *ParamsAuthLogin) GetLogin() string
GetLogin returns the value of Login.
func (*ParamsAuthLogin) GetPassword ¶
func (s *ParamsAuthLogin) GetPassword() string
GetPassword returns the value of Password.
func (*ParamsAuthLogin) MarshalJSON ¶
func (s *ParamsAuthLogin) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ParamsAuthLogin) SetLogin ¶
func (s *ParamsAuthLogin) SetLogin(val string)
SetLogin sets the value of Login.
func (*ParamsAuthLogin) SetPassword ¶
func (s *ParamsAuthLogin) SetPassword(val string)
SetPassword sets the value of Password.
func (*ParamsAuthLogin) UnmarshalJSON ¶
func (s *ParamsAuthLogin) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ParamsAuthRegistration ¶
type ParamsAuthRegistration struct { Login string `json:"login"` Email string `json:"email"` Password string `json:"password"` }
Ref: #/components/schemas/ParamsAuthRegistration
func (*ParamsAuthRegistration) Decode ¶
func (s *ParamsAuthRegistration) Decode(d *jx.Decoder) error
Decode decodes ParamsAuthRegistration from json.
func (*ParamsAuthRegistration) Encode ¶
func (s *ParamsAuthRegistration) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ParamsAuthRegistration) GetEmail ¶
func (s *ParamsAuthRegistration) GetEmail() string
GetEmail returns the value of Email.
func (*ParamsAuthRegistration) GetLogin ¶
func (s *ParamsAuthRegistration) GetLogin() string
GetLogin returns the value of Login.
func (*ParamsAuthRegistration) GetPassword ¶
func (s *ParamsAuthRegistration) GetPassword() string
GetPassword returns the value of Password.
func (*ParamsAuthRegistration) MarshalJSON ¶
func (s *ParamsAuthRegistration) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ParamsAuthRegistration) SetEmail ¶
func (s *ParamsAuthRegistration) SetEmail(val string)
SetEmail sets the value of Email.
func (*ParamsAuthRegistration) SetLogin ¶
func (s *ParamsAuthRegistration) SetLogin(val string)
SetLogin sets the value of Login.
func (*ParamsAuthRegistration) SetPassword ¶
func (s *ParamsAuthRegistration) SetPassword(val string)
SetPassword sets the value of Password.
func (*ParamsAuthRegistration) UnmarshalJSON ¶
func (s *ParamsAuthRegistration) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Post ¶
type Post struct { ID OptInt64 `json:"Id"` Title OptString `json:"Title"` Slug OptString `json:"Slug"` Markdown OptString `json:"Markdown"` HTML OptString `json:"HTML"` IsFeatured OptBool `json:"IsFeatured"` IsPage OptBool `json:"IsPage"` IsPublished OptBool `json:"IsPublished"` Image OptString `json:"Image"` MetaDescription OptString `json:"MetaDescription"` Date OptDate `json:"Date"` Tags OptString `json:"Tags"` }
Ref: #/components/schemas/Post
func (*Post) GetIsFeatured ¶
GetIsFeatured returns the value of IsFeatured.
func (*Post) GetIsPublished ¶
GetIsPublished returns the value of IsPublished.
func (*Post) GetMarkdown ¶
GetMarkdown returns the value of Markdown.
func (*Post) GetMetaDescription ¶
GetMetaDescription returns the value of MetaDescription.
func (*Post) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Post) SetIsFeatured ¶
SetIsFeatured sets the value of IsFeatured.
func (*Post) SetIsPublished ¶
SetIsPublished sets the value of IsPublished.
func (*Post) SetMarkdown ¶
SetMarkdown sets the value of Markdown.
func (*Post) SetMetaDescription ¶
SetMetaDescription sets the value of MetaDescription.
func (*Post) 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 { // HandleCookieAuth handles cookieAuth security. HandleCookieAuth(ctx context.Context, operationName string, t CookieAuth) (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 UnimplementedHandler ¶
type UnimplementedHandler struct{}
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
func (UnimplementedHandler) AdminV1APIAuthLoginPost ¶
func (UnimplementedHandler) AdminV1APIAuthLoginPost(ctx context.Context, req *ParamsAuthLogin) (r AdminV1APIAuthLoginPostRes, _ error)
AdminV1APIAuthLoginPost implements POST /admin/v1/api/auth/login operation.
POST /admin/v1/api/auth/login
func (UnimplementedHandler) AdminV1APIAuthLogoutPost ¶
func (UnimplementedHandler) AdminV1APIAuthLogoutPost(ctx context.Context) (r AdminV1APIAuthLogoutPostRes, _ error)
AdminV1APIAuthLogoutPost implements POST /admin/v1/api/auth/logout operation.
POST /admin/v1/api/auth/logout
func (UnimplementedHandler) AdminV1APIAuthRegistrationPost ¶
func (UnimplementedHandler) AdminV1APIAuthRegistrationPost(ctx context.Context, req *ParamsAuthRegistration) (r AdminV1APIAuthRegistrationPostRes, _ error)
AdminV1APIAuthRegistrationPost implements POST /admin/v1/api/auth/registration operation.
POST /admin/v1/api/auth/registration
func (UnimplementedHandler) AdminV1APIBlogGet ¶
func (UnimplementedHandler) AdminV1APIBlogGet(ctx context.Context) (r AdminV1APIBlogGetRes, _ error)
AdminV1APIBlogGet implements GET /admin/v1/api/blog operation.
GET /admin/v1/api/blog
func (UnimplementedHandler) AdminV1APIBlogPatch ¶
func (UnimplementedHandler) AdminV1APIBlogPatch(ctx context.Context, req *Blog) (r AdminV1APIBlogPatchRes, _ error)
AdminV1APIBlogPatch implements PATCH /admin/v1/api/blog operation.
PATCH /admin/v1/api/blog
func (UnimplementedHandler) AdminV1APIImageDelete ¶
func (UnimplementedHandler) AdminV1APIImageDelete(ctx context.Context, req *AdminV1APIImageDeleteReq) (r AdminV1APIImageDeleteRes, _ error)
AdminV1APIImageDelete implements DELETE /admin/v1/api/image operation.
DELETE /admin/v1/api/image
func (UnimplementedHandler) AdminV1APIImagesNumberGet ¶
func (UnimplementedHandler) AdminV1APIImagesNumberGet(ctx context.Context, params AdminV1APIImagesNumberGetParams) (r AdminV1APIImagesNumberGetRes, _ error)
AdminV1APIImagesNumberGet implements GET /admin/v1/api/images/{number} operation.
GET /admin/v1/api/images/{number}
func (UnimplementedHandler) AdminV1APIPostPatch ¶
func (UnimplementedHandler) AdminV1APIPostPatch(ctx context.Context, req *Post) (r AdminV1APIPostPatchRes, _ error)
AdminV1APIPostPatch implements PATCH /admin/v1/api/post operation.
PATCH /admin/v1/api/post
func (UnimplementedHandler) AdminV1APIPostPost ¶
func (UnimplementedHandler) AdminV1APIPostPost(ctx context.Context, req *Post) (r AdminV1APIPostPostRes, _ error)
AdminV1APIPostPost implements POST /admin/v1/api/post operation.
POST /admin/v1/api/post
func (UnimplementedHandler) AdminV1APIPostPostIdDelete ¶
func (UnimplementedHandler) AdminV1APIPostPostIdDelete(ctx context.Context, params AdminV1APIPostPostIdDeleteParams) (r AdminV1APIPostPostIdDeleteRes, _ error)
AdminV1APIPostPostIdDelete implements DELETE /admin/v1/api/post/{postId} operation.
DELETE /admin/v1/api/post/{postId}
func (UnimplementedHandler) AdminV1APIPostPostIdGet ¶
func (UnimplementedHandler) AdminV1APIPostPostIdGet(ctx context.Context, params AdminV1APIPostPostIdGetParams) (r AdminV1APIPostPostIdGetRes, _ error)
AdminV1APIPostPostIdGet implements GET /admin/v1/api/post/{postId} operation.
GET /admin/v1/api/post/{postId}
func (UnimplementedHandler) AdminV1APIPostsNumberGet ¶
func (UnimplementedHandler) AdminV1APIPostsNumberGet(ctx context.Context, params AdminV1APIPostsNumberGetParams) (r AdminV1APIPostsNumberGetRes, _ error)
AdminV1APIPostsNumberGet implements GET /admin/v1/api/posts/{number} operation.
GET /admin/v1/api/posts/{number}
func (UnimplementedHandler) AdminV1APIUploadPost ¶
func (UnimplementedHandler) AdminV1APIUploadPost(ctx context.Context, req OptAdminV1APIUploadPostReq) (r AdminV1APIUploadPostRes, _ error)
AdminV1APIUploadPost implements POST /admin/v1/api/upload operation.
POST /admin/v1/api/upload
func (UnimplementedHandler) AdminV1APIUserGet ¶
func (UnimplementedHandler) AdminV1APIUserGet(ctx context.Context) (r AdminV1APIUserGetRes, _ error)
AdminV1APIUserGet implements GET /admin/v1/api/user operation.
GET /admin/v1/api/user
func (UnimplementedHandler) AdminV1APIUserIDGet ¶
func (UnimplementedHandler) AdminV1APIUserIDGet(ctx context.Context, params AdminV1APIUserIDGetParams) (r AdminV1APIUserIDGetRes, _ error)
AdminV1APIUserIDGet implements GET /admin/v1/api/user/{id} operation.
GET /admin/v1/api/user/{id}
func (UnimplementedHandler) AdminV1APIUserPatch ¶
func (UnimplementedHandler) AdminV1APIUserPatch(ctx context.Context, req *User) (r AdminV1APIUserPatchRes, _ error)
AdminV1APIUserPatch implements PATCH /admin/v1/api/user operation.
PATCH /admin/v1/api/user
func (UnimplementedHandler) AdminV1APIUseridGet ¶
func (UnimplementedHandler) AdminV1APIUseridGet(ctx context.Context) (r AdminV1APIUseridGetRes, _ error)
AdminV1APIUseridGet implements GET /admin/v1/api/userid operation.
GET /admin/v1/api/userid
func (UnimplementedHandler) NewError ¶
func (UnimplementedHandler) NewError(ctx context.Context, err error) (r *DefaultStatusCode)
NewError creates *DefaultStatusCode from error returned by handler.
Used for common default response.
type User ¶
type User struct { ID OptInt64 `json:"Id"` Name OptString `json:"Name"` Slug OptString `json:"Slug"` Email OptString `json:"Email"` Image OptString `json:"Image"` Cover OptString `json:"Cover"` Bio OptString `json:"Bio"` Website OptString `json:"Website"` Location OptString `json:"Location"` Password OptString `json:"Password"` PasswordRepeated OptString `json:"PasswordRepeated"` }
Ref: #/components/schemas/User
func (*User) GetLocation ¶
GetLocation returns the value of Location.
func (*User) GetPassword ¶
GetPassword returns the value of Password.
func (*User) GetPasswordRepeated ¶
GetPasswordRepeated returns the value of PasswordRepeated.
func (*User) GetWebsite ¶
GetWebsite returns the value of Website.
func (*User) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*User) SetLocation ¶
SetLocation sets the value of Location.
func (*User) SetPassword ¶
SetPassword sets the value of Password.
func (*User) SetPasswordRepeated ¶
SetPasswordRepeated sets the value of PasswordRepeated.
func (*User) SetWebsite ¶
SetWebsite sets the value of Website.
func (*User) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.