user

package
v0.0.0-...-337a1ab Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application interface {
	GetUser(ctx context.Context, in *GetUserInput) (*GetUserOutput, error)
	UpdateUser(ctx context.Context, in *UpdateUserInput) (*UpdateUserOutput, error)
	DeleteUser(ctx context.Context, in *DeleteUserInput) (*DeleteUserOutput, error)
}

func NewApplication

func NewApplication(core *application.Core) Application

type DeleteUserInput

type DeleteUserInput struct {
	*application.AddressHexInput
}

func NewDeleteUserInput

func NewDeleteUserInput(addressHex string) *DeleteUserInput

type DeleteUserOutput

type DeleteUserOutput struct{}

func NewDeleteUserOutput

func NewDeleteUserOutput() *DeleteUserOutput

type GetUserInput

type GetUserInput struct {
	*application.AddressHexInput
}

func NewGetUserInput

func NewGetUserInput(addressHex string) *GetUserInput

type GetUserOutput

type GetUserOutput struct {
	Name       string `json:"name"`
	AddressHex string `json:"address"`
}

func NewGetUserOutput

func NewGetUserOutput(u *domain.User) *GetUserOutput

type UpdateUserInput

type UpdateUserInput struct {
	*application.AddressHexInput
	Name string
}

func NewUpdateUserInput

func NewUpdateUserInput(addressHex, name string) *UpdateUserInput

func (*UpdateUserInput) Validate

func (in *UpdateUserInput) Validate() error

type UpdateUserOutput

type UpdateUserOutput struct{}

func NewUpdateUserOutput

func NewUpdateUserOutput() *UpdateUserOutput

Jump to

Keyboard shortcuts

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