root

package
v0.0.0-...-5cca3c0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2019 License: ISC Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Mongo  *MongoConfig  `json:"mongo"`
	Server *ServerConfig `json:"server"`
}

Config type definition (App settings)

type Contact

type Contact struct {
	Nick   string   `json:"nick"`
	Mobile []string `json:"mobile"`
	Email  []string `json:"email,omitempty"`
}

Contact type definition

type ContactService

type ContactService interface {
	GetContacts() ([]Contact, error)
	GetContact(nick string) (Contact, error)
	AddContact(contact *Contact) error
	UpdateContact(nick string, contact *Contact) error
	DeleteContact(nick string) error
	AddMobile(nick string, mobile string) error
	DelMobile(nick string, mobile string) error
	AddEmail(nick string, email string) error
	DelEmail(nick string, email string) error
	ChangeNick(oldNick string, newNick string) error
}

ContactService interface definition

type MongoConfig

type MongoConfig struct {
	IP     string
	DbName string
}

MongoConfig tyoe definition (MongoDB settings)

type ServerConfig

type ServerConfig struct {
	Port string
}

ServerConfig type definitions (Server settings)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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