Versions in this module Expand all Collapse all v1 v1.2.0 Sep 8, 2024 Changes in this version + func WithServerURL(ctx context.Context, u *url.URL) context.Context + type Client struct + func NewClient(serverURL string, sec SecuritySource, opts ...ClientOption) (*Client, error) + func (c *Client) CreatePost(ctx context.Context, request OptCreatePostReq, params CreatePostParams) (CreatePostRes, error) + func (c *Client) DeletePost(ctx context.Context, request OptDeletePostReq, params DeletePostParams) (DeletePostRes, error) + func (c *Client) GetEditablePost(ctx context.Context, params GetEditablePostParams) (GetEditablePostRes, error) + func (c *Client) ListManagedPosts(ctx context.Context, params ListManagedPostsParams) (ListManagedPostsRes, error) + func (c *Client) UpdatePost(ctx context.Context, request OptUpdatePostReq, params UpdatePostParams) (UpdatePostRes, error) + type ClientOption interface + func WithClient(client ht.Client) ClientOption + type Create struct + Body OptCreateBody + func (s *Create) Decode(d *jx.Decoder) error + func (s *Create) Encode(e *jx.Encoder) + func (s *Create) GetBody() OptCreateBody + func (s *Create) MarshalJSON() ([]byte, error) + func (s *Create) SetBody(val OptCreateBody) + func (s *Create) UnmarshalJSON(data []byte) error + type CreateBody struct + PostId OptString + func (s *CreateBody) Decode(d *jx.Decoder) error + func (s *CreateBody) Encode(e *jx.Encoder) + func (s *CreateBody) GetPostId() OptString + func (s *CreateBody) MarshalJSON() ([]byte, error) + func (s *CreateBody) SetPostId(val OptString) + func (s *CreateBody) UnmarshalJSON(data []byte) error + type CreatePostBadRequestApplicationJSON jx.Raw + func (s *CreatePostBadRequestApplicationJSON) Decode(d *jx.Decoder) error + func (s *CreatePostBadRequestApplicationJSON) UnmarshalJSON(data []byte) error + func (s CreatePostBadRequestApplicationJSON) Encode(e *jx.Encoder) + func (s CreatePostBadRequestApplicationJSON) MarshalJSON() ([]byte, error) + type CreatePostParams struct + Origin string + UserAgent string + type CreatePostReq struct + Type CreatePostReqType + func (s *CreatePostReq) Decode(d *jx.Decoder) error + func (s *CreatePostReq) Encode(e *jx.Encoder) + func (s *CreatePostReq) GetType() CreatePostReqType + func (s *CreatePostReq) MarshalJSON() ([]byte, error) + func (s *CreatePostReq) SetType(val CreatePostReqType) + func (s *CreatePostReq) UnmarshalJSON(data []byte) error + func (s *CreatePostReq) Validate() error + type CreatePostReqType string + const CreatePostReqTypeArticle + func (CreatePostReqType) AllValues() []CreatePostReqType + func (s *CreatePostReqType) Decode(d *jx.Decoder) error + func (s *CreatePostReqType) UnmarshalJSON(data []byte) error + func (s *CreatePostReqType) UnmarshalText(data []byte) error + func (s CreatePostReqType) Encode(e *jx.Encoder) + func (s CreatePostReqType) MarshalJSON() ([]byte, error) + func (s CreatePostReqType) MarshalText() ([]byte, error) + func (s CreatePostReqType) Validate() error + type CreatePostRes interface + type CsrfToken struct + APIKey string + func (s *CsrfToken) GetAPIKey() string + func (s *CsrfToken) SetAPIKey(val string) + type Delete struct + Body OptNull + func (s *Delete) Decode(d *jx.Decoder) error + func (s *Delete) Encode(e *jx.Encoder) + func (s *Delete) GetBody() OptNull + func (s *Delete) MarshalJSON() ([]byte, error) + func (s *Delete) SetBody(val OptNull) + func (s *Delete) UnmarshalJSON(data []byte) error + type DeletePostParams struct + Origin string + UserAgent string + type DeletePostReq struct + PostId string + func (s *DeletePostReq) Decode(d *jx.Decoder) error + func (s *DeletePostReq) Encode(e *jx.Encoder) + func (s *DeletePostReq) GetPostId() string + func (s *DeletePostReq) MarshalJSON() ([]byte, error) + func (s *DeletePostReq) SetPostId(val string) + func (s *DeletePostReq) UnmarshalJSON(data []byte) error + type DeletePostRes interface + type Get struct + Body OptPost + func (s *Get) Decode(d *jx.Decoder) error + func (s *Get) Encode(e *jx.Encoder) + func (s *Get) GetBody() OptPost + func (s *Get) MarshalJSON() ([]byte, error) + func (s *Get) SetBody(val OptPost) + func (s *Get) UnmarshalJSON(data []byte) error + func (s *Get) Validate() error + type GetEditablePostParams struct + Origin string + PostId string + UserAgent string + type GetEditablePostRes interface + type Invoker interface + CreatePost func(ctx context.Context, request OptCreatePostReq, params CreatePostParams) (CreatePostRes, error) + DeletePost func(ctx context.Context, request OptDeletePostReq, params DeletePostParams) (DeletePostRes, error) + GetEditablePost func(ctx context.Context, params GetEditablePostParams) (GetEditablePostRes, error) + ListManagedPosts func(ctx context.Context, params ListManagedPostsParams) (ListManagedPostsRes, error) + UpdatePost func(ctx context.Context, request OptUpdatePostReq, params UpdatePostParams) (UpdatePostRes, error) + type List struct + Body []Post + func (s *List) Decode(d *jx.Decoder) error + func (s *List) Encode(e *jx.Encoder) + func (s *List) GetBody() []Post + func (s *List) MarshalJSON() ([]byte, error) + func (s *List) SetBody(val []Post) + func (s *List) UnmarshalJSON(data []byte) error + func (s *List) Validate() error + type ListManagedPostsParams struct + Origin string + UserAgent string + type ListManagedPostsRes interface + type OptCreateBody struct + Set bool + Value CreateBody + func NewOptCreateBody(v CreateBody) OptCreateBody + func (o *OptCreateBody) Decode(d *jx.Decoder) error + func (o *OptCreateBody) Reset() + func (o *OptCreateBody) SetTo(v CreateBody) + func (o OptCreateBody) Encode(e *jx.Encoder) + func (o OptCreateBody) Get() (v CreateBody, ok bool) + func (o OptCreateBody) IsSet() bool + func (o OptCreateBody) Or(d CreateBody) CreateBody + func (s *OptCreateBody) UnmarshalJSON(data []byte) error + func (s OptCreateBody) MarshalJSON() ([]byte, error) + type OptCreatePostReq struct + Set bool + Value CreatePostReq + func NewOptCreatePostReq(v CreatePostReq) OptCreatePostReq + func (o *OptCreatePostReq) Decode(d *jx.Decoder) error + func (o *OptCreatePostReq) Reset() + func (o *OptCreatePostReq) SetTo(v CreatePostReq) + func (o OptCreatePostReq) Encode(e *jx.Encoder) + func (o OptCreatePostReq) Get() (v CreatePostReq, ok bool) + func (o OptCreatePostReq) IsSet() bool + func (o OptCreatePostReq) Or(d CreatePostReq) CreatePostReq + func (s *OptCreatePostReq) UnmarshalJSON(data []byte) error + func (s OptCreatePostReq) MarshalJSON() ([]byte, error) + type OptDeletePostReq struct + Set bool + Value DeletePostReq + func NewOptDeletePostReq(v DeletePostReq) OptDeletePostReq + func (o *OptDeletePostReq) Decode(d *jx.Decoder) error + func (o *OptDeletePostReq) Reset() + func (o *OptDeletePostReq) SetTo(v DeletePostReq) + func (o OptDeletePostReq) Encode(e *jx.Encoder) + func (o OptDeletePostReq) Get() (v DeletePostReq, ok bool) + func (o OptDeletePostReq) IsSet() bool + func (o OptDeletePostReq) Or(d DeletePostReq) DeletePostReq + func (s *OptDeletePostReq) UnmarshalJSON(data []byte) error + func (s OptDeletePostReq) MarshalJSON() ([]byte, error) + type OptInt struct + Set bool + Value int + func NewOptInt(v int) OptInt + func (o *OptInt) Decode(d *jx.Decoder) error + func (o *OptInt) Reset() + func (o *OptInt) SetTo(v int) + func (o OptInt) Encode(e *jx.Encoder) + func (o OptInt) Get() (v int, ok bool) + func (o OptInt) IsSet() bool + func (o OptInt) Or(d int) int + func (s *OptInt) UnmarshalJSON(data []byte) error + func (s OptInt) MarshalJSON() ([]byte, error) + type OptNull struct + Set bool + Value struct{} + func NewOptNull(v struct{}) OptNull + func (o *OptNull) Decode(d *jx.Decoder) error + func (o *OptNull) Reset() + func (o *OptNull) SetTo(v struct{}) + func (o OptNull) Encode(e *jx.Encoder) + func (o OptNull) Get() (v struct{}, ok bool) + func (o OptNull) IsSet() bool + func (o OptNull) Or(d struct{}) struct{} + func (s *OptNull) UnmarshalJSON(data []byte) error + func (s OptNull) MarshalJSON() ([]byte, error) + type OptPost struct + Set bool + Value Post + func NewOptPost(v Post) OptPost + func (o *OptPost) Decode(d *jx.Decoder) error + func (o *OptPost) Reset() + func (o *OptPost) SetTo(v Post) + func (o OptPost) Encode(e *jx.Encoder) + func (o OptPost) Get() (v Post, ok bool) + func (o OptPost) IsSet() bool + func (o OptPost) Or(d Post) Post + func (s *OptPost) UnmarshalJSON(data []byte) error + func (s OptPost) MarshalJSON() ([]byte, error) + type OptPostBody struct + Set bool + Value PostBody + func NewOptPostBody(v PostBody) OptPostBody + func (o *OptPostBody) Decode(d *jx.Decoder) error + func (o *OptPostBody) Reset() + func (o *OptPostBody) SetTo(v PostBody) + func (o OptPostBody) Encode(e *jx.Encoder) + func (o OptPostBody) Get() (v PostBody, ok bool) + func (o OptPostBody) IsSet() bool + func (o OptPostBody) Or(d PostBody) PostBody + func (s *OptPostBody) UnmarshalJSON(data []byte) error + func (s OptPostBody) MarshalJSON() ([]byte, error) + type OptPostBodyBlocksItemStylesItemType struct + Set bool + Value PostBodyBlocksItemStylesItemType + func NewOptPostBodyBlocksItemStylesItemType(v PostBodyBlocksItemStylesItemType) OptPostBodyBlocksItemStylesItemType + func (o *OptPostBodyBlocksItemStylesItemType) Decode(d *jx.Decoder) error + func (o *OptPostBodyBlocksItemStylesItemType) Reset() + func (o *OptPostBodyBlocksItemStylesItemType) SetTo(v PostBodyBlocksItemStylesItemType) + func (o OptPostBodyBlocksItemStylesItemType) Encode(e *jx.Encoder) + func (o OptPostBodyBlocksItemStylesItemType) Get() (v PostBodyBlocksItemStylesItemType, ok bool) + func (o OptPostBodyBlocksItemStylesItemType) IsSet() bool + func (o OptPostBodyBlocksItemStylesItemType) Or(d PostBodyBlocksItemStylesItemType) PostBodyBlocksItemStylesItemType + func (s *OptPostBodyBlocksItemStylesItemType) UnmarshalJSON(data []byte) error + func (s OptPostBodyBlocksItemStylesItemType) MarshalJSON() ([]byte, error) + type OptPostBodyBlocksItemType struct + Set bool + Value PostBodyBlocksItemType + func NewOptPostBodyBlocksItemType(v PostBodyBlocksItemType) OptPostBodyBlocksItemType + func (o *OptPostBodyBlocksItemType) Decode(d *jx.Decoder) error + func (o *OptPostBodyBlocksItemType) Reset() + func (o *OptPostBodyBlocksItemType) SetTo(v PostBodyBlocksItemType) + func (o OptPostBodyBlocksItemType) Encode(e *jx.Encoder) + func (o OptPostBodyBlocksItemType) Get() (v PostBodyBlocksItemType, ok bool) + func (o OptPostBodyBlocksItemType) IsSet() bool + func (o OptPostBodyBlocksItemType) Or(d PostBodyBlocksItemType) PostBodyBlocksItemType + func (s *OptPostBodyBlocksItemType) UnmarshalJSON(data []byte) error + func (s OptPostBodyBlocksItemType) MarshalJSON() ([]byte, error) + type OptPostBodyImageMap struct + Set bool + Value PostBodyImageMap + func NewOptPostBodyImageMap(v PostBodyImageMap) OptPostBodyImageMap + func (o *OptPostBodyImageMap) Decode(d *jx.Decoder) error + func (o *OptPostBodyImageMap) Reset() + func (o *OptPostBodyImageMap) SetTo(v PostBodyImageMap) + func (o OptPostBodyImageMap) Encode(e *jx.Encoder) + func (o OptPostBodyImageMap) Get() (v PostBodyImageMap, ok bool) + func (o OptPostBodyImageMap) IsSet() bool + func (o OptPostBodyImageMap) Or(d PostBodyImageMap) PostBodyImageMap + func (s *OptPostBodyImageMap) UnmarshalJSON(data []byte) error + func (s OptPostBodyImageMap) MarshalJSON() ([]byte, error) + type OptPostBodyUrlEmbedMap struct + Set bool + Value PostBodyUrlEmbedMap + func NewOptPostBodyUrlEmbedMap(v PostBodyUrlEmbedMap) OptPostBodyUrlEmbedMap + func (o *OptPostBodyUrlEmbedMap) Decode(d *jx.Decoder) error + func (o *OptPostBodyUrlEmbedMap) Reset() + func (o *OptPostBodyUrlEmbedMap) SetTo(v PostBodyUrlEmbedMap) + func (o OptPostBodyUrlEmbedMap) Encode(e *jx.Encoder) + func (o OptPostBodyUrlEmbedMap) Get() (v PostBodyUrlEmbedMap, ok bool) + func (o OptPostBodyUrlEmbedMap) IsSet() bool + func (o OptPostBodyUrlEmbedMap) Or(d PostBodyUrlEmbedMap) PostBodyUrlEmbedMap + func (s *OptPostBodyUrlEmbedMap) UnmarshalJSON(data []byte) error + func (s OptPostBodyUrlEmbedMap) MarshalJSON() ([]byte, error) + type OptPostBodyUrlEmbedMapItemPostInfo struct + Set bool + Value PostBodyUrlEmbedMapItemPostInfo + func NewOptPostBodyUrlEmbedMapItemPostInfo(v PostBodyUrlEmbedMapItemPostInfo) OptPostBodyUrlEmbedMapItemPostInfo + func (o *OptPostBodyUrlEmbedMapItemPostInfo) Decode(d *jx.Decoder) error + func (o *OptPostBodyUrlEmbedMapItemPostInfo) Reset() + func (o *OptPostBodyUrlEmbedMapItemPostInfo) SetTo(v PostBodyUrlEmbedMapItemPostInfo) + func (o OptPostBodyUrlEmbedMapItemPostInfo) Encode(e *jx.Encoder) + func (o OptPostBodyUrlEmbedMapItemPostInfo) Get() (v PostBodyUrlEmbedMapItemPostInfo, ok bool) + func (o OptPostBodyUrlEmbedMapItemPostInfo) IsSet() bool + func (o OptPostBodyUrlEmbedMapItemPostInfo) Or(d PostBodyUrlEmbedMapItemPostInfo) PostBodyUrlEmbedMapItemPostInfo + func (s *OptPostBodyUrlEmbedMapItemPostInfo) UnmarshalJSON(data []byte) error + func (s OptPostBodyUrlEmbedMapItemPostInfo) MarshalJSON() ([]byte, error) + type OptPostBodyUrlEmbedMapItemType struct + Set bool + Value PostBodyUrlEmbedMapItemType + func NewOptPostBodyUrlEmbedMapItemType(v PostBodyUrlEmbedMapItemType) OptPostBodyUrlEmbedMapItemType + func (o *OptPostBodyUrlEmbedMapItemType) Decode(d *jx.Decoder) error + func (o *OptPostBodyUrlEmbedMapItemType) Reset() + func (o *OptPostBodyUrlEmbedMapItemType) SetTo(v PostBodyUrlEmbedMapItemType) + func (o OptPostBodyUrlEmbedMapItemType) Encode(e *jx.Encoder) + func (o OptPostBodyUrlEmbedMapItemType) Get() (v PostBodyUrlEmbedMapItemType, ok bool) + func (o OptPostBodyUrlEmbedMapItemType) IsSet() bool + func (o OptPostBodyUrlEmbedMapItemType) Or(d PostBodyUrlEmbedMapItemType) PostBodyUrlEmbedMapItemType + func (s *OptPostBodyUrlEmbedMapItemType) UnmarshalJSON(data []byte) error + func (s OptPostBodyUrlEmbedMapItemType) MarshalJSON() ([]byte, error) + type OptPostStatus struct + Set bool + Value PostStatus + func NewOptPostStatus(v PostStatus) OptPostStatus + func (o *OptPostStatus) Decode(d *jx.Decoder) error + func (o *OptPostStatus) Reset() + func (o *OptPostStatus) SetTo(v PostStatus) + func (o OptPostStatus) Encode(e *jx.Encoder) + func (o OptPostStatus) Get() (v PostStatus, ok bool) + func (o OptPostStatus) IsSet() bool + func (o OptPostStatus) Or(d PostStatus) PostStatus + func (s *OptPostStatus) UnmarshalJSON(data []byte) error + func (s OptPostStatus) MarshalJSON() ([]byte, error) + type OptString struct + Set bool + Value string + func NewOptString(v string) OptString + func (o *OptString) Decode(d *jx.Decoder) error + func (o *OptString) Reset() + func (o *OptString) SetTo(v string) + func (o OptString) Encode(e *jx.Encoder) + func (o OptString) Get() (v string, ok bool) + func (o OptString) IsSet() bool + func (o OptString) Or(d string) string + func (s *OptString) UnmarshalJSON(data []byte) error + func (s OptString) MarshalJSON() ([]byte, error) + type OptUpdatePostReq struct + Set bool + Value UpdatePostReq + func NewOptUpdatePostReq(v UpdatePostReq) OptUpdatePostReq + func (o *OptUpdatePostReq) Reset() + func (o *OptUpdatePostReq) SetTo(v UpdatePostReq) + func (o OptUpdatePostReq) Get() (v UpdatePostReq, ok bool) + func (o OptUpdatePostReq) IsSet() bool + func (o OptUpdatePostReq) Or(d UpdatePostReq) UpdatePostReq + type OptUpdatePostReqStatus struct + Set bool + Value UpdatePostReqStatus + func NewOptUpdatePostReqStatus(v UpdatePostReqStatus) OptUpdatePostReqStatus + func (o *OptUpdatePostReqStatus) Reset() + func (o *OptUpdatePostReqStatus) SetTo(v UpdatePostReqStatus) + func (o OptUpdatePostReqStatus) Get() (v UpdatePostReqStatus, ok bool) + func (o OptUpdatePostReqStatus) IsSet() bool + func (o OptUpdatePostReqStatus) Or(d UpdatePostReqStatus) UpdatePostReqStatus + type Option interface + type Post struct + Body OptPostBody + FeeRequired OptInt + ID OptString + Permalink OptString + PublishedAt OptString + Status OptPostStatus + Title OptString + UpdatedAt OptString + func (s *Post) Decode(d *jx.Decoder) error + func (s *Post) Encode(e *jx.Encoder) + func (s *Post) GetBody() OptPostBody + func (s *Post) GetFeeRequired() OptInt + func (s *Post) GetID() OptString + func (s *Post) GetPermalink() OptString + func (s *Post) GetPublishedAt() OptString + func (s *Post) GetStatus() OptPostStatus + func (s *Post) GetTitle() OptString + func (s *Post) GetUpdatedAt() OptString + func (s *Post) MarshalJSON() ([]byte, error) + func (s *Post) SetBody(val OptPostBody) + func (s *Post) SetFeeRequired(val OptInt) + func (s *Post) SetID(val OptString) + func (s *Post) SetPermalink(val OptString) + func (s *Post) SetPublishedAt(val OptString) + func (s *Post) SetStatus(val OptPostStatus) + func (s *Post) SetTitle(val OptString) + func (s *Post) SetUpdatedAt(val OptString) + func (s *Post) UnmarshalJSON(data []byte) error + func (s *Post) Validate() error + type PostBody struct + Blocks []PostBodyBlocksItem + ImageMap OptPostBodyImageMap + UrlEmbedMap OptPostBodyUrlEmbedMap + func (s *PostBody) Decode(d *jx.Decoder) error + func (s *PostBody) Encode(e *jx.Encoder) + func (s *PostBody) GetBlocks() []PostBodyBlocksItem + func (s *PostBody) GetImageMap() OptPostBodyImageMap + func (s *PostBody) GetUrlEmbedMap() OptPostBodyUrlEmbedMap + func (s *PostBody) MarshalJSON() ([]byte, error) + func (s *PostBody) SetBlocks(val []PostBodyBlocksItem) + func (s *PostBody) SetImageMap(val OptPostBodyImageMap) + func (s *PostBody) SetUrlEmbedMap(val OptPostBodyUrlEmbedMap) + func (s *PostBody) UnmarshalJSON(data []byte) error + func (s *PostBody) Validate() error + type PostBodyBlocksItem struct + ImageId OptString + Styles []PostBodyBlocksItemStylesItem + Text OptString + Type OptPostBodyBlocksItemType + UrlEmbedId OptString + func (s *PostBodyBlocksItem) Decode(d *jx.Decoder) error + func (s *PostBodyBlocksItem) Encode(e *jx.Encoder) + func (s *PostBodyBlocksItem) GetImageId() OptString + func (s *PostBodyBlocksItem) GetStyles() []PostBodyBlocksItemStylesItem + func (s *PostBodyBlocksItem) GetText() OptString + func (s *PostBodyBlocksItem) GetType() OptPostBodyBlocksItemType + func (s *PostBodyBlocksItem) GetUrlEmbedId() OptString + func (s *PostBodyBlocksItem) MarshalJSON() ([]byte, error) + func (s *PostBodyBlocksItem) SetImageId(val OptString) + func (s *PostBodyBlocksItem) SetStyles(val []PostBodyBlocksItemStylesItem) + func (s *PostBodyBlocksItem) SetText(val OptString) + func (s *PostBodyBlocksItem) SetType(val OptPostBodyBlocksItemType) + func (s *PostBodyBlocksItem) SetUrlEmbedId(val OptString) + func (s *PostBodyBlocksItem) UnmarshalJSON(data []byte) error + func (s *PostBodyBlocksItem) Validate() error + type PostBodyBlocksItemStylesItem struct + Length OptInt + Offset OptInt + Type OptPostBodyBlocksItemStylesItemType + func (s *PostBodyBlocksItemStylesItem) Decode(d *jx.Decoder) error + func (s *PostBodyBlocksItemStylesItem) Encode(e *jx.Encoder) + func (s *PostBodyBlocksItemStylesItem) GetLength() OptInt + func (s *PostBodyBlocksItemStylesItem) GetOffset() OptInt + func (s *PostBodyBlocksItemStylesItem) GetType() OptPostBodyBlocksItemStylesItemType + func (s *PostBodyBlocksItemStylesItem) MarshalJSON() ([]byte, error) + func (s *PostBodyBlocksItemStylesItem) SetLength(val OptInt) + func (s *PostBodyBlocksItemStylesItem) SetOffset(val OptInt) + func (s *PostBodyBlocksItemStylesItem) SetType(val OptPostBodyBlocksItemStylesItemType) + func (s *PostBodyBlocksItemStylesItem) UnmarshalJSON(data []byte) error + func (s *PostBodyBlocksItemStylesItem) Validate() error + type PostBodyBlocksItemStylesItemType string + const PostBodyBlocksItemStylesItemTypeBold + func (PostBodyBlocksItemStylesItemType) AllValues() []PostBodyBlocksItemStylesItemType + func (s *PostBodyBlocksItemStylesItemType) Decode(d *jx.Decoder) error + func (s *PostBodyBlocksItemStylesItemType) UnmarshalJSON(data []byte) error + func (s *PostBodyBlocksItemStylesItemType) UnmarshalText(data []byte) error + func (s PostBodyBlocksItemStylesItemType) Encode(e *jx.Encoder) + func (s PostBodyBlocksItemStylesItemType) MarshalJSON() ([]byte, error) + func (s PostBodyBlocksItemStylesItemType) MarshalText() ([]byte, error) + func (s PostBodyBlocksItemStylesItemType) Validate() error + type PostBodyBlocksItemType string + const PostBodyBlocksItemTypeHeader + const PostBodyBlocksItemTypeImage + const PostBodyBlocksItemTypeP + const PostBodyBlocksItemTypeURLEmbed + func (PostBodyBlocksItemType) AllValues() []PostBodyBlocksItemType + func (s *PostBodyBlocksItemType) Decode(d *jx.Decoder) error + func (s *PostBodyBlocksItemType) UnmarshalJSON(data []byte) error + func (s *PostBodyBlocksItemType) UnmarshalText(data []byte) error + func (s PostBodyBlocksItemType) Encode(e *jx.Encoder) + func (s PostBodyBlocksItemType) MarshalJSON() ([]byte, error) + func (s PostBodyBlocksItemType) MarshalText() ([]byte, error) + func (s PostBodyBlocksItemType) Validate() error + type PostBodyImageMap map[string]PostBodyImageMapItem + func (s *PostBodyImageMap) Decode(d *jx.Decoder) error + func (s *PostBodyImageMap) UnmarshalJSON(data []byte) error + func (s PostBodyImageMap) Encode(e *jx.Encoder) + func (s PostBodyImageMap) MarshalJSON() ([]byte, error) + type PostBodyImageMapItem struct + Extension OptString + ID OptString + OriginalUrl OptString + ThumbnailUrl OptString + func (s *PostBodyImageMapItem) Decode(d *jx.Decoder) error + func (s *PostBodyImageMapItem) Encode(e *jx.Encoder) + func (s *PostBodyImageMapItem) GetExtension() OptString + func (s *PostBodyImageMapItem) GetID() OptString + func (s *PostBodyImageMapItem) GetOriginalUrl() OptString + func (s *PostBodyImageMapItem) GetThumbnailUrl() OptString + func (s *PostBodyImageMapItem) MarshalJSON() ([]byte, error) + func (s *PostBodyImageMapItem) SetExtension(val OptString) + func (s *PostBodyImageMapItem) SetID(val OptString) + func (s *PostBodyImageMapItem) SetOriginalUrl(val OptString) + func (s *PostBodyImageMapItem) SetThumbnailUrl(val OptString) + func (s *PostBodyImageMapItem) UnmarshalJSON(data []byte) error + type PostBodyUrlEmbedMap map[string]PostBodyUrlEmbedMapItem + func (s *PostBodyUrlEmbedMap) Decode(d *jx.Decoder) error + func (s *PostBodyUrlEmbedMap) UnmarshalJSON(data []byte) error + func (s PostBodyUrlEmbedMap) Encode(e *jx.Encoder) + func (s PostBodyUrlEmbedMap) MarshalJSON() ([]byte, error) + func (s PostBodyUrlEmbedMap) Validate() error + type PostBodyUrlEmbedMapItem struct + HTML OptString + ID OptString + PostInfo OptPostBodyUrlEmbedMapItemPostInfo + Type OptPostBodyUrlEmbedMapItemType + URL OptString + func (s *PostBodyUrlEmbedMapItem) Decode(d *jx.Decoder) error + func (s *PostBodyUrlEmbedMapItem) Encode(e *jx.Encoder) + func (s *PostBodyUrlEmbedMapItem) GetHTML() OptString + func (s *PostBodyUrlEmbedMapItem) GetID() OptString + func (s *PostBodyUrlEmbedMapItem) GetPostInfo() OptPostBodyUrlEmbedMapItemPostInfo + func (s *PostBodyUrlEmbedMapItem) GetType() OptPostBodyUrlEmbedMapItemType + func (s *PostBodyUrlEmbedMapItem) GetURL() OptString + func (s *PostBodyUrlEmbedMapItem) MarshalJSON() ([]byte, error) + func (s *PostBodyUrlEmbedMapItem) SetHTML(val OptString) + func (s *PostBodyUrlEmbedMapItem) SetID(val OptString) + func (s *PostBodyUrlEmbedMapItem) SetPostInfo(val OptPostBodyUrlEmbedMapItemPostInfo) + func (s *PostBodyUrlEmbedMapItem) SetType(val OptPostBodyUrlEmbedMapItemType) + func (s *PostBodyUrlEmbedMapItem) SetURL(val OptString) + func (s *PostBodyUrlEmbedMapItem) UnmarshalJSON(data []byte) error + func (s *PostBodyUrlEmbedMapItem) Validate() error + type PostBodyUrlEmbedMapItemPostInfo struct + CreatorId OptString + ID OptString + func (s *PostBodyUrlEmbedMapItemPostInfo) Decode(d *jx.Decoder) error + func (s *PostBodyUrlEmbedMapItemPostInfo) Encode(e *jx.Encoder) + func (s *PostBodyUrlEmbedMapItemPostInfo) GetCreatorId() OptString + func (s *PostBodyUrlEmbedMapItemPostInfo) GetID() OptString + func (s *PostBodyUrlEmbedMapItemPostInfo) MarshalJSON() ([]byte, error) + func (s *PostBodyUrlEmbedMapItemPostInfo) SetCreatorId(val OptString) + func (s *PostBodyUrlEmbedMapItemPostInfo) SetID(val OptString) + func (s *PostBodyUrlEmbedMapItemPostInfo) UnmarshalJSON(data []byte) error + type PostBodyUrlEmbedMapItemType string + const PostBodyUrlEmbedMapItemTypeDefault + const PostBodyUrlEmbedMapItemTypeFanboxPost + const PostBodyUrlEmbedMapItemTypeHTML + const PostBodyUrlEmbedMapItemTypeHTMLCard + func (PostBodyUrlEmbedMapItemType) AllValues() []PostBodyUrlEmbedMapItemType + func (s *PostBodyUrlEmbedMapItemType) Decode(d *jx.Decoder) error + func (s *PostBodyUrlEmbedMapItemType) UnmarshalJSON(data []byte) error + func (s *PostBodyUrlEmbedMapItemType) UnmarshalText(data []byte) error + func (s PostBodyUrlEmbedMapItemType) Encode(e *jx.Encoder) + func (s PostBodyUrlEmbedMapItemType) MarshalJSON() ([]byte, error) + func (s PostBodyUrlEmbedMapItemType) MarshalText() ([]byte, error) + func (s PostBodyUrlEmbedMapItemType) Validate() error + type PostStatus string + const PostStatusDraft + const PostStatusPublished + func (PostStatus) AllValues() []PostStatus + func (s *PostStatus) Decode(d *jx.Decoder) error + func (s *PostStatus) UnmarshalJSON(data []byte) error + func (s *PostStatus) UnmarshalText(data []byte) error + func (s PostStatus) Encode(e *jx.Encoder) + func (s PostStatus) MarshalJSON() ([]byte, error) + func (s PostStatus) MarshalText() ([]byte, error) + func (s PostStatus) Validate() error + type SecuritySource interface + CsrfToken func(ctx context.Context, operationName string) (CsrfToken, error) + SessionId func(ctx context.Context, operationName string) (SessionId, error) + type SessionId struct + APIKey string + func (s *SessionId) GetAPIKey() string + func (s *SessionId) SetAPIKey(val string) + type Update struct + Body OptPost + func (s *Update) Decode(d *jx.Decoder) error + func (s *Update) Encode(e *jx.Encoder) + func (s *Update) GetBody() OptPost + func (s *Update) MarshalJSON() ([]byte, error) + func (s *Update) SetBody(val OptPost) + func (s *Update) UnmarshalJSON(data []byte) error + func (s *Update) Validate() error + type UpdatePostParams struct + Origin string + UserAgent string + type UpdatePostReq struct + Body OptString + FeeRequired OptString + PostId OptString + Status OptUpdatePostReqStatus + Tags []string + Title OptString + Tt OptString + func (s *UpdatePostReq) GetBody() OptString + func (s *UpdatePostReq) GetFeeRequired() OptString + func (s *UpdatePostReq) GetPostId() OptString + func (s *UpdatePostReq) GetStatus() OptUpdatePostReqStatus + func (s *UpdatePostReq) GetTags() []string + func (s *UpdatePostReq) GetTitle() OptString + func (s *UpdatePostReq) GetTt() OptString + func (s *UpdatePostReq) SetBody(val OptString) + func (s *UpdatePostReq) SetFeeRequired(val OptString) + func (s *UpdatePostReq) SetPostId(val OptString) + func (s *UpdatePostReq) SetStatus(val OptUpdatePostReqStatus) + func (s *UpdatePostReq) SetTags(val []string) + func (s *UpdatePostReq) SetTitle(val OptString) + func (s *UpdatePostReq) SetTt(val OptString) + func (s *UpdatePostReq) Validate() error + type UpdatePostReqStatus string + const UpdatePostReqStatusDraft + const UpdatePostReqStatusPublished + func (UpdatePostReqStatus) AllValues() []UpdatePostReqStatus + func (s *UpdatePostReqStatus) UnmarshalText(data []byte) error + func (s UpdatePostReqStatus) MarshalText() ([]byte, error) + func (s UpdatePostReqStatus) Validate() error + type UpdatePostRes interface v1.1.0 Sep 7, 2024 v1.0.2 Sep 1, 2024