incentive

package
v0.0.0-...-1482656 Latest Latest
Warning

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

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

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var CheckInArgs_Req_DEFAULT *core_api.CheckInReq
View Source
var CheckInResult_Success_DEFAULT *core_api.CheckInResp
View Source
var GetMissionArgs_Req_DEFAULT *core_api.GetMissionReq
View Source
var GetMissionResult_Success_DEFAULT *core_api.GetMissionResp

Functions

func NewInvoker

func NewInvoker(handler core_api.Incentive, opts ...server.Option) server.Invoker

NewInvoker creates a server.Invoker with the given handler and options.

func NewServer

func NewServer(handler core_api.Incentive, 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.Incentive, opts ...server.RegisterOption) error

Types

type CheckInArgs

type CheckInArgs struct {
	Req *core_api.CheckInReq
}

func (*CheckInArgs) FastRead

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

func (*CheckInArgs) FastWrite

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

func (*CheckInArgs) GetFirstArgument

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

func (*CheckInArgs) GetReq

func (p *CheckInArgs) GetReq() *core_api.CheckInReq

func (*CheckInArgs) IsSetReq

func (p *CheckInArgs) IsSetReq() bool

func (*CheckInArgs) Marshal

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

func (*CheckInArgs) Size

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

func (*CheckInArgs) Unmarshal

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

type CheckInResult

type CheckInResult struct {
	Success *core_api.CheckInResp
}

func (*CheckInResult) FastRead

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

func (*CheckInResult) FastWrite

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

func (*CheckInResult) GetResult

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

func (*CheckInResult) GetSuccess

func (p *CheckInResult) GetSuccess() *core_api.CheckInResp

func (*CheckInResult) IsSetSuccess

func (p *CheckInResult) IsSetSuccess() bool

func (*CheckInResult) Marshal

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

func (*CheckInResult) SetSuccess

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

func (*CheckInResult) Size

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

func (*CheckInResult) Unmarshal

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

type Client

type Client interface {
	CheckIn(ctx context.Context, Req *core_api.CheckInReq, callOptions ...callopt.Option) (r *core_api.CheckInResp, err error)
	GetMission(ctx context.Context, Req *core_api.GetMissionReq, callOptions ...callopt.Option) (r *core_api.GetMissionResp, 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 GetMissionArgs

type GetMissionArgs struct {
	Req *core_api.GetMissionReq
}

func (*GetMissionArgs) FastRead

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

func (*GetMissionArgs) FastWrite

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

func (*GetMissionArgs) GetFirstArgument

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

func (*GetMissionArgs) GetReq

func (p *GetMissionArgs) GetReq() *core_api.GetMissionReq

func (*GetMissionArgs) IsSetReq

func (p *GetMissionArgs) IsSetReq() bool

func (*GetMissionArgs) Marshal

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

func (*GetMissionArgs) Size

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

func (*GetMissionArgs) Unmarshal

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

type GetMissionResult

type GetMissionResult struct {
	Success *core_api.GetMissionResp
}

func (*GetMissionResult) FastRead

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

func (*GetMissionResult) FastWrite

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

func (*GetMissionResult) GetResult

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

func (*GetMissionResult) GetSuccess

func (p *GetMissionResult) GetSuccess() *core_api.GetMissionResp

func (*GetMissionResult) IsSetSuccess

func (p *GetMissionResult) IsSetSuccess() bool

func (*GetMissionResult) Marshal

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

func (*GetMissionResult) SetSuccess

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

func (*GetMissionResult) Size

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

func (*GetMissionResult) Unmarshal

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

Jump to

Keyboard shortcuts

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