emailservice

package
v0.0.0-...-978cf5a Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var SendArgs_Req_DEFAULT *email.EmailReq
View Source
var SendResult_Success_DEFAULT *email.EmailResp

Functions

func NewInvoker

func NewInvoker(handler email.EmailService, opts ...server.Option) server.Invoker

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

func NewServer

func NewServer(handler email.EmailService, opts ...server.Option) server.Server

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

func NewServiceInfo

func NewServiceInfo() *kitex.ServiceInfo

Types

type Client

type Client interface {
	Send(ctx context.Context, Req *email.EmailReq, callOptions ...callopt.Option) (r *email.EmailResp, 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 SendArgs

type SendArgs struct {
	Req *email.EmailReq
}

func (*SendArgs) FastRead

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

func (*SendArgs) FastWrite

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

func (*SendArgs) GetFirstArgument

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

func (*SendArgs) GetReq

func (p *SendArgs) GetReq() *email.EmailReq

func (*SendArgs) IsSetReq

func (p *SendArgs) IsSetReq() bool

func (*SendArgs) Marshal

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

func (*SendArgs) Size

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

func (*SendArgs) Unmarshal

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

type SendResult

type SendResult struct {
	Success *email.EmailResp
}

func (*SendResult) FastRead

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

func (*SendResult) FastWrite

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

func (*SendResult) GetResult

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

func (*SendResult) GetSuccess

func (p *SendResult) GetSuccess() *email.EmailResp

func (*SendResult) IsSetSuccess

func (p *SendResult) IsSetSuccess() bool

func (*SendResult) Marshal

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

func (*SendResult) SetSuccess

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

func (*SendResult) Size

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

func (*SendResult) Unmarshal

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

Jump to

Keyboard shortcuts

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