server

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FrontendService

type FrontendService struct {
	Profile *profile.Profile
	Store   *store.Store
}

func NewFrontendService

func NewFrontendService(profile *profile.Profile, store *store.Store) *FrontendService

func (*FrontendService) Serve

func (s *FrontendService) Serve(ctx context.Context, e *echo.Echo)

type Metadata added in v0.5.2

type Metadata struct {
	Title       string
	Description string
	ImageURL    string
}

func (*Metadata) String added in v0.5.2

func (m *Metadata) String() string

type Server

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

func NewServer

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

func (*Server) GetEcho

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

func (*Server) Shutdown

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

func (*Server) Start

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

Directories

Path Synopsis
service

Jump to

Keyboard shortcuts

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