hello

package
v0.0.0-...-99f3a3f Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 9 Imported by: 2

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var SayArgs_Req_DEFAULT *pb.BenchmarkMessage
View Source
var SayResult_Success_DEFAULT *pb.BenchmarkMessage

Functions

func NewInvoker

func NewInvoker(handler pb.Hello, opts ...server.Option) server.Invoker

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

func NewServer

func NewServer(handler pb.Hello, opts ...server.Option) server.Server

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

Types

type Client

type Client interface {
	Say(ctx context.Context, Req *pb.BenchmarkMessage, callOptions ...callopt.Option) (r *pb.BenchmarkMessage, 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 SayArgs

type SayArgs struct {
	Req *pb.BenchmarkMessage
}

func (*SayArgs) GetReq

func (p *SayArgs) GetReq() *pb.BenchmarkMessage

func (*SayArgs) IsSetReq

func (p *SayArgs) IsSetReq() bool

func (*SayArgs) Marshal

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

func (*SayArgs) Unmarshal

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

type SayResult

type SayResult struct {
	Success *pb.BenchmarkMessage
}

func (*SayResult) GetSuccess

func (p *SayResult) GetSuccess() *pb.BenchmarkMessage

func (*SayResult) IsSetSuccess

func (p *SayResult) IsSetSuccess() bool

func (*SayResult) Marshal

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

func (*SayResult) SetSuccess

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

func (*SayResult) Unmarshal

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

Jump to

Keyboard shortcuts

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