dis

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode_Punycode

func Decode_Punycode(name string) (string, error)

func Encode_Punycode

func Encode_Punycode(name string) (string, error)

Types

type Client

type Client struct {
	Logger   *zap.Logger //日志组件
	DisHost  string
	DisQHost string
	DaoHost  string
}

func NewClient

func NewClient() *Client

func (*Client) ApiAuthConf

func (c *Client) ApiAuthConf(ctx *gin.Context, request *idl.ApiAuthConfRequest) (*IDL.CommonResponse, error)

授权确认

func (*Client) ApiAuthInit

func (c *Client) ApiAuthInit(ctx *gin.Context, request *idl.ApiAuthInitRequest) (*IDL.CommonResponse, error)

授权发起

func (*Client) ApiAuthRevoke

func (c *Client) ApiAuthRevoke(ctx *gin.Context, request *idl.ApiAuthRevRequest) (*IDL.CommonResponse, error)

func (*Client) ApiDOAuthQuery

func (c *Client) ApiDOAuthQuery(ctx *gin.Context, request *idl.ApiDOAuthQueryRequest) (*idl.ApiDOQueryResponse, error)

数据对象权属查询

func (*Client) ApiDOCreate

func (c *Client) ApiDOCreate(ctx *gin.Context, request *idl.ApiDOCreateRequest) (*idl.ApiDisResponse, error)

数据对象属性注册

func (*Client) ApiDOCreateBatch

func (c *Client) ApiDOCreateBatch(ctx *gin.Context, request *idl.ApiDOCreateBatchRequest) (*idl.ApiDisResponse, error)

数据对象属性批量注册

func (*Client) ApiDODelete

func (c *Client) ApiDODelete(ctx *gin.Context, request *idl.ApiDODeleteRequest) (*idl.ApiDisResponse, error)

数据对象属性删除

func (*Client) ApiDOQuery

func (c *Client) ApiDOQuery(ctx *gin.Context, request *idl.ApiDOQueryRequest) (*idl.ApiDOQueryResponse, error)

数据对象属性查询

func (*Client) ApiDOUpdate

func (c *Client) ApiDOUpdate(ctx *gin.Context, request *idl.ApiDOUpdateRequest) (*idl.ApiDisResponse, error)

数据对象属性更新

func (*Client) ApiDOUpdateBatch

func (c *Client) ApiDOUpdateBatch(ctx *gin.Context, request *idl.ApiDOUpdateBatchRequest) (*idl.ApiDisResponse, error)

数据对象属性批量更新

func (*Client) ApiExchangeOwnershipConf

func (c *Client) ApiExchangeOwnershipConf(ctx *gin.Context, request *idl.ApiExchangeOwnershipRequest) (*IDL.CommonResponse, error)

交换所有权确认

func (*Client) ApiExchangeOwnershipInit

func (c *Client) ApiExchangeOwnershipInit(ctx *gin.Context, request *idl.ApiExchangeOwnershipRequest) (*IDL.CommonResponse, error)

授权发起

func (*Client) ApiGetRegistrationData

func (c *Client) ApiGetRegistrationData(ctx *gin.Context, request *idl.ApiRegDataRequest) (*IDL.CommonResponse, error)

注册数据查询(链查询)

func (*Client) ApiGetRegistrationDataByOrg

func (c *Client) ApiGetRegistrationDataByOrg(ctx *gin.Context, request *idl.ApiWhoisByOrgRequest) (*IDL.CommonResponse, error)

WHOIS数据局部查询1:根据org进行查询(mongoDB)

func (*Client) ApiHashManagement

func (c *Client) ApiHashManagement(ctx *gin.Context, request *idl.ApiHashManageRequest) (*idl.ApiDisResponse, error)

func (*Client) ApiRegistrationDataUpdate

func (c *Client) ApiRegistrationDataUpdate(ctx *gin.Context, request *idl.ApiWhoisUpdateRequest) (*idl.ApiDisResponse, error)

WHOIS数据更新

func (*Client) ApiTransactionGet

func (c *Client) ApiTransactionGet(ctx *gin.Context, request *idl.ApiTransactionInfoRequest) (*IDL.CommonResponse, error)

查询transaction

func (*Client) ApiWhoisManagement

func (c *Client) ApiWhoisManagement(ctx *gin.Context, request *idl.ApiWhoisManageRequest) (*idl.ApiDisResponse, error)

func (*Client) GetDataOwner

func (c *Client) GetDataOwner(ctx *gin.Context, request *idl.ApiDataOwnerRequest) (*IDL.CommonResponse, error)

func (*Client) GetPublicKey

func (c *Client) GetPublicKey(ctx *gin.Context, request *idl.ApiPublicKeyRequest) (*IDL.CommonResponse, error)

func (*Client) InitDao

func (c *Client) InitDao(daoHost string) *Client

func (*Client) InitDis

func (c *Client) InitDis(disHost string) *Client

func (*Client) InitDisQ

func (c *Client) InitDisQ(disqHost string) *Client

func (*Client) InitLogger

func (c *Client) InitLogger(logger *zap.Logger) *Client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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