server

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupRunner added in v0.14.3

type BackupRunner struct {
	Store *store.Store
}

func NewBackupRunner added in v0.14.3

func NewBackupRunner(store *store.Store) *BackupRunner

func (*BackupRunner) Run added in v0.14.3

func (r *BackupRunner) Run(ctx context.Context)

type Server

type Server struct {
	ID      string
	Secret  string
	Profile *profile.Profile
	Store   *store.Store
	// contains filtered or unexported fields
}

func NewServer

func NewServer(ctx context.Context, profile *profile.Profile, store *store.Store) (*Server, error)

@title memos API @version 1.0 @description A privacy-first, lightweight note-taking service.

@contact.name API Support @contact.url https://github.com/orgs/usememos/discussions

@license.name MIT License @license.url https://github.com/usememos/memos/blob/main/LICENSE

@BasePath /

@externalDocs.url https://usememos.com/ @externalDocs.description Find out more about Memos

@securitydefinitions.apikey ApiKeyAuth @in query @name openId @description Insert your Open ID API Key here.

func (*Server) GetEcho added in v0.13.0

func (s *Server) GetEcho() *echo.Echo

func (*Server) Shutdown added in v0.10.3

func (s *Server) Shutdown(ctx context.Context)

func (*Server) Start added in v0.10.3

func (s *Server) Start(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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