client

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CName = "any-ns.anynsclient"

Variables

This section is empty.

Functions

This section is empty.

Types

type AnyNsClientService

type AnyNsClientService interface {
	IsNameAvailable(ctx context.Context, in *as.NameAvailableRequest) (out *as.NameAvailableResponse, err error)
	GetOperationStatus(ctx context.Context, in *as.GetOperationStatusRequest) (out *as.OperationResponse, err error)
	// TODO: remove and use only NameRegisterSigned
	NameRegister(ctx context.Context, in *as.NameRegisterRequest) (out *as.OperationResponse, err error)
	NameRegisterSigned(ctx context.Context, in *as.NameRegisterSignedRequest) (out *as.OperationResponse, err error)

	NameRenew(ctx context.Context, in *as.NameRenewRequest) (out *as.OperationResponse, err error)

	// reverse resolve
	GetNameByAddress(ctx context.Context, in *as.NameByAddressRequest) (out *as.NameByAddressResponse, err error)

	// AccountAbstractions interface
	GetUserAccount(ctx context.Context, in *as.GetUserAccountRequest) (out *as.UserAccount, err error)
	AdminFundUserAccount(ctx context.Context, in *as.AdminFundUserAccountRequestSigned) (out *as.OperationResponse, err error)
	GetOperation(ctx context.Context, in *as.GetOperationStatusRequest) (out *as.OperationResponse, err error)

	app.ComponentRunnable
}

* This client component can be used to access the Any Naming System (any-ns) * from other components.

func New

func New() AnyNsClientService

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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