controller

package
v0.1.0-dev2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidRequest = errs.NewUserError(errors.New("invalid request"))

ErrInvalidRequest is returned when the request fails validation. This error should be mapped to codes.InvalidArgument at the gRPC layer.

Functions

func IsInvalidRequest

func IsInvalidRequest(err error) bool

IsInvalidRequest returns true if any error in the error chain is ErrInvalidRequest.

Types

type LandController

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

LandController handles land business logic for the gateway

func NewLandController

func NewLandController(logger *zap.SugaredLogger, scope tally.Scope, counter counter.Counter, requestLogStore storage.RequestLogStore, registry consumer.TopicRegistry) *LandController

NewLandController creates a new instance of the gateway land controller. The controller publishes land requests to the topic registered under consumer.TopicKeyStart in the registry.

func (*LandController) Land

Land handles the land request and returns a response

type PingController

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

PingController handles ping business logic for the gateway

func NewPingController

func NewPingController(logger *zap.Logger, scope tally.Scope) *PingController

NewPingController creates a new instance of the gateway ping controller

func (*PingController) Ping

Ping handles the ping request and returns a response

Jump to

Keyboard shortcuts

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