v1

package
v0.0.0-...-20679a4 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthController

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

AuthController represents all operations on auth endpoint.

func NewAuthController

func NewAuthController(c ioc.Container) *AuthController

NewAuthController creates a new instance of auth controller.

func (*AuthController) AddRoutes

func (c *AuthController) AddRoutes(e *echo.Echo)

AddRoutes configures all routes of auth endpoint in the 'echo' server runtime.

func (*AuthController) Exchange

func (c *AuthController) Exchange(ctx echo.Context) error

Exchange converts the authorization code into token and returns it to the client.

func (*AuthController) GetURL

func (c *AuthController) GetURL(ctx echo.Context) error

GetURL returns the authorization workflow url to the client.

func (*AuthController) Refresh

func (c *AuthController) Refresh(ctx echo.Context) error

Refresh renews access token using refresh token.

func (*AuthController) Revoke

func (c *AuthController) Revoke(ctx echo.Context) error

Revoke resets the authorization workflow. After calling revoke, the user needs to start authorization workflow again.

type NotestoreController

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

NotestoreController represents all operations on notestore endpoint.

func NewNotestoreController

func NewNotestoreController(c ioc.Container) *NotestoreController

NewNotestoreController creates a new instance of notestore controller.

func (*NotestoreController) AddRoutes

func (c *NotestoreController) AddRoutes(e *echo.Echo)

AddRoutes configures all routes of notestore endpoint in the 'echo' server runtime.

func (*NotestoreController) CreateNote

func (c *NotestoreController) CreateNote(ctx echo.Context) error

CreateNote builds a new note and returns to the client.

func (*NotestoreController) DeleteNote

func (c *NotestoreController) DeleteNote(ctx echo.Context) error

DeleteNote removes the note from cloud storage.

func (*NotestoreController) GetNote

func (c *NotestoreController) GetNote(ctx echo.Context) error

GetNote fetches the single note from the cloud storage and return to the client.

func (*NotestoreController) GetNotes

func (c *NotestoreController) GetNotes(ctx echo.Context) error

GetNotes fetches all notes from the cloud storage and return to the client.

func (*NotestoreController) UpdateNote

func (c *NotestoreController) UpdateNote(ctx echo.Context) error

UpdateNote modifies the note and saves back on cloud storage.

type SectionstoreController

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

SectionstoreController represents all operations on sectionstore endpoint.

func NewSectionstoreController

func NewSectionstoreController(c ioc.Container) *SectionstoreController

NewSectionstoreController creates a new instance of sectionstore controller.

func (*SectionstoreController) AddRoutes

func (c *SectionstoreController) AddRoutes(e *echo.Echo)

AddRoutes configures all routes of sectionstore endpoint in the 'echo' server runtime.

func (*SectionstoreController) CreateSection

func (c *SectionstoreController) CreateSection(ctx echo.Context) error

CreateSection adds a new section in the note and returns to the client.

func (*SectionstoreController) DeleteSection

func (c *SectionstoreController) DeleteSection(ctx echo.Context) error

DeleteSection removes the section from note.

func (*SectionstoreController) GetSection

func (c *SectionstoreController) GetSection(ctx echo.Context) error

GetSection fetches the single section from the note and returns to the client.

func (*SectionstoreController) GetSections

func (c *SectionstoreController) GetSections(ctx echo.Context) error

GetSections fetches all sections from the note and returns to the client.

func (*SectionstoreController) UpdateSection

func (c *SectionstoreController) UpdateSection(ctx echo.Context) error

UpdateSection modifies the section and saves it back in the note.

type UserinfoController

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

UserinfoController represents all operations on userinfo endpoint.

func NewUserinfoController

func NewUserinfoController(c ioc.Container) *UserinfoController

NewUserinfoController creates a new instance of userinfo controller.

func (*UserinfoController) AddRoutes

func (c *UserinfoController) AddRoutes(e *echo.Echo)

AddRoutes configures all routes of userinfo endpoint in the 'echo' server runtime.

func (*UserinfoController) GetUser

func (c *UserinfoController) GetUser(ctx echo.Context) error

GetUser returns the user detail to the client.

Jump to

Keyboard shortcuts

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