terms

package
v0.0.0-...-b400eb5 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthCheckHandler

func HealthCheckHandler(db *gorm.DB) func(http.ResponseWriter, *http.Request)

func TermsCheckHandler

func TermsCheckHandler(db *gorm.DB) func(http.ResponseWriter, *http.Request)

func TermsHandler

func TermsHandler(db *gorm.DB) func(http.ResponseWriter, *http.Request)

Types

type IngestError

type IngestError struct {
	Code   int    `json:"code"`
	Reason string `json:"reason"`
}

type TermsFormat

type TermsFormat struct {
	Text   string         `json:"text"`
	ID     uint           `json:"id"`
	Mask   *types.Uint256 `json:"mask"`
	MaskID uint           `json:"maskId"`
}

type TermsSigPayload

type TermsSigPayload struct {
	TermsID   uint             `json:"terms_id"`
	MaskID    uint             `json:"mask_id"`
	Signature *types.Signature `json:"sig"`
	Address   *types.Address   `json:"address"`
	Timestamp string           `json:"timestamp"`
	Nonce     string           `json:"nonce"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL