examplectl

package
v0.0.0-...-88c7610 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRoutes

func InitRoutes(router chi.Router, svc example.Example)

Types

type Controller

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

func (*Controller) GetExample

func (*Controller) GetExampleRequest

func (c *Controller) GetExampleRequest(r *http.Request, w http.ResponseWriter) (*RequestGetExample, error)

func (*Controller) GetExampleResponse

func (c *Controller) GetExampleResponse(ctx context.Context, res *apimodel.Example, w http.ResponseWriter) error

func (*Controller) SetExample

func (*Controller) SetExampleRequest

func (c *Controller) SetExampleRequest(r *http.Request, w http.ResponseWriter) (*RequestSetExample, error)

func (*Controller) SetExampleResponse

func (c *Controller) SetExampleResponse(ctx context.Context, res *ResponseEmpty, w http.ResponseWriter) error

type RequestGetExample

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

type RequestSetExample

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

type ResponseEmpty

type ResponseEmpty struct{}

Jump to

Keyboard shortcuts

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