handler

package
v0.0.0-...-90949e5 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT 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(api api.API, accessTokenTTL, refreshTokenTTL time.Duration, l zerolog.Logger) *Handler

func (*Handler) Authenticate

func (h *Handler) Authenticate(
	ctx context.Context,
	req *connect.Request[v1.AuthenticateRequest],
) (*connect.Response[v1.AuthenticateResponse], error)

func (*Handler) CreateEntity

func (h *Handler) CreateEntity(
	ctx context.Context,
	req *connect.Request[v1.CreateEntityRequest],
) (*connect.Response[v1.CreateEntityResponse], error)

func (*Handler) GetEntity

func (h *Handler) GetEntity(
	ctx context.Context,
	_ *connect.Request[v1.GetEntityRequest],
) (*connect.Response[v1.GetEntityResponse], error)

func (*Handler) RefreshToken

func (h *Handler) RefreshToken(
	ctx context.Context,
	req *connect.Request[v1.RefreshTokenRequest],
) (*connect.Response[v1.RefreshTokenResponse], error)

func (*Handler) UpdateEntity

func (h *Handler) UpdateEntity(
	ctx context.Context,
	req *connect.Request[v1.UpdateEntityRequest],
) (*connect.Response[v1.UpdateEntityResponse], error)

Jump to

Keyboard shortcuts

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