handlers

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

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiController

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

func NewApiController

func NewApiController(t Trace, s service.Service) *ApiController

func (*ApiController) DeleteItemTaken

func (ac *ApiController) DeleteItemTaken() operations.DeleteItemTakenHandler

func (*ApiController) DeleteList

func (ac *ApiController) DeleteList() operations.DeleteListHandler

func (*ApiController) DeleteListItems

func (ac *ApiController) DeleteListItems() operations.DeleteListItemsHandler

func (*ApiController) GetList

func (ac *ApiController) GetList() operations.GetListHandler

func (*ApiController) GetListItems

func (ac *ApiController) GetListItems() operations.GetListItemsHandler

func (*ApiController) GetListToken

func (ac *ApiController) GetListToken() operations.GetListTokenHandler

func (*ApiController) GetUser

func (ac *ApiController) GetUser() operations.GetUserHandler

func (*ApiController) GetUserLists

func (ac *ApiController) GetUserLists() operations.GetUserListsHandler

func (*ApiController) KeySecurityAuth

func (ac *ApiController) KeySecurityAuth() func(token string) (*apimodels.Principal, error)

func (*ApiController) Login

func (*ApiController) OAuthLogin

func (ac *ApiController) OAuthLogin() operations.OAuthLoginHandler

func (*ApiController) OAuthRegister

func (ac *ApiController) OAuthRegister() operations.OAuthRegisterHandler

func (*ApiController) PatchList

func (ac *ApiController) PatchList() operations.PatchListHandler

func (*ApiController) PatchUser

func (ac *ApiController) PatchUser() operations.PatchUserHandler

func (*ApiController) PostItemTaken

func (ac *ApiController) PostItemTaken() operations.PostItemTakenHandler

func (*ApiController) PostList

func (ac *ApiController) PostList() operations.PostListHandler

func (*ApiController) PostListItems

func (ac *ApiController) PostListItems() operations.PostListItemsHandler

func (*ApiController) Register

func (ac *ApiController) Register() operations.RegisterHandler

type OnDeleteItemTakenDoneInfo

type OnDeleteItemTakenDoneInfo struct {
	Error error
}

type OnDeleteItemTakenStartInfo

type OnDeleteItemTakenStartInfo struct {
	List   *models.List
	ItemID int64
	Client *models.User
	Token  *string
}

type OnDeleteListDoneInfo

type OnDeleteListDoneInfo struct {
	Error error
}

type OnDeleteListItemsDoneInfo

type OnDeleteListItemsDoneInfo struct {
	Error error
}

type OnDeleteListItemsStartInfo

type OnDeleteListItemsStartInfo struct {
	List    *models.List
	ItemIDs []int64
	Client  *models.User
}

type OnDeleteListStartInfo

type OnDeleteListStartInfo struct {
	List   *models.List
	Client *models.User
}

type OnGetListDoneInfo

type OnGetListDoneInfo struct {
	List  *models.List
	Error error
}

type OnGetListItemsDoneInfo

type OnGetListItemsDoneInfo struct {
	Items []models.ListItem
	Error error
}

type OnGetListItemsStartInfo

type OnGetListItemsStartInfo struct {
	ListID int64
	Client *models.User
	Token  *string
}

type OnGetListStartInfo

type OnGetListStartInfo struct {
	ListID int64
	Client *models.User
	Token  *string
}

type OnGetListTokenDoneInfo

type OnGetListTokenDoneInfo struct {
	Error error
}

type OnGetListTokenStartInfo

type OnGetListTokenStartInfo struct {
	ListID int64
	Client *models.User
}

type OnGetUserDoneInfo

type OnGetUserDoneInfo struct {
	User  *models.User
	Error error
}

type OnGetUserListsDoneInfo

type OnGetUserListsDoneInfo struct {
	ListIDs []int64
	Error   error
}

type OnGetUserListsStartInfo

type OnGetUserListsStartInfo struct {
	UserID int64
	Client *models.User
}

type OnGetUserStartInfo

type OnGetUserStartInfo struct {
	UserID int64
	Client *models.User
}

type OnKeySecurityAuthDoneInfo

type OnKeySecurityAuthDoneInfo struct {
	Client *models.User
	Err    error
}

type OnKeySecurityAuthStartInfo

type OnKeySecurityAuthStartInfo struct{}

type OnLoginDoneInfo

type OnLoginDoneInfo struct {
	Ok    bool
	Error error
}

type OnLoginStartInfo

type OnLoginStartInfo struct {
	Username string
}

type OnOAuthLoginDoneInfo

type OnOAuthLoginDoneInfo struct {
	Error error
}

type OnOAuthLoginStartInfo

type OnOAuthLoginStartInfo struct {
	Provider string
}

type OnOAuthRegisterDoneInfo

type OnOAuthRegisterDoneInfo struct {
	Error error
}

type OnOAuthRegisterStartInfo

type OnOAuthRegisterStartInfo struct {
	Username string
	Provider string
}

type OnPatchListDoneInfo

type OnPatchListDoneInfo struct {
	Error error
}

type OnPatchListStartInfo

type OnPatchListStartInfo struct {
	List   *models.List
	Client *models.User
}

type OnPatchUserDoneInfo

type OnPatchUserDoneInfo struct {
	Error error
}

type OnPatchUserStartInfo

type OnPatchUserStartInfo struct {
	User   *models.User
	Client *models.User
}

type OnPostItemTakenDoneInfo

type OnPostItemTakenDoneInfo struct {
	Error error
}

type OnPostItemTakenStartInfo

type OnPostItemTakenStartInfo struct {
	List   *models.List
	ItemID int64
	Client *models.User
	Token  *string
}

type OnPostListDoneInfo

type OnPostListDoneInfo struct {
	ListID int64
	Error  error
}

type OnPostListItemsDoneInfo

type OnPostListItemsDoneInfo struct {
	Error error
}

type OnPostListItemsStartInfo

type OnPostListItemsStartInfo struct {
	List   *models.List
	Items  []models.ListItem
	Client *models.User
}

type OnPostListStartInfo

type OnPostListStartInfo struct {
	List   *models.List
	Client *models.User
}

type OnRegisterDoneInfo

type OnRegisterDoneInfo struct {
	Ok    bool
	Error error
}

type OnRegisterStartInfo

type OnRegisterStartInfo struct {
	Username string
}

type Trace

type Trace struct {
	OnLogin func(OnLoginStartInfo) func(OnLoginDoneInfo)

	OnGetUser   func(OnGetUserStartInfo) func(OnGetUserDoneInfo)
	OnPatchUser func(OnPatchUserStartInfo) func(OnPatchUserDoneInfo)
	OnRegister  func(OnRegisterStartInfo) func(OnRegisterDoneInfo)

	OnGetList         func(OnGetListStartInfo) func(OnGetListDoneInfo)
	OnGetListItems    func(OnGetListItemsStartInfo) func(OnGetListItemsDoneInfo)
	OnPostList        func(OnPostListStartInfo) func(OnPostListDoneInfo)
	OnPostListItems   func(OnPostListItemsStartInfo) func(OnPostListItemsDoneInfo)
	OnPatchList       func(OnPatchListStartInfo) func(OnPatchListDoneInfo)
	OnDeleteList      func(OnDeleteListStartInfo) func(OnDeleteListDoneInfo)
	OnDeleteListItems func(OnDeleteListItemsStartInfo) func(OnDeleteListItemsDoneInfo)
	OnGetUserLists    func(OnGetUserListsStartInfo) func(OnGetUserListsDoneInfo)
	OnGetListToken    func(OnGetListTokenStartInfo) func(OnGetListTokenDoneInfo)
	OnPostItemTaken   func(OnPostItemTakenStartInfo) func(OnPostItemTakenDoneInfo)
	OnDeleteItemTaken func(OnDeleteItemTakenStartInfo) func(OnDeleteItemTakenDoneInfo)

	OnKeySecurityAuth func(OnKeySecurityAuthStartInfo) func(OnKeySecurityAuthDoneInfo)

	OnOAuthRegister func(OnOAuthRegisterStartInfo) func(OnOAuthRegisterDoneInfo)
	OnOAuthLogin    func(OnOAuthLoginStartInfo) func(OnOAuthLoginDoneInfo)
}

func (Trace) Compose

func (t Trace) Compose(x Trace) (ret Trace)

Compose returns a new Trace which has functional fields composed both from t and x.

Jump to

Keyboard shortcuts

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