generated

package
v0.0.0-...-4a5e4cf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Code generated by ogen, DO NOT EDIT.

Index

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

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

Decode decodes AdminV1APIPostsNumberGetOKApplicationJSON from json.

func (AdminV1APIPostsNumberGetOKApplicationJSON) Encode

Encode encodes AdminV1APIPostsNumberGetOKApplicationJSON as json.

func (AdminV1APIPostsNumberGetOKApplicationJSON) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*AdminV1APIPostsNumberGetOKApplicationJSON) UnmarshalJSON

func (s *AdminV1APIPostsNumberGetOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (AdminV1APIPostsNumberGetOKApplicationJSON) Validate

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

Decode decodes AdminV1APIUploadPostOKApplicationJSON from json.

func (AdminV1APIUploadPostOKApplicationJSON) Encode

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

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"`
	Cover           OptString    `json:"Cover"`
	Themes          []string     `json:"Themes"`
	ActiveTheme     OptString    `json:"ActiveTheme"`
	PostsPerPage    OptInt64     `json:"PostsPerPage"`
	NavigationItems []Navigation `json:"NavigationItems"`
}

Ref: #/components/schemas/Blog

func (*Blog) Decode

func (s *Blog) Decode(d *jx.Decoder) error

Decode decodes Blog from json.

func (*Blog) Encode

func (s *Blog) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Blog) GetActiveTheme

func (s *Blog) GetActiveTheme() OptString

GetActiveTheme returns the value of ActiveTheme.

func (*Blog) GetCover

func (s *Blog) GetCover() OptString

GetCover returns the value of Cover.

func (*Blog) GetDescription

func (s *Blog) GetDescription() OptString

GetDescription returns the value of Description.

func (s *Blog) GetLogo() OptString

GetLogo returns the value of Logo.

func (*Blog) GetNavigationItems

func (s *Blog) GetNavigationItems() []Navigation

GetNavigationItems returns the value of NavigationItems.

func (*Blog) GetPostsPerPage

func (s *Blog) GetPostsPerPage() OptInt64

GetPostsPerPage returns the value of PostsPerPage.

func (*Blog) GetThemes

func (s *Blog) GetThemes() []string

GetThemes returns the value of Themes.

func (*Blog) GetTitle

func (s *Blog) GetTitle() OptString

GetTitle returns the value of Title.

func (*Blog) GetURL

func (s *Blog) GetURL() OptString

GetURL returns the value of URL.

func (*Blog) MarshalJSON

func (s *Blog) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Blog) SetActiveTheme

func (s *Blog) SetActiveTheme(val OptString)

SetActiveTheme sets the value of ActiveTheme.

func (*Blog) SetCover

func (s *Blog) SetCover(val OptString)

SetCover sets the value of Cover.

func (*Blog) SetDescription

func (s *Blog) SetDescription(val OptString)

SetDescription sets the value of Description.

func (s *Blog) SetLogo(val OptString)

SetLogo sets the value of Logo.

func (*Blog) SetNavigationItems

func (s *Blog) SetNavigationItems(val []Navigation)

SetNavigationItems sets the value of NavigationItems.

func (*Blog) SetPostsPerPage

func (s *Blog) SetPostsPerPage(val OptInt64)

SetPostsPerPage sets the value of PostsPerPage.

func (*Blog) SetThemes

func (s *Blog) SetThemes(val []string)

SetThemes sets the value of Themes.

func (*Blog) SetTitle

func (s *Blog) SetTitle(val OptString)

SetTitle sets the value of Title.

func (*Blog) SetURL

func (s *Blog) SetURL(val OptString)

SetURL sets the value of URL.

func (*Blog) UnmarshalJSON

func (s *Blog) UnmarshalJSON(data []byte) error

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

type DefaultStatusCode struct {
	StatusCode int
	Response   Error
}

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) Decode

func (s *Error) Decode(d *jx.Decoder) error

Decode decodes Error from json.

func (*Error) Encode

func (s *Error) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Error) GetErrorMessage

func (s *Error) GetErrorMessage() OptString

GetErrorMessage returns the value of ErrorMessage.

func (*Error) MarshalJSON

func (s *Error) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Error) SetErrorMessage

func (s *Error) SetErrorMessage(val OptString)

SetErrorMessage sets the value of ErrorMessage.

func (*Error) UnmarshalJSON

func (s *Error) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorHandler

type ErrorHandler = ogenerrors.ErrorHandler

ErrorHandler is error handler.

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 Middleware

type Middleware = middleware.Middleware

Middleware is middleware type.

type Navigation struct {
	Label OptString `json:"label"`
	URL   OptString `json:"url"`
}

Ref: #/components/schemas/Navigation

func (s *Navigation) Decode(d *jx.Decoder) error

Decode decodes Navigation from json.

func (s *Navigation) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (s *Navigation) GetLabel() OptString

GetLabel returns the value of Label.

func (s *Navigation) GetURL() OptString

GetURL returns the value of URL.

func (s *Navigation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (s *Navigation) SetLabel(val OptString)

SetLabel sets the value of Label.

func (s *Navigation) SetURL(val OptString)

SetURL sets the value of URL.

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

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) Or

Or returns value if set, or given parameter if does not.

func (*OptAdminV1APIUploadPostReq) Reset

func (o *OptAdminV1APIUploadPostReq) Reset()

Reset unsets value.

func (*OptAdminV1APIUploadPostReq) SetTo

SetTo sets value to v.

type OptBool

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func (*OptBool) Decode

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) MarshalJSON

func (s OptBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBool) Or

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetTo

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

func (*OptBool) UnmarshalJSON

func (s *OptBool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDate

type OptDate struct {
	Value time.Time
	Set   bool
}

OptDate is optional time.Time.

func NewOptDate

func NewOptDate(v time.Time) OptDate

NewOptDate returns new OptDate with value set to v.

func (*OptDate) Decode

func (o *OptDate) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error

Decode decodes time.Time from json.

func (OptDate) Encode

func (o OptDate) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))

Encode encodes time.Time as json.

func (OptDate) Get

func (o OptDate) Get() (v time.Time, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDate) IsSet

func (o OptDate) IsSet() bool

IsSet returns true if OptDate was set.

func (OptDate) MarshalJSON

func (s OptDate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDate) Or

func (o OptDate) Or(d time.Time) time.Time

Or returns value if set, or given parameter if does not.

func (*OptDate) Reset

func (o *OptDate) Reset()

Reset unsets value.

func (*OptDate) SetTo

func (o *OptDate) SetTo(v time.Time)

SetTo sets value to v.

func (*OptDate) UnmarshalJSON

func (s *OptDate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt64

type OptInt64 struct {
	Value int64
	Set   bool
}

OptInt64 is optional int64.

func NewOptInt64

func NewOptInt64(v int64) OptInt64

NewOptInt64 returns new OptInt64 with value set to v.

func (*OptInt64) Decode

func (o *OptInt64) Decode(d *jx.Decoder) error

Decode decodes int64 from json.

func (OptInt64) Encode

func (o OptInt64) Encode(e *jx.Encoder)

Encode encodes int64 as json.

func (OptInt64) Get

func (o OptInt64) Get() (v int64, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt64) IsSet

func (o OptInt64) IsSet() bool

IsSet returns true if OptInt64 was set.

func (OptInt64) MarshalJSON

func (s OptInt64) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt64) Or

func (o OptInt64) Or(d int64) int64

Or returns value if set, or given parameter if does not.

func (*OptInt64) Reset

func (o *OptInt64) Reset()

Reset unsets value.

func (*OptInt64) SetTo

func (o *OptInt64) SetTo(v int64)

SetTo sets value to v.

func (*OptInt64) UnmarshalJSON

func (s *OptInt64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

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

type ParamsAuthLogin struct {
	Login    string `json:"login"`
	Password string `json:"password"`
}

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) Decode

func (s *Post) Decode(d *jx.Decoder) error

Decode decodes Post from json.

func (*Post) Encode

func (s *Post) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Post) GetDate

func (s *Post) GetDate() OptDate

GetDate returns the value of Date.

func (*Post) GetHTML

func (s *Post) GetHTML() OptString

GetHTML returns the value of HTML.

func (*Post) GetID

func (s *Post) GetID() OptInt64

GetID returns the value of ID.

func (*Post) GetImage

func (s *Post) GetImage() OptString

GetImage returns the value of Image.

func (*Post) GetIsFeatured

func (s *Post) GetIsFeatured() OptBool

GetIsFeatured returns the value of IsFeatured.

func (*Post) GetIsPage

func (s *Post) GetIsPage() OptBool

GetIsPage returns the value of IsPage.

func (*Post) GetIsPublished

func (s *Post) GetIsPublished() OptBool

GetIsPublished returns the value of IsPublished.

func (*Post) GetMarkdown

func (s *Post) GetMarkdown() OptString

GetMarkdown returns the value of Markdown.

func (*Post) GetMetaDescription

func (s *Post) GetMetaDescription() OptString

GetMetaDescription returns the value of MetaDescription.

func (*Post) GetSlug

func (s *Post) GetSlug() OptString

GetSlug returns the value of Slug.

func (*Post) GetTags

func (s *Post) GetTags() OptString

GetTags returns the value of Tags.

func (*Post) GetTitle

func (s *Post) GetTitle() OptString

GetTitle returns the value of Title.

func (*Post) MarshalJSON

func (s *Post) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Post) SetDate

func (s *Post) SetDate(val OptDate)

SetDate sets the value of Date.

func (*Post) SetHTML

func (s *Post) SetHTML(val OptString)

SetHTML sets the value of HTML.

func (*Post) SetID

func (s *Post) SetID(val OptInt64)

SetID sets the value of ID.

func (*Post) SetImage

func (s *Post) SetImage(val OptString)

SetImage sets the value of Image.

func (*Post) SetIsFeatured

func (s *Post) SetIsFeatured(val OptBool)

SetIsFeatured sets the value of IsFeatured.

func (*Post) SetIsPage

func (s *Post) SetIsPage(val OptBool)

SetIsPage sets the value of IsPage.

func (*Post) SetIsPublished

func (s *Post) SetIsPublished(val OptBool)

SetIsPublished sets the value of IsPublished.

func (*Post) SetMarkdown

func (s *Post) SetMarkdown(val OptString)

SetMarkdown sets the value of Markdown.

func (*Post) SetMetaDescription

func (s *Post) SetMetaDescription(val OptString)

SetMetaDescription sets the value of MetaDescription.

func (*Post) SetSlug

func (s *Post) SetSlug(val OptString)

SetSlug sets the value of Slug.

func (*Post) SetTags

func (s *Post) SetTags(val OptString)

SetTags sets the value of Tags.

func (*Post) SetTitle

func (s *Post) SetTitle(val OptString)

SetTitle sets the value of Title.

func (*Post) UnmarshalJSON

func (s *Post) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Route

type Route struct {
	// contains filtered or unexported fields
}

Route is route object.

func (Route) Args

func (r Route) Args() []string

Args returns parsed arguments.

func (Route) Name

func (r Route) Name() string

Name returns ogen operation name.

It is guaranteed to be unique and not empty.

func (Route) OperationID

func (r Route) OperationID() string

OperationID returns OpenAPI operationId.

func (Route) PathPattern

func (r Route) PathPattern() string

PathPattern returns OpenAPI path.

func (Route) Summary

func (r Route) Summary() string

Summary returns OpenAPI summary.

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.

func (*Server) FindPath

func (s *Server) FindPath(method string, u *url.URL) (r Route, _ bool)

FindPath finds Route for given method and URL.

func (*Server) FindRoute

func (s *Server) FindRoute(method, path string) (Route, bool)

FindRoute finds Route for given method and path.

Note: this method does not unescape path or handle reserved characters in path properly. Use FindPath instead.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serves http request as defined by OpenAPI v3 specification, calling handler that matches the path or returning not found error.

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 Unauthorized

type Unauthorized struct{}

Ref: #/components/responses/Unauthorized

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

AdminV1APIImageDelete implements DELETE /admin/v1/api/image operation.

DELETE /admin/v1/api/image

func (UnimplementedHandler) AdminV1APIImagesNumberGet

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

AdminV1APIPostPostIdDelete implements DELETE /admin/v1/api/post/{postId} operation.

DELETE /admin/v1/api/post/{postId}

func (UnimplementedHandler) AdminV1APIPostPostIdGet

AdminV1APIPostPostIdGet implements GET /admin/v1/api/post/{postId} operation.

GET /admin/v1/api/post/{postId}

func (UnimplementedHandler) AdminV1APIPostsNumberGet

AdminV1APIPostsNumberGet implements GET /admin/v1/api/posts/{number} operation.

GET /admin/v1/api/posts/{number}

func (UnimplementedHandler) AdminV1APIUploadPost

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

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

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) Decode

func (s *User) Decode(d *jx.Decoder) error

Decode decodes User from json.

func (*User) Encode

func (s *User) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*User) GetBio

func (s *User) GetBio() OptString

GetBio returns the value of Bio.

func (*User) GetCover

func (s *User) GetCover() OptString

GetCover returns the value of Cover.

func (*User) GetEmail

func (s *User) GetEmail() OptString

GetEmail returns the value of Email.

func (*User) GetID

func (s *User) GetID() OptInt64

GetID returns the value of ID.

func (*User) GetImage

func (s *User) GetImage() OptString

GetImage returns the value of Image.

func (*User) GetLocation

func (s *User) GetLocation() OptString

GetLocation returns the value of Location.

func (*User) GetName

func (s *User) GetName() OptString

GetName returns the value of Name.

func (*User) GetPassword

func (s *User) GetPassword() OptString

GetPassword returns the value of Password.

func (*User) GetPasswordRepeated

func (s *User) GetPasswordRepeated() OptString

GetPasswordRepeated returns the value of PasswordRepeated.

func (*User) GetSlug

func (s *User) GetSlug() OptString

GetSlug returns the value of Slug.

func (*User) GetWebsite

func (s *User) GetWebsite() OptString

GetWebsite returns the value of Website.

func (*User) MarshalJSON

func (s *User) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*User) SetBio

func (s *User) SetBio(val OptString)

SetBio sets the value of Bio.

func (*User) SetCover

func (s *User) SetCover(val OptString)

SetCover sets the value of Cover.

func (*User) SetEmail

func (s *User) SetEmail(val OptString)

SetEmail sets the value of Email.

func (*User) SetID

func (s *User) SetID(val OptInt64)

SetID sets the value of ID.

func (*User) SetImage

func (s *User) SetImage(val OptString)

SetImage sets the value of Image.

func (*User) SetLocation

func (s *User) SetLocation(val OptString)

SetLocation sets the value of Location.

func (*User) SetName

func (s *User) SetName(val OptString)

SetName sets the value of Name.

func (*User) SetPassword

func (s *User) SetPassword(val OptString)

SetPassword sets the value of Password.

func (*User) SetPasswordRepeated

func (s *User) SetPasswordRepeated(val OptString)

SetPasswordRepeated sets the value of PasswordRepeated.

func (*User) SetSlug

func (s *User) SetSlug(val OptString)

SetSlug sets the value of Slug.

func (*User) SetWebsite

func (s *User) SetWebsite(val OptString)

SetWebsite sets the value of Website.

func (*User) UnmarshalJSON

func (s *User) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL