Skip to content

Commit

Permalink
[deleg] add support for DELEG type
Browse files Browse the repository at this point in the history
Signed-off-by: Manu Bretelle <chantr4@gmail.com>
  • Loading branch information
chantra committed Dec 24, 2023
1 parent 9bbcd24 commit b062eb3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions svcb.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,24 @@ func (rr *HTTPS) parse(c *zlexer, o string) *ParseError {
return rr.SVCB.parse(c, o)
}

// DELEG RR. Everything valid for SVCB applies to DELEG as well.
// Except that the DELEG record is intended for use with the DELEG protocols.
//
// NOTE: The HTTPS/SVCB RFCs are in the draft stage.
// The API, including constants and types related to SVCBKeyValues, may
// change in future versions in accordance with the latest drafts.
type DELEG struct {
SVCB
}

func (rr *DELEG) String() string {
return rr.SVCB.String()
}

func (rr *DELEG) parse(c *zlexer, o string) *ParseError {
return rr.SVCB.parse(c, o)
}

// SVCBKeyValue defines a key=value pair for the SVCB RR type.
// An SVCB RR can have multiple SVCBKeyValues appended to it.
type SVCBKeyValue interface {
Expand Down
1 change: 1 addition & 0 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const (
TypeZONEMD uint16 = 63
TypeSVCB uint16 = 64
TypeHTTPS uint16 = 65
TypeDELEG uint16 = 66
TypeSPF uint16 = 99
TypeUINFO uint16 = 100
TypeUID uint16 = 101
Expand Down
2 changes: 2 additions & 0 deletions ztypes.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b062eb3

Please sign in to comment.