tripservice

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInvoker

func NewInvoker(handler trip.TripService, opts ...server.Option) server.Invoker

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

func NewServer

func NewServer(handler trip.TripService, 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 {
	CreateTrip(ctx context.Context, req *trip.CreateTripRequest, callOptions ...callopt.Option) (r *trip.CreateTripResponse, err error)
	GetTrip(ctx context.Context, req *trip.GetTripRequest, callOptions ...callopt.Option) (r *trip.GetTripResponse, err error)
	GetTrips(ctx context.Context, req *trip.GetTripsRequest, callOptions ...callopt.Option) (r *trip.GetTripsResponse, err error)
	UpdateTrip(ctx context.Context, req *trip.UpdateTripRequest, callOptions ...callopt.Option) (r *trip.UpdateTripResponse, err error)
	GetAllTrips(ctx context.Context, req *trip.GetAllTripsRequest, callOptions ...callopt.Option) (r *trip.GetAllTripsResponse, err error)
	GetSomeTrips(ctx context.Context, req *trip.GetSomeTripsRequest, callOptions ...callopt.Option) (r *trip.GetSomeTripsResponse, err error)
	DeleteTrip(ctx context.Context, req *trip.DeleteTripRequest, callOptions ...callopt.Option) (r *trip.DeleteTripResponse, 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.

Jump to

Keyboard shortcuts

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