endpoint

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: MIT, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewEndpoints)

Functions

This section is empty.

Types

type CreateGreetingRequest

type CreateGreetingRequest struct {
}

type CreateGreetingResponse

type CreateGreetingResponse struct {
}

type DeleteGreetingRequest

type DeleteGreetingRequest struct {
	Id uint
}

type DeleteGreetingResponse

type DeleteGreetingResponse struct {
}

type Endpoints

type Endpoints struct {
	// contains filtered or unexported fields
}

func NewEndpoints

func NewEndpoints(
	greeting service.GreetingService,

) *Endpoints

func (*Endpoints) CreateGreetingEndpoint

func (e *Endpoints) CreateGreetingEndpoint(ctx context.Context, request *CreateGreetingRequest) (response *CreateGreetingResponse, err error)

func (*Endpoints) DeleteGreetingEndpoint

func (e *Endpoints) DeleteGreetingEndpoint(ctx context.Context, request *DeleteGreetingRequest) (response *DeleteGreetingResponse, err error)

func (*Endpoints) GetGreetingAllEndpoint

func (e *Endpoints) GetGreetingAllEndpoint(ctx context.Context, request *GetGreetingAllRequest) (response []*GetGreetingAllResponse, err error)

func (*Endpoints) GetGreetingDetailEndpoint

func (e *Endpoints) GetGreetingDetailEndpoint(ctx context.Context, request *GetGreetingDetailRequest) (response *GetGreetingDetailResponse, err error)

func (*Endpoints) GetGreetingListEndpoint

func (e *Endpoints) GetGreetingListEndpoint(ctx context.Context, request *GetGreetingListRequest) (response *GetGreetingListResponse, err error)

func (*Endpoints) UpdateGreetingEndpoint

func (e *Endpoints) UpdateGreetingEndpoint(ctx context.Context, request *UpdateGreetingRequest) (response *UpdateGreetingResponse, err error)

type GetGreetingAllRequest

type GetGreetingAllRequest struct {
}

type GetGreetingAllResponse

type GetGreetingAllResponse struct {
	Id uint
}

type GetGreetingDetailRequest

type GetGreetingDetailRequest struct {
	Id uint
}

type GetGreetingDetailResponse

type GetGreetingDetailResponse struct {
	Greeting *model.Greeting
}

type GetGreetingListRequest

type GetGreetingListRequest struct {
	PageIndex int
	PageSize  int
}

type GetGreetingListResponse

type GetGreetingListResponse struct {
	GreetingList []*model.Greeting
	Total        int64
}

type UpdateGreetingRequest

type UpdateGreetingRequest struct {
	Id uint
}

type UpdateGreetingResponse

type UpdateGreetingResponse struct {
}

Jump to

Keyboard shortcuts

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