hydroxide-push/protonmail/adresses.go

39 lines
591 B
Go

package protonmail
type (
AddressSend int
AddressStatus int
AddressType int
)
const (
AddressSendDisabled AddressSend = iota
AddressSendPrimary
AddressSendSecondary
)
const (
AddressDisabled AddressStatus = iota
AddressEnabled
)
const (
AddressOriginal AddressType = iota
AddressAlias
AddressCustom
)
type Address struct {
ID string
DomainID string
Email string
Send AddressSend
Receive int
Status AddressStatus
Type AddressType
DisplayName string
Signature string // HTML
HasKeys int
Keys []*PrivateKey
}