post

package
v0.0.0-...-4036ab3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Code generated by Kitex v0.12.1. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var DeletePostArgs_Req_DEFAULT *core_api.DeletePostReq
View Source
var DeletePostResult_Success_DEFAULT *core_api.DeletePostResp
View Source
var GetPostDetailArgs_Req_DEFAULT *core_api.GetPostDetailReq
View Source
var GetPostDetailResult_Success_DEFAULT *core_api.GetPostDetailResp
View Source
var GetPostPreviewsArgs_Req_DEFAULT *core_api.GetPostPreviewsReq
View Source
var GetPostPreviewsResult_Success_DEFAULT *core_api.GetPostPreviewsResp
View Source
var NewPostArgs_Req_DEFAULT *core_api.NewPostReq
View Source
var NewPostResult_Success_DEFAULT *core_api.NewPostResp
View Source
var SetOfficialArgs_Req_DEFAULT *core_api.SetOfficialReq
View Source
var SetOfficialResult_Success_DEFAULT *core_api.SetOfficialResp

Functions

func NewServer

func NewServer(handler core_api.Post, opts ...server.Option) server.Server

NewServer creates a server.Server with the given handler and options.

func NewServiceInfo

func NewServiceInfo() *kitex.ServiceInfo

NewServiceInfo creates a new ServiceInfo containing all methods

func NewServiceInfoForClient

func NewServiceInfoForClient() *kitex.ServiceInfo

NewServiceInfo creates a new ServiceInfo containing non-streaming methods

func NewServiceInfoForStreamClient

func NewServiceInfoForStreamClient() *kitex.ServiceInfo

func RegisterService

func RegisterService(svr server.Server, handler core_api.Post, opts ...server.RegisterOption) error

Types

type Client

type Client interface {
	GetPostPreviews(ctx context.Context, Req *core_api.GetPostPreviewsReq, callOptions ...callopt.Option) (r *core_api.GetPostPreviewsResp, err error)
	GetPostDetail(ctx context.Context, Req *core_api.GetPostDetailReq, callOptions ...callopt.Option) (r *core_api.GetPostDetailResp, err error)
	NewPost(ctx context.Context, Req *core_api.NewPostReq, callOptions ...callopt.Option) (r *core_api.NewPostResp, err error)
	DeletePost(ctx context.Context, Req *core_api.DeletePostReq, callOptions ...callopt.Option) (r *core_api.DeletePostResp, err error)
	SetOfficial(ctx context.Context, Req *core_api.SetOfficialReq, callOptions ...callopt.Option) (r *core_api.SetOfficialResp, err error)
}

Client is designed to provide IDL-compatible methods with call-option parameter for kitex framework.

func MustNewClient

func MustNewClient(destService string, opts ...client.Option) Client

MustNewClient creates a client for the service defined in IDL. It panics if any error occurs.

func NewClient

func NewClient(destService string, opts ...client.Option) (Client, error)

NewClient creates a client for the service defined in IDL.

type DeletePostArgs

type DeletePostArgs struct {
	Req *core_api.DeletePostReq
}

func (*DeletePostArgs) FastRead

func (p *DeletePostArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*DeletePostArgs) FastWrite

func (p *DeletePostArgs) FastWrite(buf []byte) (n int)

func (*DeletePostArgs) GetFirstArgument

func (p *DeletePostArgs) GetFirstArgument() interface{}

func (*DeletePostArgs) GetReq

func (p *DeletePostArgs) GetReq() *core_api.DeletePostReq

func (*DeletePostArgs) IsSetReq

func (p *DeletePostArgs) IsSetReq() bool

func (*DeletePostArgs) Marshal

func (p *DeletePostArgs) Marshal(out []byte) ([]byte, error)

func (*DeletePostArgs) Size

func (p *DeletePostArgs) Size() (n int)

func (*DeletePostArgs) Unmarshal

func (p *DeletePostArgs) Unmarshal(in []byte) error

type DeletePostResult

type DeletePostResult struct {
	Success *core_api.DeletePostResp
}

func (*DeletePostResult) FastRead

func (p *DeletePostResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*DeletePostResult) FastWrite

func (p *DeletePostResult) FastWrite(buf []byte) (n int)

func (*DeletePostResult) GetResult

func (p *DeletePostResult) GetResult() interface{}

func (*DeletePostResult) GetSuccess

func (p *DeletePostResult) GetSuccess() *core_api.DeletePostResp

func (*DeletePostResult) IsSetSuccess

func (p *DeletePostResult) IsSetSuccess() bool

func (*DeletePostResult) Marshal

func (p *DeletePostResult) Marshal(out []byte) ([]byte, error)

func (*DeletePostResult) SetSuccess

func (p *DeletePostResult) SetSuccess(x interface{})

func (*DeletePostResult) Size

func (p *DeletePostResult) Size() (n int)

func (*DeletePostResult) Unmarshal

func (p *DeletePostResult) Unmarshal(in []byte) error

type GetPostDetailArgs

type GetPostDetailArgs struct {
	Req *core_api.GetPostDetailReq
}

func (*GetPostDetailArgs) FastRead

func (p *GetPostDetailArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*GetPostDetailArgs) FastWrite

func (p *GetPostDetailArgs) FastWrite(buf []byte) (n int)

func (*GetPostDetailArgs) GetFirstArgument

func (p *GetPostDetailArgs) GetFirstArgument() interface{}

func (*GetPostDetailArgs) GetReq

func (*GetPostDetailArgs) IsSetReq

func (p *GetPostDetailArgs) IsSetReq() bool

func (*GetPostDetailArgs) Marshal

func (p *GetPostDetailArgs) Marshal(out []byte) ([]byte, error)

func (*GetPostDetailArgs) Size

func (p *GetPostDetailArgs) Size() (n int)

func (*GetPostDetailArgs) Unmarshal

func (p *GetPostDetailArgs) Unmarshal(in []byte) error

type GetPostDetailResult

type GetPostDetailResult struct {
	Success *core_api.GetPostDetailResp
}

func (*GetPostDetailResult) FastRead

func (p *GetPostDetailResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*GetPostDetailResult) FastWrite

func (p *GetPostDetailResult) FastWrite(buf []byte) (n int)

func (*GetPostDetailResult) GetResult

func (p *GetPostDetailResult) GetResult() interface{}

func (*GetPostDetailResult) GetSuccess

func (*GetPostDetailResult) IsSetSuccess

func (p *GetPostDetailResult) IsSetSuccess() bool

func (*GetPostDetailResult) Marshal

func (p *GetPostDetailResult) Marshal(out []byte) ([]byte, error)

func (*GetPostDetailResult) SetSuccess

func (p *GetPostDetailResult) SetSuccess(x interface{})

func (*GetPostDetailResult) Size

func (p *GetPostDetailResult) Size() (n int)

func (*GetPostDetailResult) Unmarshal

func (p *GetPostDetailResult) Unmarshal(in []byte) error

type GetPostPreviewsArgs

type GetPostPreviewsArgs struct {
	Req *core_api.GetPostPreviewsReq
}

func (*GetPostPreviewsArgs) FastRead

func (p *GetPostPreviewsArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*GetPostPreviewsArgs) FastWrite

func (p *GetPostPreviewsArgs) FastWrite(buf []byte) (n int)

func (*GetPostPreviewsArgs) GetFirstArgument

func (p *GetPostPreviewsArgs) GetFirstArgument() interface{}

func (*GetPostPreviewsArgs) GetReq

func (*GetPostPreviewsArgs) IsSetReq

func (p *GetPostPreviewsArgs) IsSetReq() bool

func (*GetPostPreviewsArgs) Marshal

func (p *GetPostPreviewsArgs) Marshal(out []byte) ([]byte, error)

func (*GetPostPreviewsArgs) Size

func (p *GetPostPreviewsArgs) Size() (n int)

func (*GetPostPreviewsArgs) Unmarshal

func (p *GetPostPreviewsArgs) Unmarshal(in []byte) error

type GetPostPreviewsResult

type GetPostPreviewsResult struct {
	Success *core_api.GetPostPreviewsResp
}

func (*GetPostPreviewsResult) FastRead

func (p *GetPostPreviewsResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*GetPostPreviewsResult) FastWrite

func (p *GetPostPreviewsResult) FastWrite(buf []byte) (n int)

func (*GetPostPreviewsResult) GetResult

func (p *GetPostPreviewsResult) GetResult() interface{}

func (*GetPostPreviewsResult) GetSuccess

func (*GetPostPreviewsResult) IsSetSuccess

func (p *GetPostPreviewsResult) IsSetSuccess() bool

func (*GetPostPreviewsResult) Marshal

func (p *GetPostPreviewsResult) Marshal(out []byte) ([]byte, error)

func (*GetPostPreviewsResult) SetSuccess

func (p *GetPostPreviewsResult) SetSuccess(x interface{})

func (*GetPostPreviewsResult) Size

func (p *GetPostPreviewsResult) Size() (n int)

func (*GetPostPreviewsResult) Unmarshal

func (p *GetPostPreviewsResult) Unmarshal(in []byte) error

type NewPostArgs

type NewPostArgs struct {
	Req *core_api.NewPostReq
}

func (*NewPostArgs) FastRead

func (p *NewPostArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*NewPostArgs) FastWrite

func (p *NewPostArgs) FastWrite(buf []byte) (n int)

func (*NewPostArgs) GetFirstArgument

func (p *NewPostArgs) GetFirstArgument() interface{}

func (*NewPostArgs) GetReq

func (p *NewPostArgs) GetReq() *core_api.NewPostReq

func (*NewPostArgs) IsSetReq

func (p *NewPostArgs) IsSetReq() bool

func (*NewPostArgs) Marshal

func (p *NewPostArgs) Marshal(out []byte) ([]byte, error)

func (*NewPostArgs) Size

func (p *NewPostArgs) Size() (n int)

func (*NewPostArgs) Unmarshal

func (p *NewPostArgs) Unmarshal(in []byte) error

type NewPostResult

type NewPostResult struct {
	Success *core_api.NewPostResp
}

func (*NewPostResult) FastRead

func (p *NewPostResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*NewPostResult) FastWrite

func (p *NewPostResult) FastWrite(buf []byte) (n int)

func (*NewPostResult) GetResult

func (p *NewPostResult) GetResult() interface{}

func (*NewPostResult) GetSuccess

func (p *NewPostResult) GetSuccess() *core_api.NewPostResp

func (*NewPostResult) IsSetSuccess

func (p *NewPostResult) IsSetSuccess() bool

func (*NewPostResult) Marshal

func (p *NewPostResult) Marshal(out []byte) ([]byte, error)

func (*NewPostResult) SetSuccess

func (p *NewPostResult) SetSuccess(x interface{})

func (*NewPostResult) Size

func (p *NewPostResult) Size() (n int)

func (*NewPostResult) Unmarshal

func (p *NewPostResult) Unmarshal(in []byte) error

type SetOfficialArgs

type SetOfficialArgs struct {
	Req *core_api.SetOfficialReq
}

func (*SetOfficialArgs) FastRead

func (p *SetOfficialArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*SetOfficialArgs) FastWrite

func (p *SetOfficialArgs) FastWrite(buf []byte) (n int)

func (*SetOfficialArgs) GetFirstArgument

func (p *SetOfficialArgs) GetFirstArgument() interface{}

func (*SetOfficialArgs) GetReq

func (*SetOfficialArgs) IsSetReq

func (p *SetOfficialArgs) IsSetReq() bool

func (*SetOfficialArgs) Marshal

func (p *SetOfficialArgs) Marshal(out []byte) ([]byte, error)

func (*SetOfficialArgs) Size

func (p *SetOfficialArgs) Size() (n int)

func (*SetOfficialArgs) Unmarshal

func (p *SetOfficialArgs) Unmarshal(in []byte) error

type SetOfficialResult

type SetOfficialResult struct {
	Success *core_api.SetOfficialResp
}

func (*SetOfficialResult) FastRead

func (p *SetOfficialResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*SetOfficialResult) FastWrite

func (p *SetOfficialResult) FastWrite(buf []byte) (n int)

func (*SetOfficialResult) GetResult

func (p *SetOfficialResult) GetResult() interface{}

func (*SetOfficialResult) GetSuccess

func (p *SetOfficialResult) GetSuccess() *core_api.SetOfficialResp

func (*SetOfficialResult) IsSetSuccess

func (p *SetOfficialResult) IsSetSuccess() bool

func (*SetOfficialResult) Marshal

func (p *SetOfficialResult) Marshal(out []byte) ([]byte, error)

func (*SetOfficialResult) SetSuccess

func (p *SetOfficialResult) SetSuccess(x interface{})

func (*SetOfficialResult) Size

func (p *SetOfficialResult) Size() (n int)

func (*SetOfficialResult) Unmarshal

func (p *SetOfficialResult) Unmarshal(in []byte) error

Jump to

Keyboard shortcuts

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