v1connect

package
v1.0.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ConfigServiceGetNamespaceProcedure is the fully-qualified name of the ConfigService's
	// GetNamespace RPC.
	ConfigServiceGetNamespaceProcedure = "/evnode.v1.ConfigService/GetNamespace"
	// ConfigServiceGetSignerInfoProcedure is the fully-qualified name of the ConfigService's
	// GetSignerInfo RPC.
	ConfigServiceGetSignerInfoProcedure = "/evnode.v1.ConfigService/GetSignerInfo"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// ExecutorServiceInitChainProcedure is the fully-qualified name of the ExecutorService's InitChain
	// RPC.
	ExecutorServiceInitChainProcedure = "/evnode.v1.ExecutorService/InitChain"
	// ExecutorServiceGetTxsProcedure is the fully-qualified name of the ExecutorService's GetTxs RPC.
	ExecutorServiceGetTxsProcedure = "/evnode.v1.ExecutorService/GetTxs"
	// ExecutorServiceExecuteTxsProcedure is the fully-qualified name of the ExecutorService's
	// ExecuteTxs RPC.
	ExecutorServiceExecuteTxsProcedure = "/evnode.v1.ExecutorService/ExecuteTxs"
	// ExecutorServiceSetFinalProcedure is the fully-qualified name of the ExecutorService's SetFinal
	// RPC.
	ExecutorServiceSetFinalProcedure = "/evnode.v1.ExecutorService/SetFinal"
	// ExecutorServiceGetExecutionInfoProcedure is the fully-qualified name of the ExecutorService's
	// GetExecutionInfo RPC.
	ExecutorServiceGetExecutionInfoProcedure = "/evnode.v1.ExecutorService/GetExecutionInfo"
	// ExecutorServiceFilterTxsProcedure is the fully-qualified name of the ExecutorService's FilterTxs
	// RPC.
	ExecutorServiceFilterTxsProcedure = "/evnode.v1.ExecutorService/FilterTxs"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// P2PServiceGetPeerInfoProcedure is the fully-qualified name of the P2PService's GetPeerInfo RPC.
	P2PServiceGetPeerInfoProcedure = "/evnode.v1.P2PService/GetPeerInfo"
	// P2PServiceGetNetInfoProcedure is the fully-qualified name of the P2PService's GetNetInfo RPC.
	P2PServiceGetNetInfoProcedure = "/evnode.v1.P2PService/GetNetInfo"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// SignerServiceSignProcedure is the fully-qualified name of the SignerService's Sign RPC.
	SignerServiceSignProcedure = "/evnode.v1.SignerService/Sign"
	// SignerServiceGetPublicProcedure is the fully-qualified name of the SignerService's GetPublic RPC.
	SignerServiceGetPublicProcedure = "/evnode.v1.SignerService/GetPublic"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// StoreServiceGetBlockProcedure is the fully-qualified name of the StoreService's GetBlock RPC.
	StoreServiceGetBlockProcedure = "/evnode.v1.StoreService/GetBlock"
	// StoreServiceGetStateProcedure is the fully-qualified name of the StoreService's GetState RPC.
	StoreServiceGetStateProcedure = "/evnode.v1.StoreService/GetState"
	// StoreServiceGetMetadataProcedure is the fully-qualified name of the StoreService's GetMetadata
	// RPC.
	StoreServiceGetMetadataProcedure = "/evnode.v1.StoreService/GetMetadata"
	// StoreServiceGetGenesisDaHeightProcedure is the fully-qualified name of the StoreService's
	// GetGenesisDaHeight RPC.
	StoreServiceGetGenesisDaHeightProcedure = "/evnode.v1.StoreService/GetGenesisDaHeight"
	// StoreServiceGetP2PStoreInfoProcedure is the fully-qualified name of the StoreService's
	// GetP2PStoreInfo RPC.
	StoreServiceGetP2PStoreInfoProcedure = "/evnode.v1.StoreService/GetP2PStoreInfo"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// ConfigServiceName is the fully-qualified name of the ConfigService service.
	ConfigServiceName = "evnode.v1.ConfigService"
)
View Source
const (
	// ExecutorServiceName is the fully-qualified name of the ExecutorService service.
	ExecutorServiceName = "evnode.v1.ExecutorService"
)
View Source
const (
	// P2PServiceName is the fully-qualified name of the P2PService service.
	P2PServiceName = "evnode.v1.P2PService"
)
View Source
const (
	// SignerServiceName is the fully-qualified name of the SignerService service.
	SignerServiceName = "evnode.v1.SignerService"
)
View Source
const (
	// StoreServiceName is the fully-qualified name of the StoreService service.
	StoreServiceName = "evnode.v1.StoreService"
)

Variables

This section is empty.

Functions

func NewConfigServiceHandler

func NewConfigServiceHandler(svc ConfigServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewConfigServiceHandler 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 NewExecutorServiceHandler

func NewExecutorServiceHandler(svc ExecutorServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewExecutorServiceHandler 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 NewP2PServiceHandler

func NewP2PServiceHandler(svc P2PServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewP2PServiceHandler 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 NewSignerServiceHandler

func NewSignerServiceHandler(svc SignerServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewSignerServiceHandler 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 NewStoreServiceHandler

func NewStoreServiceHandler(svc StoreServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewStoreServiceHandler 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 ConfigServiceClient

type ConfigServiceClient interface {
	// GetNamespace returns the namespace for this network
	GetNamespace(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[v1.GetNamespaceResponse], error)
	// GetSignerInfo returns information about the signer
	GetSignerInfo(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[v1.GetSignerInfoResponse], error)
}

ConfigServiceClient is a client for the evnode.v1.ConfigService service.

func NewConfigServiceClient

func NewConfigServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ConfigServiceClient

NewConfigServiceClient constructs a client for the evnode.v1.ConfigService 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 ConfigServiceHandler

type ConfigServiceHandler interface {
	// GetNamespace returns the namespace for this network
	GetNamespace(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[v1.GetNamespaceResponse], error)
	// GetSignerInfo returns information about the signer
	GetSignerInfo(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[v1.GetSignerInfoResponse], error)
}

ConfigServiceHandler is an implementation of the evnode.v1.ConfigService service.

type ExecutorServiceClient

type ExecutorServiceClient interface {
	// InitChain initializes a new blockchain instance with genesis parameters
	InitChain(context.Context, *connect.Request[v1.InitChainRequest]) (*connect.Response[v1.InitChainResponse], error)
	// GetTxs fetches available transactions from the execution layer's mempool
	GetTxs(context.Context, *connect.Request[v1.GetTxsRequest]) (*connect.Response[v1.GetTxsResponse], error)
	// ExecuteTxs processes transactions to produce a new block state
	ExecuteTxs(context.Context, *connect.Request[v1.ExecuteTxsRequest]) (*connect.Response[v1.ExecuteTxsResponse], error)
	// SetFinal marks a block as finalized at the specified height
	SetFinal(context.Context, *connect.Request[v1.SetFinalRequest]) (*connect.Response[v1.SetFinalResponse], error)
	// GetExecutionInfo returns current execution layer parameters
	GetExecutionInfo(context.Context, *connect.Request[v1.GetExecutionInfoRequest]) (*connect.Response[v1.GetExecutionInfoResponse], error)
	// FilterTxs validates force-included transactions and calculates gas for all transactions
	FilterTxs(context.Context, *connect.Request[v1.FilterTxsRequest]) (*connect.Response[v1.FilterTxsResponse], error)
}

ExecutorServiceClient is a client for the evnode.v1.ExecutorService service.

func NewExecutorServiceClient

func NewExecutorServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ExecutorServiceClient

NewExecutorServiceClient constructs a client for the evnode.v1.ExecutorService 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 ExecutorServiceHandler

type ExecutorServiceHandler interface {
	// InitChain initializes a new blockchain instance with genesis parameters
	InitChain(context.Context, *connect.Request[v1.InitChainRequest]) (*connect.Response[v1.InitChainResponse], error)
	// GetTxs fetches available transactions from the execution layer's mempool
	GetTxs(context.Context, *connect.Request[v1.GetTxsRequest]) (*connect.Response[v1.GetTxsResponse], error)
	// ExecuteTxs processes transactions to produce a new block state
	ExecuteTxs(context.Context, *connect.Request[v1.ExecuteTxsRequest]) (*connect.Response[v1.ExecuteTxsResponse], error)
	// SetFinal marks a block as finalized at the specified height
	SetFinal(context.Context, *connect.Request[v1.SetFinalRequest]) (*connect.Response[v1.SetFinalResponse], error)
	// GetExecutionInfo returns current execution layer parameters
	GetExecutionInfo(context.Context, *connect.Request[v1.GetExecutionInfoRequest]) (*connect.Response[v1.GetExecutionInfoResponse], error)
	// FilterTxs validates force-included transactions and calculates gas for all transactions
	FilterTxs(context.Context, *connect.Request[v1.FilterTxsRequest]) (*connect.Response[v1.FilterTxsResponse], error)
}

ExecutorServiceHandler is an implementation of the evnode.v1.ExecutorService service.

type P2PServiceClient

type P2PServiceClient interface {
	// GetPeerInfo returns information about the connected peers
	GetPeerInfo(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[v1.GetPeerInfoResponse], error)
	// GetNetInfo returns network information
	GetNetInfo(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[v1.GetNetInfoResponse], error)
}

P2PServiceClient is a client for the evnode.v1.P2PService service.

func NewP2PServiceClient

func NewP2PServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) P2PServiceClient

NewP2PServiceClient constructs a client for the evnode.v1.P2PService 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 P2PServiceHandler

type P2PServiceHandler interface {
	// GetPeerInfo returns information about the connected peers
	GetPeerInfo(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[v1.GetPeerInfoResponse], error)
	// GetNetInfo returns network information
	GetNetInfo(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[v1.GetNetInfoResponse], error)
}

P2PServiceHandler is an implementation of the evnode.v1.P2PService service.

type SignerServiceClient

type SignerServiceClient interface {
	// Sign signs the given message.
	Sign(context.Context, *connect.Request[v1.SignRequest]) (*connect.Response[v1.SignResponse], error)
	// GetPublic returns the public key.
	GetPublic(context.Context, *connect.Request[v1.GetPublicRequest]) (*connect.Response[v1.GetPublicResponse], error)
}

SignerServiceClient is a client for the evnode.v1.SignerService service.

func NewSignerServiceClient

func NewSignerServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SignerServiceClient

NewSignerServiceClient constructs a client for the evnode.v1.SignerService 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 SignerServiceHandler

type SignerServiceHandler interface {
	// Sign signs the given message.
	Sign(context.Context, *connect.Request[v1.SignRequest]) (*connect.Response[v1.SignResponse], error)
	// GetPublic returns the public key.
	GetPublic(context.Context, *connect.Request[v1.GetPublicRequest]) (*connect.Response[v1.GetPublicResponse], error)
}

SignerServiceHandler is an implementation of the evnode.v1.SignerService service.

type StoreServiceClient

type StoreServiceClient interface {
	// GetBlock returns a block by height or hash
	GetBlock(context.Context, *connect.Request[v1.GetBlockRequest]) (*connect.Response[v1.GetBlockResponse], error)
	// GetState returns the current state
	GetState(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[v1.GetStateResponse], error)
	// GetMetadata returns metadata for a specific key
	GetMetadata(context.Context, *connect.Request[v1.GetMetadataRequest]) (*connect.Response[v1.GetMetadataResponse], error)
	// GetGenesisDaHeight returns the DA height at which the first Evolve block was included.
	GetGenesisDaHeight(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[v1.GetGenesisDaHeightResponse], error)
	// GetP2PStoreInfo returns head/tail information for the go-header stores used by P2P sync.
	GetP2PStoreInfo(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[v1.GetP2PStoreInfoResponse], error)
}

StoreServiceClient is a client for the evnode.v1.StoreService service.

func NewStoreServiceClient

func NewStoreServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) StoreServiceClient

NewStoreServiceClient constructs a client for the evnode.v1.StoreService 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 StoreServiceHandler

type StoreServiceHandler interface {
	// GetBlock returns a block by height or hash
	GetBlock(context.Context, *connect.Request[v1.GetBlockRequest]) (*connect.Response[v1.GetBlockResponse], error)
	// GetState returns the current state
	GetState(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[v1.GetStateResponse], error)
	// GetMetadata returns metadata for a specific key
	GetMetadata(context.Context, *connect.Request[v1.GetMetadataRequest]) (*connect.Response[v1.GetMetadataResponse], error)
	// GetGenesisDaHeight returns the DA height at which the first Evolve block was included.
	GetGenesisDaHeight(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[v1.GetGenesisDaHeightResponse], error)
	// GetP2PStoreInfo returns head/tail information for the go-header stores used by P2P sync.
	GetP2PStoreInfo(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[v1.GetP2PStoreInfoResponse], error)
}

StoreServiceHandler is an implementation of the evnode.v1.StoreService service.

type UnimplementedConfigServiceHandler

type UnimplementedConfigServiceHandler struct{}

UnimplementedConfigServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedExecutorServiceHandler

type UnimplementedExecutorServiceHandler struct{}

UnimplementedExecutorServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedP2PServiceHandler

type UnimplementedP2PServiceHandler struct{}

UnimplementedP2PServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedSignerServiceHandler

type UnimplementedSignerServiceHandler struct{}

UnimplementedSignerServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedSignerServiceHandler) Sign

type UnimplementedStoreServiceHandler

type UnimplementedStoreServiceHandler struct{}

UnimplementedStoreServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedStoreServiceHandler) GetState

Jump to

Keyboard shortcuts

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