presentation

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf added in v0.6.0

func Errorf(status int, format string, a ...interface{}) error

func FromError added in v0.6.0

func FromError(err error) (int, bool)

Types

type ApiController added in v0.4.0

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

func NewApiController added in v0.4.0

func NewApiController(s *service.PhotoService, d *service.DaemonService) ApiController

func (*ApiController) Serve added in v0.4.0

func (c *ApiController) Serve()

type EmailCustomClaims added in v0.4.0

type EmailCustomClaims struct {
	Email string `json:"email"`
}

EmailCustomClaims contains custom data we want from the token.

func (EmailCustomClaims) Validate added in v0.4.0

func (c EmailCustomClaims) Validate(_ context.Context) error

Validate does nothing for this example, but we need it to satisfy validator.CustomClaims interface.

type GrpcController added in v0.4.0

type GrpcController struct {
	daemonv1.UnimplementedDaemonServiceServer
	// contains filtered or unexported fields
}

func NewGrpcController added in v0.4.0

func NewGrpcController(s *service.DaemonService) GrpcController

func (*GrpcController) HeartBeat added in v0.4.0

func (*GrpcController) Register added in v0.4.0

func (*GrpcController) Serve added in v0.4.0

func (c *GrpcController) Serve()

type HttpStatusError added in v0.6.0

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

func (*HttpStatusError) Error added in v0.6.0

func (e *HttpStatusError) Error() string

func (*HttpStatusError) HTTPStatus added in v0.6.0

func (e *HttpStatusError) HTTPStatus() int

Jump to

Keyboard shortcuts

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