server

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package server is the HTTP process: it boots the Echo server, mounts every transport (server/api/v1, server/fileserver, server/frontend, server/mcp), and owns HTTP-only concerns such as auth tokens and process configuration.

Layering: server may import core, store, provider, markdown, filter, and internal. Nothing imports server except cmd.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	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)

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() error

Directories

Path Synopsis
api
v1
Package auth provides authentication and authorization for the Memos server.
Package auth provides authentication and authorization for the Memos server.

Jump to

Keyboard shortcuts

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