request

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIUpdateAccountDetail

type APIUpdateAccountDetail struct {
	// Address is either an EVM or Cosmos address of the account.
	Address string `json:"address" binding:"required" validate:"required"`

	// Name is the identity of the account.
	Name string `json:"name" binding:"required" validate:"required"`

	// Monitored indicates whether the service should monitor this account.
	Monitored bool `json:"monitored"`
}

APIUpdateAccountDetail holds an account detail.

func (*APIUpdateAccountDetail) IsValid

func (req *APIUpdateAccountDetail) IsValid() (bool, error)

type APIUpdateTokenDetail

type APIUpdateTokenDetail store.TokenDetail

APIUpdateTokenDetail holds a token detail.

func (*APIUpdateTokenDetail) IsValid

func (req *APIUpdateTokenDetail) IsValid() (bool, error)

Jump to

Keyboard shortcuts

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