dataservice

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: 1

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var InsertArgs_Req_DEFAULT *data.InsertReq
View Source
var InsertResult_Success_DEFAULT *data.InsertResp

Functions

func NewServer

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

Types

type Client

type Client interface {
	Insert(ctx context.Context, Req *data.InsertReq, callOptions ...callopt.Option) (r *data.InsertResp, 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 InsertArgs

type InsertArgs struct {
	Req *data.InsertReq
}

func (*InsertArgs) FastRead

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

func (*InsertArgs) FastWrite

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

func (*InsertArgs) GetFirstArgument

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

func (*InsertArgs) GetReq

func (p *InsertArgs) GetReq() *data.InsertReq

func (*InsertArgs) IsSetReq

func (p *InsertArgs) IsSetReq() bool

func (*InsertArgs) Marshal

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

func (*InsertArgs) Size

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

func (*InsertArgs) Unmarshal

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

type InsertResult

type InsertResult struct {
	Success *data.InsertResp
}

func (*InsertResult) FastRead

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

func (*InsertResult) FastWrite

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

func (*InsertResult) GetResult

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

func (*InsertResult) GetSuccess

func (p *InsertResult) GetSuccess() *data.InsertResp

func (*InsertResult) IsSetSuccess

func (p *InsertResult) IsSetSuccess() bool

func (*InsertResult) Marshal

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

func (*InsertResult) SetSuccess

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

func (*InsertResult) Size

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

func (*InsertResult) Unmarshal

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

Jump to

Keyboard shortcuts

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