handler

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(
	svc example.Service,
	tracerProvider trace.TracerProvider,
	meterProvider metric.MeterProvider,
) (*Handler, error)

func (*Handler) CreateTask added in v0.2.0

func (h *Handler) CreateTask(ctx context.Context, req *oas.CreateTaskRequest) (*oas.Task, error)

func (*Handler) DeleteTask added in v0.2.0

func (h *Handler) DeleteTask(ctx context.Context, params oas.DeleteTaskParams) (oas.DeleteTaskRes, error)

func (*Handler) GenerateError added in v0.2.0

func (h *Handler) GenerateError(ctx context.Context) (*oas.Error, error)

func (*Handler) GetHealth

func (h *Handler) GetHealth(ctx context.Context) (*oas.Health, error)

func (*Handler) ListTasks added in v0.2.0

func (h *Handler) ListTasks(ctx context.Context) (*oas.TaskList, error)

func (*Handler) NewError

func (h *Handler) NewError(ctx context.Context, err error) *oas.ErrorStatusCode

Jump to

Keyboard shortcuts

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