facade

package
v0.0.0-...-4d51556 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var CheckArgs_Req_DEFAULT *facade.HealthCheckRequest
View Source
var CheckResult_Success_DEFAULT *facade.HealthCheckResponse
View Source
var GetCommentsArgs_Req_DEFAULT *facade.GetCommentsRequest
View Source
var GetCommentsResult_Success_DEFAULT *facade.GetCommentsResponse
View Source
var GetPostArgs_Req_DEFAULT *facade.GetPostRequest
View Source
var GetPostResult_Success_DEFAULT *facade.GetPostResponse
View Source
var SaveCommentArgs_Req_DEFAULT *facade.SaveCommentRequest
View Source
var SaveCommentResult_Success_DEFAULT *facade.SaveCommentResponse
View Source
var SavePostArgs_Req_DEFAULT *facade.SavePostRequest
View Source
var SavePostResult_Success_DEFAULT *facade.SavePostResponse
View Source
var WatchArgs_Req_DEFAULT *facade.HealthCheckRequest
View Source
var WatchResult_Success_DEFAULT *facade.HealthCheckResponse

Functions

func NewInvoker

func NewInvoker(handler facade.Facade, opts ...server.Option) server.Invoker

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

func NewServer

func NewServer(handler facade.Facade, opts ...server.Option) server.Server

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

Types

type CheckArgs

type CheckArgs struct {
	Req *facade.HealthCheckRequest
}

func (*CheckArgs) GetReq

func (p *CheckArgs) GetReq() *facade.HealthCheckRequest

func (*CheckArgs) IsSetReq

func (p *CheckArgs) IsSetReq() bool

func (*CheckArgs) Marshal

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

func (*CheckArgs) Unmarshal

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

type CheckResult

type CheckResult struct {
	Success *facade.HealthCheckResponse
}

func (*CheckResult) GetSuccess

func (p *CheckResult) GetSuccess() *facade.HealthCheckResponse

func (*CheckResult) IsSetSuccess

func (p *CheckResult) IsSetSuccess() bool

func (*CheckResult) Marshal

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

func (*CheckResult) SetSuccess

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

func (*CheckResult) Unmarshal

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

type Client

type Client interface {
	GetPost(ctx context.Context, Req *facade.GetPostRequest, callOptions ...callopt.Option) (r *facade.GetPostResponse, err error)
	SavePost(ctx context.Context, Req *facade.SavePostRequest, callOptions ...callopt.Option) (r *facade.SavePostResponse, err error)
	GetComments(ctx context.Context, Req *facade.GetCommentsRequest, callOptions ...callopt.Option) (r *facade.GetCommentsResponse, err error)
	SaveComment(ctx context.Context, Req *facade.SaveCommentRequest, callOptions ...callopt.Option) (r *facade.SaveCommentResponse, err error)
	Check(ctx context.Context, Req *facade.HealthCheckRequest, callOptions ...callopt.Option) (r *facade.HealthCheckResponse, err error)
	Watch(ctx context.Context, Req *facade.HealthCheckRequest, callOptions ...callopt.Option) (stream Facade_WatchClient, 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 Facade_WatchClient

type Facade_WatchClient interface {
	streaming.Stream
	Recv() (*facade.HealthCheckResponse, error)
}

type GetCommentsArgs

type GetCommentsArgs struct {
	Req *facade.GetCommentsRequest
}

func (*GetCommentsArgs) GetReq

func (*GetCommentsArgs) IsSetReq

func (p *GetCommentsArgs) IsSetReq() bool

func (*GetCommentsArgs) Marshal

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

func (*GetCommentsArgs) Unmarshal

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

type GetCommentsResult

type GetCommentsResult struct {
	Success *facade.GetCommentsResponse
}

func (*GetCommentsResult) GetSuccess

func (p *GetCommentsResult) GetSuccess() *facade.GetCommentsResponse

func (*GetCommentsResult) IsSetSuccess

func (p *GetCommentsResult) IsSetSuccess() bool

func (*GetCommentsResult) Marshal

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

func (*GetCommentsResult) SetSuccess

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

func (*GetCommentsResult) Unmarshal

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

type GetPostArgs

type GetPostArgs struct {
	Req *facade.GetPostRequest
}

func (*GetPostArgs) GetReq

func (p *GetPostArgs) GetReq() *facade.GetPostRequest

func (*GetPostArgs) IsSetReq

func (p *GetPostArgs) IsSetReq() bool

func (*GetPostArgs) Marshal

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

func (*GetPostArgs) Unmarshal

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

type GetPostResult

type GetPostResult struct {
	Success *facade.GetPostResponse
}

func (*GetPostResult) GetSuccess

func (p *GetPostResult) GetSuccess() *facade.GetPostResponse

func (*GetPostResult) IsSetSuccess

func (p *GetPostResult) IsSetSuccess() bool

func (*GetPostResult) Marshal

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

func (*GetPostResult) SetSuccess

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

func (*GetPostResult) Unmarshal

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

type SaveCommentArgs

type SaveCommentArgs struct {
	Req *facade.SaveCommentRequest
}

func (*SaveCommentArgs) GetReq

func (*SaveCommentArgs) IsSetReq

func (p *SaveCommentArgs) IsSetReq() bool

func (*SaveCommentArgs) Marshal

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

func (*SaveCommentArgs) Unmarshal

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

type SaveCommentResult

type SaveCommentResult struct {
	Success *facade.SaveCommentResponse
}

func (*SaveCommentResult) GetSuccess

func (p *SaveCommentResult) GetSuccess() *facade.SaveCommentResponse

func (*SaveCommentResult) IsSetSuccess

func (p *SaveCommentResult) IsSetSuccess() bool

func (*SaveCommentResult) Marshal

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

func (*SaveCommentResult) SetSuccess

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

func (*SaveCommentResult) Unmarshal

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

type SavePostArgs

type SavePostArgs struct {
	Req *facade.SavePostRequest
}

func (*SavePostArgs) GetReq

func (p *SavePostArgs) GetReq() *facade.SavePostRequest

func (*SavePostArgs) IsSetReq

func (p *SavePostArgs) IsSetReq() bool

func (*SavePostArgs) Marshal

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

func (*SavePostArgs) Unmarshal

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

type SavePostResult

type SavePostResult struct {
	Success *facade.SavePostResponse
}

func (*SavePostResult) GetSuccess

func (p *SavePostResult) GetSuccess() *facade.SavePostResponse

func (*SavePostResult) IsSetSuccess

func (p *SavePostResult) IsSetSuccess() bool

func (*SavePostResult) Marshal

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

func (*SavePostResult) SetSuccess

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

func (*SavePostResult) Unmarshal

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

type WatchArgs

type WatchArgs struct {
	Req *facade.HealthCheckRequest
}

func (*WatchArgs) GetReq

func (p *WatchArgs) GetReq() *facade.HealthCheckRequest

func (*WatchArgs) IsSetReq

func (p *WatchArgs) IsSetReq() bool

func (*WatchArgs) Marshal

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

func (*WatchArgs) Unmarshal

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

type WatchResult

type WatchResult struct {
	Success *facade.HealthCheckResponse
}

func (*WatchResult) GetSuccess

func (p *WatchResult) GetSuccess() *facade.HealthCheckResponse

func (*WatchResult) IsSetSuccess

func (p *WatchResult) IsSetSuccess() bool

func (*WatchResult) Marshal

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

func (*WatchResult) SetSuccess

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

func (*WatchResult) Unmarshal

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

Jump to

Keyboard shortcuts

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