read

package
v4.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var QueryKey = messages.NewKey(&messages.KeyComponents{
	Service: "user",
	Version: "1",
	Type:    messages.Type.Query,
	Entity:  "user",
	Query:   "reading",
	Status:  messages.Status.Queued,
})
View Source
var ResponseKey = messages.NewKey(&messages.KeyComponents{
	Service:  "user",
	Version:  "1",
	Type:     messages.Type.Response,
	Entity:   "user",
	Response: "reading",
	Status:   messages.Status.Done,
})

Functions

This section is empty.

Types

type Case added in v4.8.0

type Case struct {
	repository.Repository
}

func (*Case) Run added in v4.8.0

func (c *Case) Run(id *user.ID) (*user.User, error)

type Handler

type Handler struct {
	cases.Read
}

func (*Handler) Handle

func (h *Handler) Handle(query *queries.Query) (*queries.Response, error)

type QueryAttributes added in v4.8.0

type QueryAttributes struct {
	ID string
}

func QueryRandomAttributes added in v4.8.0

func QueryRandomAttributes() *QueryAttributes

type QueryMeta added in v4.8.0

type QueryMeta struct{}

type ResponseAttributes added in v4.8.0

type ResponseAttributes struct {
	ID, Email, Username, Password string
	Verified                      bool
}

type ResponseMeta added in v4.8.0

type ResponseMeta struct{}

Jump to

Keyboard shortcuts

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