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 ¶
MongoConfig tyoe definition (MongoDB settings)
type ServerConfig ¶
type ServerConfig struct {
Port string
}
ServerConfig type definitions (Server settings)
Click to show internal directories.
Click to hide internal directories.