comment

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommentActionRequest_CommentId_DEFAULT int64
View Source
var CommentActionRequest_CommentText_DEFAULT string
View Source
var CommentActionResponse_Comment_DEFAULT *rpcmodel.Comment
View Source
var KitexUnusedProtection = struct{}{}

KitexUnusedProtection is used to prevent 'imported and not used' error.

Functions

This section is empty.

Types

type CommentActionRequest

type CommentActionRequest struct {
	VideoId     int64   `thrift:"VideoId,1,required" frugal:"1,required,i64" json:"VideoId"`
	UserId      int64   `thrift:"UserId,2,required" frugal:"2,required,i64" json:"UserId"`
	ActionType  int32   `thrift:"ActionType,3,required" frugal:"3,required,i32" json:"ActionType"`
	CommentText *string `thrift:"CommentText,4,optional" frugal:"4,optional,string" json:"CommentText,omitempty"`
	CommentId   *int64  `thrift:"CommentId,5,optional" frugal:"5,optional,i64" json:"CommentId,omitempty"`
}
var CommentServiceCommentActionArgs_Req_DEFAULT *CommentActionRequest

func NewCommentActionRequest

func NewCommentActionRequest() *CommentActionRequest

func (*CommentActionRequest) BLength

func (p *CommentActionRequest) BLength() int

func (*CommentActionRequest) DeepEqual

func (p *CommentActionRequest) DeepEqual(ano *CommentActionRequest) bool

func (*CommentActionRequest) FastRead

func (p *CommentActionRequest) FastRead(buf []byte) (int, error)

func (*CommentActionRequest) FastReadField1

func (p *CommentActionRequest) FastReadField1(buf []byte) (int, error)

func (*CommentActionRequest) FastReadField2

func (p *CommentActionRequest) FastReadField2(buf []byte) (int, error)

func (*CommentActionRequest) FastReadField3

func (p *CommentActionRequest) FastReadField3(buf []byte) (int, error)

func (*CommentActionRequest) FastReadField4

func (p *CommentActionRequest) FastReadField4(buf []byte) (int, error)

func (*CommentActionRequest) FastReadField5

func (p *CommentActionRequest) FastReadField5(buf []byte) (int, error)

func (*CommentActionRequest) FastWrite

func (p *CommentActionRequest) FastWrite(buf []byte) int

for compatibility

func (*CommentActionRequest) FastWriteNocopy

func (p *CommentActionRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*CommentActionRequest) Field1DeepEqual

func (p *CommentActionRequest) Field1DeepEqual(src int64) bool

func (*CommentActionRequest) Field2DeepEqual

func (p *CommentActionRequest) Field2DeepEqual(src int64) bool

func (*CommentActionRequest) Field3DeepEqual

func (p *CommentActionRequest) Field3DeepEqual(src int32) bool

func (*CommentActionRequest) Field4DeepEqual

func (p *CommentActionRequest) Field4DeepEqual(src *string) bool

func (*CommentActionRequest) Field5DeepEqual

func (p *CommentActionRequest) Field5DeepEqual(src *int64) bool

func (*CommentActionRequest) GetActionType

func (p *CommentActionRequest) GetActionType() (v int32)

func (*CommentActionRequest) GetCommentId

func (p *CommentActionRequest) GetCommentId() (v int64)

func (*CommentActionRequest) GetCommentText

func (p *CommentActionRequest) GetCommentText() (v string)

func (*CommentActionRequest) GetUserId

func (p *CommentActionRequest) GetUserId() (v int64)

func (*CommentActionRequest) GetVideoId

func (p *CommentActionRequest) GetVideoId() (v int64)

func (*CommentActionRequest) InitDefault

func (p *CommentActionRequest) InitDefault()

func (*CommentActionRequest) IsSetCommentId

func (p *CommentActionRequest) IsSetCommentId() bool

func (*CommentActionRequest) IsSetCommentText

func (p *CommentActionRequest) IsSetCommentText() bool

func (*CommentActionRequest) Read

func (p *CommentActionRequest) Read(iprot thrift.TProtocol) (err error)

func (*CommentActionRequest) ReadField1

func (p *CommentActionRequest) ReadField1(iprot thrift.TProtocol) error

func (*CommentActionRequest) ReadField2

func (p *CommentActionRequest) ReadField2(iprot thrift.TProtocol) error

func (*CommentActionRequest) ReadField3

func (p *CommentActionRequest) ReadField3(iprot thrift.TProtocol) error

func (*CommentActionRequest) ReadField4

func (p *CommentActionRequest) ReadField4(iprot thrift.TProtocol) error

func (*CommentActionRequest) ReadField5

func (p *CommentActionRequest) ReadField5(iprot thrift.TProtocol) error

func (*CommentActionRequest) SetActionType

func (p *CommentActionRequest) SetActionType(val int32)

func (*CommentActionRequest) SetCommentId

func (p *CommentActionRequest) SetCommentId(val *int64)

func (*CommentActionRequest) SetCommentText

func (p *CommentActionRequest) SetCommentText(val *string)

func (*CommentActionRequest) SetUserId

func (p *CommentActionRequest) SetUserId(val int64)

func (*CommentActionRequest) SetVideoId

func (p *CommentActionRequest) SetVideoId(val int64)

func (*CommentActionRequest) String

func (p *CommentActionRequest) String() string

func (*CommentActionRequest) Write

func (p *CommentActionRequest) Write(oprot thrift.TProtocol) (err error)

type CommentActionResponse

type CommentActionResponse struct {
	Comment *rpcmodel.Comment `thrift:"Comment,1,optional" frugal:"1,optional,rpcmodel.Comment" json:"Comment,omitempty"`
}
var CommentServiceCommentActionResult_Success_DEFAULT *CommentActionResponse

func NewCommentActionResponse

func NewCommentActionResponse() *CommentActionResponse

func (*CommentActionResponse) BLength

func (p *CommentActionResponse) BLength() int

func (*CommentActionResponse) DeepEqual

func (*CommentActionResponse) FastRead

func (p *CommentActionResponse) FastRead(buf []byte) (int, error)

func (*CommentActionResponse) FastReadField1

func (p *CommentActionResponse) FastReadField1(buf []byte) (int, error)

func (*CommentActionResponse) FastWrite

func (p *CommentActionResponse) FastWrite(buf []byte) int

for compatibility

func (*CommentActionResponse) FastWriteNocopy

func (p *CommentActionResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*CommentActionResponse) Field1DeepEqual

func (p *CommentActionResponse) Field1DeepEqual(src *rpcmodel.Comment) bool

func (*CommentActionResponse) GetComment

func (p *CommentActionResponse) GetComment() (v *rpcmodel.Comment)

func (*CommentActionResponse) InitDefault

func (p *CommentActionResponse) InitDefault()

func (*CommentActionResponse) IsSetComment

func (p *CommentActionResponse) IsSetComment() bool

func (*CommentActionResponse) Read

func (p *CommentActionResponse) Read(iprot thrift.TProtocol) (err error)

func (*CommentActionResponse) ReadField1

func (p *CommentActionResponse) ReadField1(iprot thrift.TProtocol) error

func (*CommentActionResponse) SetComment

func (p *CommentActionResponse) SetComment(val *rpcmodel.Comment)

func (*CommentActionResponse) String

func (p *CommentActionResponse) String() string

func (*CommentActionResponse) Write

func (p *CommentActionResponse) Write(oprot thrift.TProtocol) (err error)

type CommentListRequest

type CommentListRequest struct {
	VideoId    int64 `thrift:"VideoId,1,required" frugal:"1,required,i64" json:"VideoId"`
	UserViewId int64 `thrift:"UserViewId,2,required" frugal:"2,required,i64" json:"UserViewId"`
}
var CommentServiceCommentListArgs_Req_DEFAULT *CommentListRequest

func NewCommentListRequest

func NewCommentListRequest() *CommentListRequest

func (*CommentListRequest) BLength

func (p *CommentListRequest) BLength() int

func (*CommentListRequest) DeepEqual

func (p *CommentListRequest) DeepEqual(ano *CommentListRequest) bool

func (*CommentListRequest) FastRead

func (p *CommentListRequest) FastRead(buf []byte) (int, error)

func (*CommentListRequest) FastReadField1

func (p *CommentListRequest) FastReadField1(buf []byte) (int, error)

func (*CommentListRequest) FastReadField2 added in v0.0.2

func (p *CommentListRequest) FastReadField2(buf []byte) (int, error)

func (*CommentListRequest) FastWrite

func (p *CommentListRequest) FastWrite(buf []byte) int

for compatibility

func (*CommentListRequest) FastWriteNocopy

func (p *CommentListRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*CommentListRequest) Field1DeepEqual

func (p *CommentListRequest) Field1DeepEqual(src int64) bool

func (*CommentListRequest) Field2DeepEqual added in v0.0.2

func (p *CommentListRequest) Field2DeepEqual(src int64) bool

func (*CommentListRequest) GetUserViewId added in v0.0.2

func (p *CommentListRequest) GetUserViewId() (v int64)

func (*CommentListRequest) GetVideoId

func (p *CommentListRequest) GetVideoId() (v int64)

func (*CommentListRequest) InitDefault

func (p *CommentListRequest) InitDefault()

func (*CommentListRequest) Read

func (p *CommentListRequest) Read(iprot thrift.TProtocol) (err error)

func (*CommentListRequest) ReadField1

func (p *CommentListRequest) ReadField1(iprot thrift.TProtocol) error

func (*CommentListRequest) ReadField2 added in v0.0.2

func (p *CommentListRequest) ReadField2(iprot thrift.TProtocol) error

func (*CommentListRequest) SetUserViewId added in v0.0.2

func (p *CommentListRequest) SetUserViewId(val int64)

func (*CommentListRequest) SetVideoId

func (p *CommentListRequest) SetVideoId(val int64)

func (*CommentListRequest) String

func (p *CommentListRequest) String() string

func (*CommentListRequest) Write

func (p *CommentListRequest) Write(oprot thrift.TProtocol) (err error)

type CommentListResponse

type CommentListResponse struct {
	CommentList []*rpcmodel.Comment `thrift:"CommentList,1,required" frugal:"1,required,list<rpcmodel.Comment>" json:"CommentList"`
}
var CommentServiceCommentListResult_Success_DEFAULT *CommentListResponse

func NewCommentListResponse

func NewCommentListResponse() *CommentListResponse

func (*CommentListResponse) BLength

func (p *CommentListResponse) BLength() int

func (*CommentListResponse) DeepEqual

func (p *CommentListResponse) DeepEqual(ano *CommentListResponse) bool

func (*CommentListResponse) FastRead

func (p *CommentListResponse) FastRead(buf []byte) (int, error)

func (*CommentListResponse) FastReadField1

func (p *CommentListResponse) FastReadField1(buf []byte) (int, error)

func (*CommentListResponse) FastWrite

func (p *CommentListResponse) FastWrite(buf []byte) int

for compatibility

func (*CommentListResponse) FastWriteNocopy

func (p *CommentListResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*CommentListResponse) Field1DeepEqual

func (p *CommentListResponse) Field1DeepEqual(src []*rpcmodel.Comment) bool

func (*CommentListResponse) GetCommentList

func (p *CommentListResponse) GetCommentList() (v []*rpcmodel.Comment)

func (*CommentListResponse) InitDefault

func (p *CommentListResponse) InitDefault()

func (*CommentListResponse) Read

func (p *CommentListResponse) Read(iprot thrift.TProtocol) (err error)

func (*CommentListResponse) ReadField1

func (p *CommentListResponse) ReadField1(iprot thrift.TProtocol) error

func (*CommentListResponse) SetCommentList

func (p *CommentListResponse) SetCommentList(val []*rpcmodel.Comment)

func (*CommentListResponse) String

func (p *CommentListResponse) String() string

func (*CommentListResponse) Write

func (p *CommentListResponse) Write(oprot thrift.TProtocol) (err error)

type CommentService

type CommentService interface {
	CommentAction(ctx context.Context, req *CommentActionRequest) (r *CommentActionResponse, err error)

	CommentList(ctx context.Context, req *CommentListRequest) (r *CommentListResponse, err error)
}

type CommentServiceClient

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

func NewCommentServiceClient

func NewCommentServiceClient(c thrift.TClient) *CommentServiceClient

func NewCommentServiceClientProtocol

func NewCommentServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *CommentServiceClient

func (*CommentServiceClient) Client_

func (p *CommentServiceClient) Client_() thrift.TClient

func (*CommentServiceClient) CommentAction

func (*CommentServiceClient) CommentList

type CommentServiceCommentActionArgs

type CommentServiceCommentActionArgs struct {
	Req *CommentActionRequest `thrift:"req,1" frugal:"1,default,CommentActionRequest" json:"req"`
}

func NewCommentServiceCommentActionArgs

func NewCommentServiceCommentActionArgs() *CommentServiceCommentActionArgs

func (*CommentServiceCommentActionArgs) BLength

func (p *CommentServiceCommentActionArgs) BLength() int

func (*CommentServiceCommentActionArgs) DeepEqual

func (*CommentServiceCommentActionArgs) FastRead

func (p *CommentServiceCommentActionArgs) FastRead(buf []byte) (int, error)

func (*CommentServiceCommentActionArgs) FastReadField1

func (p *CommentServiceCommentActionArgs) FastReadField1(buf []byte) (int, error)

func (*CommentServiceCommentActionArgs) FastWrite

func (p *CommentServiceCommentActionArgs) FastWrite(buf []byte) int

for compatibility

func (*CommentServiceCommentActionArgs) FastWriteNocopy

func (p *CommentServiceCommentActionArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*CommentServiceCommentActionArgs) Field1DeepEqual

func (*CommentServiceCommentActionArgs) GetFirstArgument

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

func (*CommentServiceCommentActionArgs) GetReq

func (*CommentServiceCommentActionArgs) InitDefault

func (p *CommentServiceCommentActionArgs) InitDefault()

func (*CommentServiceCommentActionArgs) IsSetReq

func (p *CommentServiceCommentActionArgs) IsSetReq() bool

func (*CommentServiceCommentActionArgs) Read

func (*CommentServiceCommentActionArgs) ReadField1

func (*CommentServiceCommentActionArgs) SetReq

func (*CommentServiceCommentActionArgs) String

func (*CommentServiceCommentActionArgs) Write

func (p *CommentServiceCommentActionArgs) Write(oprot thrift.TProtocol) (err error)

type CommentServiceCommentActionResult

type CommentServiceCommentActionResult struct {
	Success *CommentActionResponse `thrift:"success,0,optional" frugal:"0,optional,CommentActionResponse" json:"success,omitempty"`
}

func NewCommentServiceCommentActionResult

func NewCommentServiceCommentActionResult() *CommentServiceCommentActionResult

func (*CommentServiceCommentActionResult) BLength

func (*CommentServiceCommentActionResult) DeepEqual

func (*CommentServiceCommentActionResult) FastRead

func (p *CommentServiceCommentActionResult) FastRead(buf []byte) (int, error)

func (*CommentServiceCommentActionResult) FastReadField0

func (p *CommentServiceCommentActionResult) FastReadField0(buf []byte) (int, error)

func (*CommentServiceCommentActionResult) FastWrite

func (p *CommentServiceCommentActionResult) FastWrite(buf []byte) int

for compatibility

func (*CommentServiceCommentActionResult) FastWriteNocopy

func (p *CommentServiceCommentActionResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*CommentServiceCommentActionResult) Field0DeepEqual

func (*CommentServiceCommentActionResult) GetResult

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

func (*CommentServiceCommentActionResult) GetSuccess

func (*CommentServiceCommentActionResult) InitDefault

func (p *CommentServiceCommentActionResult) InitDefault()

func (*CommentServiceCommentActionResult) IsSetSuccess

func (p *CommentServiceCommentActionResult) IsSetSuccess() bool

func (*CommentServiceCommentActionResult) Read

func (*CommentServiceCommentActionResult) ReadField0

func (*CommentServiceCommentActionResult) SetSuccess

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

func (*CommentServiceCommentActionResult) String

func (*CommentServiceCommentActionResult) Write

type CommentServiceCommentListArgs

type CommentServiceCommentListArgs struct {
	Req *CommentListRequest `thrift:"req,1" frugal:"1,default,CommentListRequest" json:"req"`
}

func NewCommentServiceCommentListArgs

func NewCommentServiceCommentListArgs() *CommentServiceCommentListArgs

func (*CommentServiceCommentListArgs) BLength

func (p *CommentServiceCommentListArgs) BLength() int

func (*CommentServiceCommentListArgs) DeepEqual

func (*CommentServiceCommentListArgs) FastRead

func (p *CommentServiceCommentListArgs) FastRead(buf []byte) (int, error)

func (*CommentServiceCommentListArgs) FastReadField1

func (p *CommentServiceCommentListArgs) FastReadField1(buf []byte) (int, error)

func (*CommentServiceCommentListArgs) FastWrite

func (p *CommentServiceCommentListArgs) FastWrite(buf []byte) int

for compatibility

func (*CommentServiceCommentListArgs) FastWriteNocopy

func (p *CommentServiceCommentListArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*CommentServiceCommentListArgs) Field1DeepEqual

func (p *CommentServiceCommentListArgs) Field1DeepEqual(src *CommentListRequest) bool

func (*CommentServiceCommentListArgs) GetFirstArgument

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

func (*CommentServiceCommentListArgs) GetReq

func (*CommentServiceCommentListArgs) InitDefault

func (p *CommentServiceCommentListArgs) InitDefault()

func (*CommentServiceCommentListArgs) IsSetReq

func (p *CommentServiceCommentListArgs) IsSetReq() bool

func (*CommentServiceCommentListArgs) Read

func (p *CommentServiceCommentListArgs) Read(iprot thrift.TProtocol) (err error)

func (*CommentServiceCommentListArgs) ReadField1

func (p *CommentServiceCommentListArgs) ReadField1(iprot thrift.TProtocol) error

func (*CommentServiceCommentListArgs) SetReq

func (*CommentServiceCommentListArgs) String

func (*CommentServiceCommentListArgs) Write

func (p *CommentServiceCommentListArgs) Write(oprot thrift.TProtocol) (err error)

type CommentServiceCommentListResult

type CommentServiceCommentListResult struct {
	Success *CommentListResponse `thrift:"success,0,optional" frugal:"0,optional,CommentListResponse" json:"success,omitempty"`
}

func NewCommentServiceCommentListResult

func NewCommentServiceCommentListResult() *CommentServiceCommentListResult

func (*CommentServiceCommentListResult) BLength

func (p *CommentServiceCommentListResult) BLength() int

func (*CommentServiceCommentListResult) DeepEqual

func (*CommentServiceCommentListResult) FastRead

func (p *CommentServiceCommentListResult) FastRead(buf []byte) (int, error)

func (*CommentServiceCommentListResult) FastReadField0

func (p *CommentServiceCommentListResult) FastReadField0(buf []byte) (int, error)

func (*CommentServiceCommentListResult) FastWrite

func (p *CommentServiceCommentListResult) FastWrite(buf []byte) int

for compatibility

func (*CommentServiceCommentListResult) FastWriteNocopy

func (p *CommentServiceCommentListResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*CommentServiceCommentListResult) Field0DeepEqual

func (p *CommentServiceCommentListResult) Field0DeepEqual(src *CommentListResponse) bool

func (*CommentServiceCommentListResult) GetResult

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

func (*CommentServiceCommentListResult) GetSuccess

func (*CommentServiceCommentListResult) InitDefault

func (p *CommentServiceCommentListResult) InitDefault()

func (*CommentServiceCommentListResult) IsSetSuccess

func (p *CommentServiceCommentListResult) IsSetSuccess() bool

func (*CommentServiceCommentListResult) Read

func (*CommentServiceCommentListResult) ReadField0

func (*CommentServiceCommentListResult) SetSuccess

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

func (*CommentServiceCommentListResult) String

func (*CommentServiceCommentListResult) Write

func (p *CommentServiceCommentListResult) Write(oprot thrift.TProtocol) (err error)

type CommentServiceProcessor

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

func NewCommentServiceProcessor

func NewCommentServiceProcessor(handler CommentService) *CommentServiceProcessor

func (*CommentServiceProcessor) AddToProcessorMap

func (p *CommentServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*CommentServiceProcessor) GetProcessorFunction

func (p *CommentServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*CommentServiceProcessor) Process

func (p *CommentServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*CommentServiceProcessor) ProcessorMap

Directories

Path Synopsis
Code generated by Kitex v0.4.4.
Code generated by Kitex v0.4.4.

Jump to

Keyboard shortcuts

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