command

package
v0.0.0-...-0ba6107 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2017 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Interactor
}

Handler holds possible Commands (from CQRS) for users.

func (*Handler) Activate

func (ch *Handler) Activate(w http.ResponseWriter, req *http.Request) error

Activate a user

func (*Handler) ChangePassword

func (ch *Handler) ChangePassword(w http.ResponseWriter, req *http.Request) error

ChangePassword of the user

func (*Handler) DeleteAccount

func (ch *Handler) DeleteAccount(w http.ResponseWriter, req *http.Request) error

DeleteAccount deletes the User object for the user

func (*Handler) Register

func (ch *Handler) Register(w http.ResponseWriter, req *http.Request) error

Register a new user by json

func (*Handler) SetUpPayPal

func (ch *Handler) SetUpPayPal(w http.ResponseWriter, req *http.Request) error

SetUpPayPal for this user

type Interactor

Interactor describes the group of methods needed for this command handler.

Jump to

Keyboard shortcuts

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