publish

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 KitexUnusedProtection = struct{}{}

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

Functions

This section is empty.

Types

type PublishListRequest

type PublishListRequest struct {
	UserId     int64 `thrift:"UserId,1,required" frugal:"1,required,i64" json:"UserId"`
	UserViewId int64 `thrift:"UserViewId,2,required" frugal:"2,required,i64" json:"UserViewId"`
}
var PublishServicePublishListArgs_Req_DEFAULT *PublishListRequest

func NewPublishListRequest

func NewPublishListRequest() *PublishListRequest

func (*PublishListRequest) BLength

func (p *PublishListRequest) BLength() int

func (*PublishListRequest) DeepEqual

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

func (*PublishListRequest) FastRead

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

func (*PublishListRequest) FastReadField1

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

func (*PublishListRequest) FastReadField2 added in v0.0.2

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

func (*PublishListRequest) FastWrite

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

for compatibility

func (*PublishListRequest) FastWriteNocopy

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

func (*PublishListRequest) Field1DeepEqual

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

func (*PublishListRequest) Field2DeepEqual added in v0.0.2

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

func (*PublishListRequest) GetUserId

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

func (*PublishListRequest) GetUserViewId added in v0.0.2

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

func (*PublishListRequest) InitDefault

func (p *PublishListRequest) InitDefault()

func (*PublishListRequest) Read

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

func (*PublishListRequest) ReadField1

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

func (*PublishListRequest) ReadField2 added in v0.0.2

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

func (*PublishListRequest) SetUserId

func (p *PublishListRequest) SetUserId(val int64)

func (*PublishListRequest) SetUserViewId added in v0.0.2

func (p *PublishListRequest) SetUserViewId(val int64)

func (*PublishListRequest) String

func (p *PublishListRequest) String() string

func (*PublishListRequest) Write

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

type PublishListResponse

type PublishListResponse struct {
	VideoList []*rpcmodel.Video `thrift:"VideoList,1,required" frugal:"1,required,list<rpcmodel.Video>" json:"VideoList"`
}
var PublishServicePublishListResult_Success_DEFAULT *PublishListResponse

func NewPublishListResponse

func NewPublishListResponse() *PublishListResponse

func (*PublishListResponse) BLength

func (p *PublishListResponse) BLength() int

func (*PublishListResponse) DeepEqual

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

func (*PublishListResponse) FastRead

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

func (*PublishListResponse) FastReadField1

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

func (*PublishListResponse) FastWrite

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

for compatibility

func (*PublishListResponse) FastWriteNocopy

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

func (*PublishListResponse) Field1DeepEqual

func (p *PublishListResponse) Field1DeepEqual(src []*rpcmodel.Video) bool

func (*PublishListResponse) GetVideoList

func (p *PublishListResponse) GetVideoList() (v []*rpcmodel.Video)

func (*PublishListResponse) InitDefault

func (p *PublishListResponse) InitDefault()

func (*PublishListResponse) Read

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

func (*PublishListResponse) ReadField1

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

func (*PublishListResponse) SetVideoList

func (p *PublishListResponse) SetVideoList(val []*rpcmodel.Video)

func (*PublishListResponse) String

func (p *PublishListResponse) String() string

func (*PublishListResponse) Write

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

type PublishRequest

type PublishRequest struct {
	UserId int64  `thrift:"UserId,1,required" frugal:"1,required,i64" json:"UserId"`
	Title  string `thrift:"Title,2,required" frugal:"2,required,string" json:"Title"`
	Data   []byte `thrift:"Data,3,required" frugal:"3,required,binary" json:"Data"`
}
var PublishServicePublishVideoArgs_Req_DEFAULT *PublishRequest

func NewPublishRequest

func NewPublishRequest() *PublishRequest

func (*PublishRequest) BLength

func (p *PublishRequest) BLength() int

func (*PublishRequest) DeepEqual

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

func (*PublishRequest) FastRead

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

func (*PublishRequest) FastReadField1

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

func (*PublishRequest) FastReadField2

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

func (*PublishRequest) FastReadField3

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

func (*PublishRequest) FastWrite

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

for compatibility

func (*PublishRequest) FastWriteNocopy

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

func (*PublishRequest) Field1DeepEqual

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

func (*PublishRequest) Field2DeepEqual

func (p *PublishRequest) Field2DeepEqual(src string) bool

func (*PublishRequest) Field3DeepEqual

func (p *PublishRequest) Field3DeepEqual(src []byte) bool

func (*PublishRequest) GetData

func (p *PublishRequest) GetData() (v []byte)

func (*PublishRequest) GetTitle

func (p *PublishRequest) GetTitle() (v string)

func (*PublishRequest) GetUserId

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

func (*PublishRequest) InitDefault

func (p *PublishRequest) InitDefault()

func (*PublishRequest) Read

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

func (*PublishRequest) ReadField1

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

func (*PublishRequest) ReadField2

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

func (*PublishRequest) ReadField3

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

func (*PublishRequest) SetData

func (p *PublishRequest) SetData(val []byte)

func (*PublishRequest) SetTitle

func (p *PublishRequest) SetTitle(val string)

func (*PublishRequest) SetUserId

func (p *PublishRequest) SetUserId(val int64)

func (*PublishRequest) String

func (p *PublishRequest) String() string

func (*PublishRequest) Write

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

type PublishResponse

type PublishResponse struct {
}
var PublishServicePublishVideoResult_Success_DEFAULT *PublishResponse

func NewPublishResponse

func NewPublishResponse() *PublishResponse

func (*PublishResponse) BLength

func (p *PublishResponse) BLength() int

func (*PublishResponse) DeepEqual

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

func (*PublishResponse) FastRead

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

func (*PublishResponse) FastWrite

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

for compatibility

func (*PublishResponse) FastWriteNocopy

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

func (*PublishResponse) InitDefault

func (p *PublishResponse) InitDefault()

func (*PublishResponse) Read

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

func (*PublishResponse) String

func (p *PublishResponse) String() string

func (*PublishResponse) Write

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

type PublishService

type PublishService interface {
	PublishVideo(ctx context.Context, req *PublishRequest) (r *PublishResponse, err error)

	PublishList(ctx context.Context, req *PublishListRequest) (r *PublishListResponse, err error)
}

type PublishServiceClient

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

func NewPublishServiceClient

func NewPublishServiceClient(c thrift.TClient) *PublishServiceClient

func NewPublishServiceClientProtocol

func NewPublishServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *PublishServiceClient

func (*PublishServiceClient) Client_

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

func (*PublishServiceClient) PublishList

func (*PublishServiceClient) PublishVideo

func (p *PublishServiceClient) PublishVideo(ctx context.Context, req *PublishRequest) (r *PublishResponse, err error)

type PublishServiceProcessor

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

func NewPublishServiceProcessor

func NewPublishServiceProcessor(handler PublishService) *PublishServiceProcessor

func (*PublishServiceProcessor) AddToProcessorMap

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

func (*PublishServiceProcessor) GetProcessorFunction

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

func (*PublishServiceProcessor) Process

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

func (*PublishServiceProcessor) ProcessorMap

type PublishServicePublishListArgs

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

func NewPublishServicePublishListArgs

func NewPublishServicePublishListArgs() *PublishServicePublishListArgs

func (*PublishServicePublishListArgs) BLength

func (p *PublishServicePublishListArgs) BLength() int

func (*PublishServicePublishListArgs) DeepEqual

func (*PublishServicePublishListArgs) FastRead

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

func (*PublishServicePublishListArgs) FastReadField1

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

func (*PublishServicePublishListArgs) FastWrite

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

for compatibility

func (*PublishServicePublishListArgs) FastWriteNocopy

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

func (*PublishServicePublishListArgs) Field1DeepEqual

func (p *PublishServicePublishListArgs) Field1DeepEqual(src *PublishListRequest) bool

func (*PublishServicePublishListArgs) GetFirstArgument

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

func (*PublishServicePublishListArgs) GetReq

func (*PublishServicePublishListArgs) InitDefault

func (p *PublishServicePublishListArgs) InitDefault()

func (*PublishServicePublishListArgs) IsSetReq

func (p *PublishServicePublishListArgs) IsSetReq() bool

func (*PublishServicePublishListArgs) Read

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

func (*PublishServicePublishListArgs) ReadField1

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

func (*PublishServicePublishListArgs) SetReq

func (*PublishServicePublishListArgs) String

func (*PublishServicePublishListArgs) Write

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

type PublishServicePublishListResult

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

func NewPublishServicePublishListResult

func NewPublishServicePublishListResult() *PublishServicePublishListResult

func (*PublishServicePublishListResult) BLength

func (p *PublishServicePublishListResult) BLength() int

func (*PublishServicePublishListResult) DeepEqual

func (*PublishServicePublishListResult) FastRead

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

func (*PublishServicePublishListResult) FastReadField0

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

func (*PublishServicePublishListResult) FastWrite

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

for compatibility

func (*PublishServicePublishListResult) FastWriteNocopy

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

func (*PublishServicePublishListResult) Field0DeepEqual

func (p *PublishServicePublishListResult) Field0DeepEqual(src *PublishListResponse) bool

func (*PublishServicePublishListResult) GetResult

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

func (*PublishServicePublishListResult) GetSuccess

func (*PublishServicePublishListResult) InitDefault

func (p *PublishServicePublishListResult) InitDefault()

func (*PublishServicePublishListResult) IsSetSuccess

func (p *PublishServicePublishListResult) IsSetSuccess() bool

func (*PublishServicePublishListResult) Read

func (*PublishServicePublishListResult) ReadField0

func (*PublishServicePublishListResult) SetSuccess

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

func (*PublishServicePublishListResult) String

func (*PublishServicePublishListResult) Write

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

type PublishServicePublishVideoArgs

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

func NewPublishServicePublishVideoArgs

func NewPublishServicePublishVideoArgs() *PublishServicePublishVideoArgs

func (*PublishServicePublishVideoArgs) BLength

func (p *PublishServicePublishVideoArgs) BLength() int

func (*PublishServicePublishVideoArgs) DeepEqual

func (*PublishServicePublishVideoArgs) FastRead

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

func (*PublishServicePublishVideoArgs) FastReadField1

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

func (*PublishServicePublishVideoArgs) FastWrite

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

for compatibility

func (*PublishServicePublishVideoArgs) FastWriteNocopy

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

func (*PublishServicePublishVideoArgs) Field1DeepEqual

func (p *PublishServicePublishVideoArgs) Field1DeepEqual(src *PublishRequest) bool

func (*PublishServicePublishVideoArgs) GetFirstArgument

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

func (*PublishServicePublishVideoArgs) GetReq

func (*PublishServicePublishVideoArgs) InitDefault

func (p *PublishServicePublishVideoArgs) InitDefault()

func (*PublishServicePublishVideoArgs) IsSetReq

func (p *PublishServicePublishVideoArgs) IsSetReq() bool

func (*PublishServicePublishVideoArgs) Read

func (*PublishServicePublishVideoArgs) ReadField1

func (*PublishServicePublishVideoArgs) SetReq

func (*PublishServicePublishVideoArgs) String

func (*PublishServicePublishVideoArgs) Write

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

type PublishServicePublishVideoResult

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

func NewPublishServicePublishVideoResult

func NewPublishServicePublishVideoResult() *PublishServicePublishVideoResult

func (*PublishServicePublishVideoResult) BLength

func (*PublishServicePublishVideoResult) DeepEqual

func (*PublishServicePublishVideoResult) FastRead

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

func (*PublishServicePublishVideoResult) FastReadField0

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

func (*PublishServicePublishVideoResult) FastWrite

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

for compatibility

func (*PublishServicePublishVideoResult) FastWriteNocopy

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

func (*PublishServicePublishVideoResult) Field0DeepEqual

func (p *PublishServicePublishVideoResult) Field0DeepEqual(src *PublishResponse) bool

func (*PublishServicePublishVideoResult) GetResult

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

func (*PublishServicePublishVideoResult) GetSuccess

func (*PublishServicePublishVideoResult) InitDefault

func (p *PublishServicePublishVideoResult) InitDefault()

func (*PublishServicePublishVideoResult) IsSetSuccess

func (p *PublishServicePublishVideoResult) IsSetSuccess() bool

func (*PublishServicePublishVideoResult) Read

func (*PublishServicePublishVideoResult) ReadField0

func (*PublishServicePublishVideoResult) SetSuccess

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

func (*PublishServicePublishVideoResult) String

func (*PublishServicePublishVideoResult) Write

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