mailapi

package
v0.0.0-...-aa0c761 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NO_LINK = ""
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(c *config.Config) *Server

func (*Server) Start

func (s *Server) Start() error

Start function starts listening and implements the router

type Storage

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

func NewStorage

func NewStorage() *Storage

func (*Storage) Add

func (s *Storage) Add(username string) string

Add creates new entry - link[user]

func (s *Storage) GetLink(username string) (string, bool)

GetLink returns link

func (*Storage) GetUser

func (s *Storage) GetUser(link string) (*model.User, bool)

GetUser return user

func (*Storage) Remove

func (s *Storage) Remove(link string)

Remove removes entry - link[user]

Jump to

Keyboard shortcuts

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