Documentation
¶
Index ¶
- Constants
- func PrintAliases(aliases Aliases)
- func PrintDomainInfo(domainInfo DomainInfo)
- func PrintDomains(domains Domains, quiet bool)
- func PrintForwardings(forwardings Forwardings)
- type Alias
- type Aliases
- type Domain
- type DomainInfo
- type Domains
- type Forwarding
- type Forwardings
- type Server
- func (s *Server) AliasAdd(email, destEmail string) error
- func (s *Server) AliasList() (Aliases, error)
- func (s *Server) AliasRemove(email string) error
- func (s *Server) Close()
- func (s *Server) DomainAdd(domain Domain) error
- func (s *Server) DomainExists(domain string) (bool, error)
- func (s *Server) DomainGet(domainName string) (Domain, error)
- func (s *Server) DomainInfo(domainName string) error
- func (s *Server) DomainList() (Domains, error)
- func (s *Server) DomainUpdate(d Domain) error
- func (s *Server) ForwardingList() (Forwardings, error)
- func (s *Server) UserAdd(email, password string, quota int, storageBasePath string) (User, error)
- func (s *Server) UserAddAlias(alias, email string) error
- func (s *Server) UserAddForwarding(userAddress, destinationAddress string) error
- func (s *Server) UserDelete(email string) error
- func (s *Server) UserDeleteForwarding(userAddress, destinationAddress string) error
- func (s *Server) UserList() (Users, error)
- type User
- type UserAlias
- type UserAliases
- type Users
Constants ¶
View Source
const (
DomainDefaultSettings = "default_user_quota:2048"
)
Variables ¶
This section is empty.
Functions ¶
func PrintAliases ¶
func PrintAliases(aliases Aliases)
func PrintDomainInfo ¶
func PrintDomainInfo(domainInfo DomainInfo)
func PrintDomains ¶
func PrintForwardings ¶
func PrintForwardings(forwardings Forwardings)
Types ¶
type DomainInfo ¶
type Forwarding ¶
type Forwardings ¶
type Forwardings []Forwarding
func (Forwardings) FilterBy ¶
func (a Forwardings) FilterBy(filter string) Forwardings
func (Forwardings) GetByAddress ¶
func (f Forwardings) GetByAddress(address string) Forwardings
type Server ¶
func (*Server) AliasRemove ¶
func (*Server) DomainInfo ¶
func (*Server) DomainList ¶
func (*Server) DomainUpdate ¶
func (*Server) ForwardingList ¶
func (s *Server) ForwardingList() (Forwardings, error)
func (*Server) UserAddAlias ¶
func (*Server) UserAddForwarding ¶
func (*Server) UserDelete ¶
func (*Server) UserDeleteForwarding ¶
type User ¶
type User struct {
Email string
Name string
Domain string
PasswordHash string
Quota int
Type string
MailDir string
UserAliases
Forwardings
}
type UserAliases ¶
type UserAliases []UserAlias
Click to show internal directories.
Click to hide internal directories.