dns

package
v0.0.0-...-b155b17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const S3Prefix = "arweave/dns/records/"

Variables

This section is empty.

Functions

func CreateRecord

func CreateRecord(ctx *gin.Context)

CreateRecord create record

func GetRecord

func GetRecord(ctx *gin.Context)

GetRecord get record by name

func ListReocrds

func ListReocrds(ctx *gin.Context)

ListReocrds list all records

func Query

func Query(ctx *gin.Context)

Query query record by name

Types

type CreateRecordRequest

type CreateRecordRequest struct {
	Name   string `json:"name" binding:"required,max=128"`
	FileID string `json:"file_id" binding:"required,max=128"`
	Owner  *owner `json:"owner,omitempty"`
}

CreateRecordRequest is a request to create record

type Record

type Record struct {
	Records []recordItem `json:"records"`
}

Record is each file stored in s3

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳