typesconnect

package
v0.0.0-...-dbf8a10 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AdminServiceName is the fully-qualified name of the AdminService service.
	AdminServiceName = "types.AdminService"
)
View Source
const (
	// ContractServiceName is the fully-qualified name of the ContractService service.
	ContractServiceName = "types.ContractService"
)
View Source
const (
	// EnterpriseServiceName is the fully-qualified name of the EnterpriseService service.
	EnterpriseServiceName = "types.EnterpriseService"
)
View Source
const (
	// ViewerServiceName is the fully-qualified name of the ViewerService service.
	ViewerServiceName = "types.ViewerService"
)
View Source
const (
	// WalletServiceName is the fully-qualified name of the WalletService service.
	WalletServiceName = "types.WalletService"
)

Variables

This section is empty.

Functions

func NewAdminServiceHandler

func NewAdminServiceHandler(svc AdminServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewAdminServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewContractServiceHandler

func NewContractServiceHandler(svc ContractServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewContractServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewEnterpriseServiceHandler

func NewEnterpriseServiceHandler(svc EnterpriseServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewEnterpriseServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewViewerServiceHandler

func NewViewerServiceHandler(svc ViewerServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewViewerServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewWalletServiceHandler

func NewWalletServiceHandler(svc WalletServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewWalletServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

Types

type AdminServiceClient

AdminServiceClient is a client for the types.AdminService service.

func NewAdminServiceClient

func NewAdminServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) AdminServiceClient

NewAdminServiceClient constructs a client for the types.AdminService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type AdminServiceHandler

AdminServiceHandler is an implementation of the types.AdminService service.

type ContractServiceClient

ContractServiceClient is a client for the types.ContractService service.

func NewContractServiceClient

func NewContractServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) ContractServiceClient

NewContractServiceClient constructs a client for the types.ContractService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type ContractServiceHandler

ContractServiceHandler is an implementation of the types.ContractService service.

type EnterpriseServiceClient

type EnterpriseServiceClient interface {
}

EnterpriseServiceClient is a client for the types.EnterpriseService service.

func NewEnterpriseServiceClient

func NewEnterpriseServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) EnterpriseServiceClient

NewEnterpriseServiceClient constructs a client for the types.EnterpriseService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type EnterpriseServiceHandler

type EnterpriseServiceHandler interface {
}

EnterpriseServiceHandler is an implementation of the types.EnterpriseService service.

type UnimplementedAdminServiceHandler

type UnimplementedAdminServiceHandler struct{}

UnimplementedAdminServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedAdminServiceHandler) Keygen

func (UnimplementedAdminServiceHandler) Mempool

func (UnimplementedAdminServiceHandler) Sign

func (UnimplementedAdminServiceHandler) Vote

type UnimplementedContractServiceHandler

type UnimplementedContractServiceHandler struct{}

UnimplementedContractServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedContractServiceHandler) Deposit

func (UnimplementedContractServiceHandler) TxCommit

func (UnimplementedContractServiceHandler) TxMake

func (UnimplementedContractServiceHandler) TxSend

func (UnimplementedContractServiceHandler) TxSign

type UnimplementedEnterpriseServiceHandler

type UnimplementedEnterpriseServiceHandler struct{}

UnimplementedEnterpriseServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedViewerServiceHandler

type UnimplementedViewerServiceHandler struct{}

UnimplementedViewerServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedViewerServiceHandler) GetAccount

func (UnimplementedViewerServiceHandler) GetBestBlock

func (UnimplementedViewerServiceHandler) GetBlockStream

func (UnimplementedViewerServiceHandler) GetChainInfo

func (UnimplementedViewerServiceHandler) GetContract

func (UnimplementedViewerServiceHandler) GetEventList

func (UnimplementedViewerServiceHandler) GetEventStream

func (UnimplementedViewerServiceHandler) GetMetric

func (UnimplementedViewerServiceHandler) GetNFT

func (UnimplementedViewerServiceHandler) GetName

func (UnimplementedViewerServiceHandler) GetNodeState

func (UnimplementedViewerServiceHandler) GetReceipt

func (UnimplementedViewerServiceHandler) GetReceiptInBlock

func (UnimplementedViewerServiceHandler) GetToken

func (UnimplementedViewerServiceHandler) GetTx

func (UnimplementedViewerServiceHandler) GetTxInBlock

func (UnimplementedViewerServiceHandler) Ping

func (UnimplementedViewerServiceHandler) QueryContract

type UnimplementedWalletServiceHandler

type UnimplementedWalletServiceHandler struct{}

UnimplementedWalletServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedWalletServiceHandler) Export

func (UnimplementedWalletServiceHandler) Import

type ViewerServiceClient

type ViewerServiceClient interface {
	// server status
	Ping(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
	GetChainInfo(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.ChainInfo], error)
	GetNodeState(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
	GetMetric(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
	GetBestBlock(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
	// block
	GetBlock(context.Context, *connect_go.Request[types.SingleBytes]) (*connect_go.Response[types.Block], error)
	GetBlockList(context.Context, *connect_go.Request[types.ListParams]) (*connect_go.Response[types.BlockHeaderList], error)
	GetBlockStream(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
	// tx
	GetTx(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Tx], error)
	GetTxInBlock(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.TxInBlock], error)
	// receipt
	GetReceipt(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Receipt], error)
	GetReceiptInBlock(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
	// event
	GetEventList(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.EventList], error)
	GetEventStream(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
	// contract
	GetContract(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
	QueryContract(context.Context, *connect_go.Request[types.Query]) (*connect_go.Response[types.SingleBytes], error)
	// account
	GetAccount(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Account], error)
	GetName(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
	// token
	GetToken(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
	// nft
	GetNFT(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
}

ViewerServiceClient is a client for the types.ViewerService service.

func NewViewerServiceClient

func NewViewerServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) ViewerServiceClient

NewViewerServiceClient constructs a client for the types.ViewerService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type ViewerServiceHandler

type ViewerServiceHandler interface {
	// server status
	Ping(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
	GetChainInfo(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.ChainInfo], error)
	GetNodeState(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
	GetMetric(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
	GetBestBlock(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
	// block
	GetBlock(context.Context, *connect_go.Request[types.SingleBytes]) (*connect_go.Response[types.Block], error)
	GetBlockList(context.Context, *connect_go.Request[types.ListParams]) (*connect_go.Response[types.BlockHeaderList], error)
	GetBlockStream(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
	// tx
	GetTx(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Tx], error)
	GetTxInBlock(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.TxInBlock], error)
	// receipt
	GetReceipt(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Receipt], error)
	GetReceiptInBlock(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
	// event
	GetEventList(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.EventList], error)
	GetEventStream(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
	// contract
	GetContract(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
	QueryContract(context.Context, *connect_go.Request[types.Query]) (*connect_go.Response[types.SingleBytes], error)
	// account
	GetAccount(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Account], error)
	GetName(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
	// token
	GetToken(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
	// nft
	GetNFT(context.Context, *connect_go.Request[types.Empty]) (*connect_go.Response[types.Empty], error)
}

ViewerServiceHandler is an implementation of the types.ViewerService service.

type WalletServiceClient

WalletServiceClient is a client for the types.WalletService service.

func NewWalletServiceClient

func NewWalletServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) WalletServiceClient

NewWalletServiceClient constructs a client for the types.WalletService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type WalletServiceHandler

WalletServiceHandler is an implementation of the types.WalletService service.

Jump to

Keyboard shortcuts

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