Documentation ¶
Overview ¶
Package domaininfo implements a domain information database, to keep track of things we know about a particular domain.
Index ¶
- Variables
- type DB
- type Domain
- func (*Domain) Descriptor() ([]byte, []int)deprecated
- func (x *Domain) GetIncomingSecLevel() SecLevel
- func (x *Domain) GetName() string
- func (x *Domain) GetOutgoingSecLevel() SecLevel
- func (*Domain) ProtoMessage()
- func (x *Domain) ProtoReflect() protoreflect.Message
- func (x *Domain) Reset()
- func (x *Domain) String() string
- type SecLevel
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SecLevel_name = map[int32]string{ 0: "PLAIN", 1: "TLS_CLIENT", 2: "TLS_INSECURE", 3: "TLS_SECURE", } SecLevel_value = map[string]int32{ "PLAIN": 0, "TLS_CLIENT": 1, "TLS_INSECURE": 2, "TLS_SECURE": 3, } )
Enum value maps for SecLevel.
View Source
var File_domaininfo_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB represents the persistent domain information database.
func New ¶
New opens a domain information database on the given dir, creating it if necessary. The returned database will not be loaded.
func (*DB) IncomingSecLevel ¶
IncomingSecLevel checks an incoming security level for the domain. Returns true if allowed, false otherwise.
func (*DB) OutgoingSecLevel ¶
OutgoingSecLevel checks an incoming security level for the domain. Returns true if allowed, false otherwise.
type Domain ¶
type Domain struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Security level for mail coming from this domain (they send to us). IncomingSecLevel SecLevel `` /* 137-byte string literal not displayed */ // Security level for mail going to this domain (we send to them). OutgoingSecLevel SecLevel `` /* 137-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Domain) Descriptor
deprecated
func (*Domain) GetIncomingSecLevel ¶
func (*Domain) GetOutgoingSecLevel ¶
func (*Domain) ProtoMessage ¶
func (*Domain) ProtoMessage()
func (*Domain) ProtoReflect ¶
func (x *Domain) ProtoReflect() protoreflect.Message
type SecLevel ¶
type SecLevel int32
func (SecLevel) Descriptor ¶
func (SecLevel) Descriptor() protoreflect.EnumDescriptor
func (SecLevel) EnumDescriptor
deprecated
func (SecLevel) Number ¶
func (x SecLevel) Number() protoreflect.EnumNumber
func (SecLevel) Type ¶
func (SecLevel) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.