endpoints

package
v0.0.0-...-8a4eff6 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookmarkRequest

type BookmarkRequest struct {
	PaperID  int
	Bookmark bool
}

type DeleteTeamRequest

type DeleteTeamRequest struct {
	TeamID int
}

type EmailPasswordRequest

type EmailPasswordRequest struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type InviteRequest

type InviteRequest struct {
	TeamID int
	Email  string
}

type KickRequest

type KickRequest struct {
	TeamID   int
	MemberID int
}

type PaperCreateRequest

type PaperCreateRequest struct {
	UserID  int
	PaperID int
}

type ShareRequest

type ShareRequest struct {
	TeamID  int
	PaperID int
	CanEdit bool
}

type TeamEndpoint

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

func NewTeamEndpoint

func NewTeamEndpoint(s *services.TeamService) TeamEndpoint

func (TeamEndpoint) Create

func (ep TeamEndpoint) Create(ctx context.Context, r interface{}) (interface{}, error)

func (TeamEndpoint) Delete

func (ep TeamEndpoint) Delete(ctx context.Context, r interface{}) (interface{}, error)

func (TeamEndpoint) Invite

func (ep TeamEndpoint) Invite(ctx context.Context, r interface{}) (interface{}, error)

func (TeamEndpoint) Kick

func (ep TeamEndpoint) Kick(ctx context.Context, r interface{}) (interface{}, error)

func (TeamEndpoint) Share

func (ep TeamEndpoint) Share(ctx context.Context, r interface{}) (interface{}, error)

func (TeamEndpoint) UserTeams

func (ep TeamEndpoint) UserTeams(ctx context.Context, _ interface{}) (interface{}, error)

type UserEndpoint

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

func NewUserEndpoint

func NewUserEndpoint(s *services.UserService) UserEndpoint

func (UserEndpoint) Bookmark

func (ep UserEndpoint) Bookmark(ctx context.Context, r interface{}) (interface{}, error)

func (UserEndpoint) CreatePaper

func (ep UserEndpoint) CreatePaper(ctx context.Context, r interface{}) (interface{}, error)

func (UserEndpoint) Login

func (ep UserEndpoint) Login(ctx context.Context, r interface{}) (interface{}, error)

func (UserEndpoint) Me

func (ep UserEndpoint) Me(ctx context.Context, _ interface{}) (interface{}, error)

func (UserEndpoint) SignUp

func (ep UserEndpoint) SignUp(ctx context.Context, r interface{}) (interface{}, error)

func (UserEndpoint) Token

func (ep UserEndpoint) Token(ctx context.Context, r interface{}) (interface{}, error)

func (UserEndpoint) Upsert

func (ep UserEndpoint) Upsert(ctx context.Context, r interface{}) (interface{}, error)

func (UserEndpoint) User

func (ep UserEndpoint) User(ctx context.Context, r interface{}) (interface{}, error)

Jump to

Keyboard shortcuts

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