exposer

package
v0.0.0-...-6e5a1dd Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package exposer is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	Exposer_GetNodeID_FullMethodName             = "/exposer.Exposer/GetNodeID"
	Exposer_GetPubKey_FullMethodName             = "/exposer.Exposer/GetPubKey"
	Exposer_GetGenesisFile_FullMethodName        = "/exposer.Exposer/GetGenesisFile"
	Exposer_GetKeys_FullMethodName               = "/exposer.Exposer/GetKeys"
	Exposer_GetPrivKey_FullMethodName            = "/exposer.Exposer/GetPrivKey"
	Exposer_GetPrivValidatorState_FullMethodName = "/exposer.Exposer/GetPrivValidatorState"
	Exposer_GetNodeKey_FullMethodName            = "/exposer.Exposer/GetNodeKey"
	Exposer_CreateChannel_FullMethodName         = "/exposer.Exposer/CreateChannel"
)

Variables

View Source
var Exposer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "exposer.Exposer",
	HandlerType: (*ExposerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetNodeID",
			Handler:    _Exposer_GetNodeID_Handler,
		},
		{
			MethodName: "GetPubKey",
			Handler:    _Exposer_GetPubKey_Handler,
		},
		{
			MethodName: "GetGenesisFile",
			Handler:    _Exposer_GetGenesisFile_Handler,
		},
		{
			MethodName: "GetKeys",
			Handler:    _Exposer_GetKeys_Handler,
		},
		{
			MethodName: "GetPrivKey",
			Handler:    _Exposer_GetPrivKey_Handler,
		},
		{
			MethodName: "GetPrivValidatorState",
			Handler:    _Exposer_GetPrivValidatorState_Handler,
		},
		{
			MethodName: "GetNodeKey",
			Handler:    _Exposer_GetNodeKey_Handler,
		},
		{
			MethodName: "CreateChannel",
			Handler:    _Exposer_CreateChannel_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "exposer/service.proto",
}

Exposer_ServiceDesc is the grpc.ServiceDesc for Exposer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_exposer_mnemonic_proto protoreflect.FileDescriptor
View Source
var File_exposer_node_proto protoreflect.FileDescriptor
View Source
var File_exposer_service_proto protoreflect.FileDescriptor

Functions

func RegisterExposerHandler

func RegisterExposerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterExposerHandler registers the http handlers for service Exposer to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterExposerHandlerClient

func RegisterExposerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ExposerClient) error

RegisterExposerHandlerClient registers the http handlers for service Exposer to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ExposerClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ExposerClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ExposerClient" to call the correct interceptors.

func RegisterExposerHandlerFromEndpoint

func RegisterExposerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterExposerHandlerFromEndpoint is same as RegisterExposerHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterExposerHandlerServer

func RegisterExposerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ExposerServer) error

RegisterExposerHandlerServer registers the http handlers for service Exposer to "mux". UnaryRPC :call ExposerServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterExposerHandlerFromEndpoint instead.

func RegisterExposerServer

func RegisterExposerServer(s grpc.ServiceRegistrar, srv ExposerServer)

Types

type ExposerClient

type ExposerClient interface {
	// GetNodeID will returns current node id
	GetNodeID(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ResponseNodeID, error)
	// GetPubKey returns the public key of the current node
	GetPubKey(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ResponsePubKey, error)
	// GetGenesisFile returns the genesis file of the node
	GetGenesisFile(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*structpb.Struct, error)
	// GetKeysFile returns the keys of the node
	GetKeys(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Keys, error)
	// GetPrivKeys returns the keys of the node
	GetPrivKey(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PrivValidatorKey, error)
	// GetPrivState returns the keys of the node
	GetPrivValidatorState(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PrivValidatorState, error)
	// GetNodeKey returns the keys of the node
	GetNodeKey(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NodeKey, error)
	// Service functions for Relayer
	// CreateChannel creates channel between 2 given chains
	CreateChannel(ctx context.Context, in *RequestCreateChannel, opts ...grpc.CallOption) (*ResponseCreateChannel, error)
}

ExposerClient is the client API for Exposer service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewExposerClient

func NewExposerClient(cc grpc.ClientConnInterface) ExposerClient

type ExposerServer

type ExposerServer interface {
	// GetNodeID will returns current node id
	GetNodeID(context.Context, *emptypb.Empty) (*ResponseNodeID, error)
	// GetPubKey returns the public key of the current node
	GetPubKey(context.Context, *emptypb.Empty) (*ResponsePubKey, error)
	// GetGenesisFile returns the genesis file of the node
	GetGenesisFile(context.Context, *emptypb.Empty) (*structpb.Struct, error)
	// GetKeysFile returns the keys of the node
	GetKeys(context.Context, *emptypb.Empty) (*Keys, error)
	// GetPrivKeys returns the keys of the node
	GetPrivKey(context.Context, *emptypb.Empty) (*PrivValidatorKey, error)
	// GetPrivState returns the keys of the node
	GetPrivValidatorState(context.Context, *emptypb.Empty) (*PrivValidatorState, error)
	// GetNodeKey returns the keys of the node
	GetNodeKey(context.Context, *emptypb.Empty) (*NodeKey, error)
	// Service functions for Relayer
	// CreateChannel creates channel between 2 given chains
	CreateChannel(context.Context, *RequestCreateChannel) (*ResponseCreateChannel, error)
	// contains filtered or unexported methods
}

ExposerServer is the server API for Exposer service. All implementations must embed UnimplementedExposerServer for forward compatibility

type Keys

type Keys struct {
	Genesis     []*Mnemonic `protobuf:"bytes,1,rep,name=genesis,proto3" json:"genesis,omitempty"`
	Validators  []*Mnemonic `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators,omitempty"`
	Keys        []*Mnemonic `protobuf:"bytes,3,rep,name=keys,proto3" json:"keys,omitempty"`
	Relayers    []*Mnemonic `protobuf:"bytes,4,rep,name=relayers,proto3" json:"relayers,omitempty"`
	Faucet      []*Mnemonic `protobuf:"bytes,5,rep,name=faucet,proto3" json:"faucet,omitempty"`
	RelayersCli []*Mnemonic `protobuf:"bytes,6,rep,name=relayers_cli,json=relayersCli,proto3" json:"relayers_cli,omitempty"`
	// contains filtered or unexported fields
}

func (*Keys) Descriptor deprecated

func (*Keys) Descriptor() ([]byte, []int)

Deprecated: Use Keys.ProtoReflect.Descriptor instead.

func (*Keys) GetFaucet

func (x *Keys) GetFaucet() []*Mnemonic

func (*Keys) GetGenesis

func (x *Keys) GetGenesis() []*Mnemonic

func (*Keys) GetKeys

func (x *Keys) GetKeys() []*Mnemonic

func (*Keys) GetRelayers

func (x *Keys) GetRelayers() []*Mnemonic

func (*Keys) GetRelayersCli

func (x *Keys) GetRelayersCli() []*Mnemonic

func (*Keys) GetValidators

func (x *Keys) GetValidators() []*Mnemonic

func (*Keys) ProtoMessage

func (*Keys) ProtoMessage()

func (*Keys) ProtoReflect

func (x *Keys) ProtoReflect() protoreflect.Message

func (*Keys) Reset

func (x *Keys) Reset()

func (*Keys) String

func (x *Keys) String() string

type Mnemonic

type Mnemonic struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type     string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Mnemonic string `protobuf:"bytes,3,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"`
	// contains filtered or unexported fields
}

func (*Mnemonic) Descriptor deprecated

func (*Mnemonic) Descriptor() ([]byte, []int)

Deprecated: Use Mnemonic.ProtoReflect.Descriptor instead.

func (*Mnemonic) GetMnemonic

func (x *Mnemonic) GetMnemonic() string

func (*Mnemonic) GetName

func (x *Mnemonic) GetName() string

func (*Mnemonic) GetType

func (x *Mnemonic) GetType() string

func (*Mnemonic) ProtoMessage

func (*Mnemonic) ProtoMessage()

func (*Mnemonic) ProtoReflect

func (x *Mnemonic) ProtoReflect() protoreflect.Message

func (*Mnemonic) Reset

func (x *Mnemonic) Reset()

func (*Mnemonic) String

func (x *Mnemonic) String() string

type NodeInfo

type NodeInfo struct {
	Id              string                    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ListenAddr      string                    `protobuf:"bytes,2,opt,name=listen_addr,proto3" json:"listen_addr,omitempty"`
	Network         string                    `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"`
	Version         string                    `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
	Channels        string                    `protobuf:"bytes,5,opt,name=channels,proto3" json:"channels,omitempty"`
	Moniker         string                    `protobuf:"bytes,6,opt,name=moniker,proto3" json:"moniker,omitempty"`
	ProtocolVersion *NodeInfo_ProtocolVersion `protobuf:"bytes,7,opt,name=protocol_version,proto3" json:"protocol_version,omitempty"`
	Other           *NodeInfo_Other           `protobuf:"bytes,8,opt,name=other,proto3" json:"other,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeInfo) Descriptor deprecated

func (*NodeInfo) Descriptor() ([]byte, []int)

Deprecated: Use NodeInfo.ProtoReflect.Descriptor instead.

func (*NodeInfo) GetChannels

func (x *NodeInfo) GetChannels() string

func (*NodeInfo) GetId

func (x *NodeInfo) GetId() string

func (*NodeInfo) GetListenAddr

func (x *NodeInfo) GetListenAddr() string

func (*NodeInfo) GetMoniker

func (x *NodeInfo) GetMoniker() string

func (*NodeInfo) GetNetwork

func (x *NodeInfo) GetNetwork() string

func (*NodeInfo) GetOther

func (x *NodeInfo) GetOther() *NodeInfo_Other

func (*NodeInfo) GetProtocolVersion

func (x *NodeInfo) GetProtocolVersion() *NodeInfo_ProtocolVersion

func (*NodeInfo) GetVersion

func (x *NodeInfo) GetVersion() string

func (*NodeInfo) ProtoMessage

func (*NodeInfo) ProtoMessage()

func (*NodeInfo) ProtoReflect

func (x *NodeInfo) ProtoReflect() protoreflect.Message

func (*NodeInfo) Reset

func (x *NodeInfo) Reset()

func (*NodeInfo) String

func (x *NodeInfo) String() string

type NodeInfo_Other

type NodeInfo_Other struct {
	TxIndex    string `protobuf:"bytes,1,opt,name=tx_index,proto3" json:"tx_index,omitempty"`
	RpcAddress string `protobuf:"bytes,2,opt,name=rpc_address,proto3" json:"rpc_address,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeInfo_Other) Descriptor deprecated

func (*NodeInfo_Other) Descriptor() ([]byte, []int)

Deprecated: Use NodeInfo_Other.ProtoReflect.Descriptor instead.

func (*NodeInfo_Other) GetRpcAddress

func (x *NodeInfo_Other) GetRpcAddress() string

func (*NodeInfo_Other) GetTxIndex

func (x *NodeInfo_Other) GetTxIndex() string

func (*NodeInfo_Other) ProtoMessage

func (*NodeInfo_Other) ProtoMessage()

func (*NodeInfo_Other) ProtoReflect

func (x *NodeInfo_Other) ProtoReflect() protoreflect.Message

func (*NodeInfo_Other) Reset

func (x *NodeInfo_Other) Reset()

func (*NodeInfo_Other) String

func (x *NodeInfo_Other) String() string

type NodeInfo_ProtocolVersion

type NodeInfo_ProtocolVersion struct {
	P2P   string `protobuf:"bytes,1,opt,name=p2p,proto3" json:"p2p,omitempty"`
	Block string `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
	App   string `protobuf:"bytes,3,opt,name=app,proto3" json:"app,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeInfo_ProtocolVersion) Descriptor deprecated

func (*NodeInfo_ProtocolVersion) Descriptor() ([]byte, []int)

Deprecated: Use NodeInfo_ProtocolVersion.ProtoReflect.Descriptor instead.

func (*NodeInfo_ProtocolVersion) GetApp

func (x *NodeInfo_ProtocolVersion) GetApp() string

func (*NodeInfo_ProtocolVersion) GetBlock

func (x *NodeInfo_ProtocolVersion) GetBlock() string

func (*NodeInfo_ProtocolVersion) GetP2P

func (x *NodeInfo_ProtocolVersion) GetP2P() string

func (*NodeInfo_ProtocolVersion) ProtoMessage

func (*NodeInfo_ProtocolVersion) ProtoMessage()

func (*NodeInfo_ProtocolVersion) ProtoReflect

func (x *NodeInfo_ProtocolVersion) ProtoReflect() protoreflect.Message

func (*NodeInfo_ProtocolVersion) Reset

func (x *NodeInfo_ProtocolVersion) Reset()

func (*NodeInfo_ProtocolVersion) String

func (x *NodeInfo_ProtocolVersion) String() string

type NodeKey

type NodeKey struct {
	PrivKey *TypeKey `protobuf:"bytes,1,opt,name=priv_key,proto3" json:"priv_key,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeKey) Descriptor deprecated

func (*NodeKey) Descriptor() ([]byte, []int)

Deprecated: Use NodeKey.ProtoReflect.Descriptor instead.

func (*NodeKey) GetPrivKey

func (x *NodeKey) GetPrivKey() *TypeKey

func (*NodeKey) ProtoMessage

func (*NodeKey) ProtoMessage()

func (*NodeKey) ProtoReflect

func (x *NodeKey) ProtoReflect() protoreflect.Message

func (*NodeKey) Reset

func (x *NodeKey) Reset()

func (*NodeKey) String

func (x *NodeKey) String() string

type PrivValidatorKey

type PrivValidatorKey struct {
	Address string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	PubKey  *TypeKey `protobuf:"bytes,2,opt,name=pub_key,proto3" json:"pub_key,omitempty"`
	PrivKey *TypeKey `protobuf:"bytes,3,opt,name=priv_key,proto3" json:"priv_key,omitempty"`
	// contains filtered or unexported fields
}

func (*PrivValidatorKey) Descriptor deprecated

func (*PrivValidatorKey) Descriptor() ([]byte, []int)

Deprecated: Use PrivValidatorKey.ProtoReflect.Descriptor instead.

func (*PrivValidatorKey) GetAddress

func (x *PrivValidatorKey) GetAddress() string

func (*PrivValidatorKey) GetPrivKey

func (x *PrivValidatorKey) GetPrivKey() *TypeKey

func (*PrivValidatorKey) GetPubKey

func (x *PrivValidatorKey) GetPubKey() *TypeKey

func (*PrivValidatorKey) ProtoMessage

func (*PrivValidatorKey) ProtoMessage()

func (*PrivValidatorKey) ProtoReflect

func (x *PrivValidatorKey) ProtoReflect() protoreflect.Message

func (*PrivValidatorKey) Reset

func (x *PrivValidatorKey) Reset()

func (*PrivValidatorKey) String

func (x *PrivValidatorKey) String() string

type PrivValidatorState

type PrivValidatorState struct {
	Height    string  `protobuf:"bytes,1,opt,name=height,proto3" json:"height,omitempty"`
	Round     *int32  `protobuf:"varint,2,opt,name=round,proto3,oneof" json:"round,omitempty"`
	Step      *int32  `protobuf:"varint,3,opt,name=step,proto3,oneof" json:"step,omitempty"`
	Signature *string `protobuf:"bytes,4,opt,name=signature,proto3,oneof" json:"signature,omitempty"`
	Signbytes *string `protobuf:"bytes,5,opt,name=signbytes,proto3,oneof" json:"signbytes,omitempty"`
	// contains filtered or unexported fields
}

func (*PrivValidatorState) Descriptor deprecated

func (*PrivValidatorState) Descriptor() ([]byte, []int)

Deprecated: Use PrivValidatorState.ProtoReflect.Descriptor instead.

func (*PrivValidatorState) GetHeight

func (x *PrivValidatorState) GetHeight() string

func (*PrivValidatorState) GetRound

func (x *PrivValidatorState) GetRound() int32

func (*PrivValidatorState) GetSignature

func (x *PrivValidatorState) GetSignature() string

func (*PrivValidatorState) GetSignbytes

func (x *PrivValidatorState) GetSignbytes() string

func (*PrivValidatorState) GetStep

func (x *PrivValidatorState) GetStep() int32

func (*PrivValidatorState) ProtoMessage

func (*PrivValidatorState) ProtoMessage()

func (*PrivValidatorState) ProtoReflect

func (x *PrivValidatorState) ProtoReflect() protoreflect.Message

func (*PrivValidatorState) Reset

func (x *PrivValidatorState) Reset()

func (*PrivValidatorState) String

func (x *PrivValidatorState) String() string

type RequestCreateChannel

type RequestCreateChannel struct {
	AChain string `protobuf:"bytes,1,opt,name=a_chain,proto3" json:"a_chain,omitempty"`
	// if a_connection is not specified then a new connection is formed
	AConnection *string `protobuf:"bytes,2,opt,name=a_connection,proto3,oneof" json:"a_connection,omitempty"`
	// needs to be defined if a_connection is not defined
	BChain         *string `protobuf:"bytes,3,opt,name=b_chain,proto3,oneof" json:"b_chain,omitempty"`
	APort          string  `protobuf:"bytes,4,opt,name=a_port,proto3" json:"a_port,omitempty"`
	BPort          string  `protobuf:"bytes,5,opt,name=b_port,proto3" json:"b_port,omitempty"`
	ChannelVersion *string `protobuf:"bytes,6,opt,name=channel_version,proto3,oneof" json:"channel_version,omitempty"`
	Order          *string `protobuf:"bytes,7,opt,name=order,proto3,oneof" json:"order,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestCreateChannel) Descriptor deprecated

func (*RequestCreateChannel) Descriptor() ([]byte, []int)

Deprecated: Use RequestCreateChannel.ProtoReflect.Descriptor instead.

func (*RequestCreateChannel) GetAChain

func (x *RequestCreateChannel) GetAChain() string

func (*RequestCreateChannel) GetAConnection

func (x *RequestCreateChannel) GetAConnection() string

func (*RequestCreateChannel) GetAPort

func (x *RequestCreateChannel) GetAPort() string

func (*RequestCreateChannel) GetBChain

func (x *RequestCreateChannel) GetBChain() string

func (*RequestCreateChannel) GetBPort

func (x *RequestCreateChannel) GetBPort() string

func (*RequestCreateChannel) GetChannelVersion

func (x *RequestCreateChannel) GetChannelVersion() string

func (*RequestCreateChannel) GetOrder

func (x *RequestCreateChannel) GetOrder() string

func (*RequestCreateChannel) ProtoMessage

func (*RequestCreateChannel) ProtoMessage()

func (*RequestCreateChannel) ProtoReflect

func (x *RequestCreateChannel) ProtoReflect() protoreflect.Message

func (*RequestCreateChannel) Reset

func (x *RequestCreateChannel) Reset()

func (*RequestCreateChannel) String

func (x *RequestCreateChannel) String() string

type ResponseCreateChannel

type ResponseCreateChannel struct {
	Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*ResponseCreateChannel) Descriptor deprecated

func (*ResponseCreateChannel) Descriptor() ([]byte, []int)

Deprecated: Use ResponseCreateChannel.ProtoReflect.Descriptor instead.

func (*ResponseCreateChannel) GetStatus

func (x *ResponseCreateChannel) GetStatus() string

func (*ResponseCreateChannel) ProtoMessage

func (*ResponseCreateChannel) ProtoMessage()

func (*ResponseCreateChannel) ProtoReflect

func (x *ResponseCreateChannel) ProtoReflect() protoreflect.Message

func (*ResponseCreateChannel) Reset

func (x *ResponseCreateChannel) Reset()

func (*ResponseCreateChannel) String

func (x *ResponseCreateChannel) String() string

type ResponseFileData

type ResponseFileData struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ResponseFileData) Descriptor deprecated

func (*ResponseFileData) Descriptor() ([]byte, []int)

Deprecated: Use ResponseFileData.ProtoReflect.Descriptor instead.

func (*ResponseFileData) GetData

func (x *ResponseFileData) GetData() []byte

func (*ResponseFileData) ProtoMessage

func (*ResponseFileData) ProtoMessage()

func (*ResponseFileData) ProtoReflect

func (x *ResponseFileData) ProtoReflect() protoreflect.Message

func (*ResponseFileData) Reset

func (x *ResponseFileData) Reset()

func (*ResponseFileData) String

func (x *ResponseFileData) String() string

type ResponseNodeID

type ResponseNodeID struct {
	NodeId string `protobuf:"bytes,1,opt,name=node_id,proto3" json:"node_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ResponseNodeID) Descriptor deprecated

func (*ResponseNodeID) Descriptor() ([]byte, []int)

Deprecated: Use ResponseNodeID.ProtoReflect.Descriptor instead.

func (*ResponseNodeID) GetNodeId

func (x *ResponseNodeID) GetNodeId() string

func (*ResponseNodeID) ProtoMessage

func (*ResponseNodeID) ProtoMessage()

func (*ResponseNodeID) ProtoReflect

func (x *ResponseNodeID) ProtoReflect() protoreflect.Message

func (*ResponseNodeID) Reset

func (x *ResponseNodeID) Reset()

func (*ResponseNodeID) String

func (x *ResponseNodeID) String() string

type ResponsePubKey

type ResponsePubKey struct {
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Key  string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*ResponsePubKey) Descriptor deprecated

func (*ResponsePubKey) Descriptor() ([]byte, []int)

Deprecated: Use ResponsePubKey.ProtoReflect.Descriptor instead.

func (*ResponsePubKey) GetKey

func (x *ResponsePubKey) GetKey() string

func (*ResponsePubKey) GetType

func (x *ResponsePubKey) GetType() string

func (*ResponsePubKey) ProtoMessage

func (*ResponsePubKey) ProtoMessage()

func (*ResponsePubKey) ProtoReflect

func (x *ResponsePubKey) ProtoReflect() protoreflect.Message

func (*ResponsePubKey) Reset

func (x *ResponsePubKey) Reset()

func (*ResponsePubKey) String

func (x *ResponsePubKey) String() string

type Status

type Status struct {
	Jsonrpc string         `protobuf:"bytes,1,opt,name=jsonrpc,proto3" json:"jsonrpc,omitempty"`
	Id      float64        `protobuf:"fixed64,2,opt,name=id,proto3" json:"id,omitempty"`
	Result  *Status_Result `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*Status) Descriptor deprecated

func (*Status) Descriptor() ([]byte, []int)

Deprecated: Use Status.ProtoReflect.Descriptor instead.

func (*Status) GetId

func (x *Status) GetId() float64

func (*Status) GetJsonrpc

func (x *Status) GetJsonrpc() string

func (*Status) GetResult

func (x *Status) GetResult() *Status_Result

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) ProtoReflect

func (x *Status) ProtoReflect() protoreflect.Message

func (*Status) Reset

func (x *Status) Reset()

func (*Status) String

func (x *Status) String() string

type Status_Result

type Status_Result struct {
	NodeInfo      *NodeInfo      `protobuf:"bytes,1,opt,name=node_info,proto3" json:"node_info,omitempty"`
	SyncInfo      *SyncInfo      `protobuf:"bytes,2,opt,name=sync_info,proto3" json:"sync_info,omitempty"`
	ValidatorInfo *ValidatorInfo `protobuf:"bytes,3,opt,name=validator_info,proto3" json:"validator_info,omitempty"`
	// contains filtered or unexported fields
}

func (*Status_Result) Descriptor deprecated

func (*Status_Result) Descriptor() ([]byte, []int)

Deprecated: Use Status_Result.ProtoReflect.Descriptor instead.

func (*Status_Result) GetNodeInfo

func (x *Status_Result) GetNodeInfo() *NodeInfo

func (*Status_Result) GetSyncInfo

func (x *Status_Result) GetSyncInfo() *SyncInfo

func (*Status_Result) GetValidatorInfo

func (x *Status_Result) GetValidatorInfo() *ValidatorInfo

func (*Status_Result) ProtoMessage

func (*Status_Result) ProtoMessage()

func (*Status_Result) ProtoReflect

func (x *Status_Result) ProtoReflect() protoreflect.Message

func (*Status_Result) Reset

func (x *Status_Result) Reset()

func (*Status_Result) String

func (x *Status_Result) String() string

type SyncInfo

type SyncInfo struct {
	LatestBlockHash     string `protobuf:"bytes,1,opt,name=latest_block_hash,proto3" json:"latest_block_hash,omitempty"`
	LatestAppHash       string `protobuf:"bytes,2,opt,name=latest_app_hash,proto3" json:"latest_app_hash,omitempty"`
	LatestBlockHeight   string `protobuf:"bytes,3,opt,name=latest_block_height,proto3" json:"latest_block_height,omitempty"`
	LatestBlockTime     string `protobuf:"bytes,4,opt,name=latest_block_time,proto3" json:"latest_block_time,omitempty"`
	EarliestAppHash     string `protobuf:"bytes,5,opt,name=earliest_app_hash,proto3" json:"earliest_app_hash,omitempty"`
	EarliestBlockHash   string `protobuf:"bytes,6,opt,name=earliest_block_hash,proto3" json:"earliest_block_hash,omitempty"`
	EarliestBlockHeight string `protobuf:"bytes,7,opt,name=earliest_block_height,proto3" json:"earliest_block_height,omitempty"`
	EarliestBlockTime   string `protobuf:"bytes,8,opt,name=earliest_block_time,proto3" json:"earliest_block_time,omitempty"`
	CatchingUp          bool   `protobuf:"varint,9,opt,name=catching_up,proto3" json:"catching_up,omitempty"`
	// contains filtered or unexported fields
}

func (*SyncInfo) Descriptor deprecated

func (*SyncInfo) Descriptor() ([]byte, []int)

Deprecated: Use SyncInfo.ProtoReflect.Descriptor instead.

func (*SyncInfo) GetCatchingUp

func (x *SyncInfo) GetCatchingUp() bool

func (*SyncInfo) GetEarliestAppHash

func (x *SyncInfo) GetEarliestAppHash() string

func (*SyncInfo) GetEarliestBlockHash

func (x *SyncInfo) GetEarliestBlockHash() string

func (*SyncInfo) GetEarliestBlockHeight

func (x *SyncInfo) GetEarliestBlockHeight() string

func (*SyncInfo) GetEarliestBlockTime

func (x *SyncInfo) GetEarliestBlockTime() string

func (*SyncInfo) GetLatestAppHash

func (x *SyncInfo) GetLatestAppHash() string

func (*SyncInfo) GetLatestBlockHash

func (x *SyncInfo) GetLatestBlockHash() string

func (*SyncInfo) GetLatestBlockHeight

func (x *SyncInfo) GetLatestBlockHeight() string

func (*SyncInfo) GetLatestBlockTime

func (x *SyncInfo) GetLatestBlockTime() string

func (*SyncInfo) ProtoMessage

func (*SyncInfo) ProtoMessage()

func (*SyncInfo) ProtoReflect

func (x *SyncInfo) ProtoReflect() protoreflect.Message

func (*SyncInfo) Reset

func (x *SyncInfo) Reset()

func (*SyncInfo) String

func (x *SyncInfo) String() string

type TypeKey

type TypeKey struct {
	Type  string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*TypeKey) Descriptor deprecated

func (*TypeKey) Descriptor() ([]byte, []int)

Deprecated: Use TypeKey.ProtoReflect.Descriptor instead.

func (*TypeKey) GetType

func (x *TypeKey) GetType() string

func (*TypeKey) GetValue

func (x *TypeKey) GetValue() string

func (*TypeKey) ProtoMessage

func (*TypeKey) ProtoMessage()

func (*TypeKey) ProtoReflect

func (x *TypeKey) ProtoReflect() protoreflect.Message

func (*TypeKey) Reset

func (x *TypeKey) Reset()

func (*TypeKey) String

func (x *TypeKey) String() string

type UnimplementedExposerServer

type UnimplementedExposerServer struct {
}

UnimplementedExposerServer must be embedded to have forward compatible implementations.

func (UnimplementedExposerServer) CreateChannel

func (UnimplementedExposerServer) GetGenesisFile

func (UnimplementedExposerServer) GetKeys

func (UnimplementedExposerServer) GetNodeID

func (UnimplementedExposerServer) GetNodeKey

func (UnimplementedExposerServer) GetPrivKey

func (UnimplementedExposerServer) GetPrivValidatorState

func (UnimplementedExposerServer) GetPubKey

type UnsafeExposerServer

type UnsafeExposerServer interface {
	// contains filtered or unexported methods
}

UnsafeExposerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ExposerServer will result in compilation errors.

type ValidatorInfo

type ValidatorInfo struct {
	Address     string             `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	VotingPower string             `protobuf:"bytes,2,opt,name=voting_power,proto3" json:"voting_power,omitempty"`
	PubKey      *ValidatorInfo_Key `protobuf:"bytes,3,opt,name=pub_key,proto3" json:"pub_key,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidatorInfo) Descriptor deprecated

func (*ValidatorInfo) Descriptor() ([]byte, []int)

Deprecated: Use ValidatorInfo.ProtoReflect.Descriptor instead.

func (*ValidatorInfo) GetAddress

func (x *ValidatorInfo) GetAddress() string

func (*ValidatorInfo) GetPubKey

func (x *ValidatorInfo) GetPubKey() *ValidatorInfo_Key

func (*ValidatorInfo) GetVotingPower

func (x *ValidatorInfo) GetVotingPower() string

func (*ValidatorInfo) ProtoMessage

func (*ValidatorInfo) ProtoMessage()

func (*ValidatorInfo) ProtoReflect

func (x *ValidatorInfo) ProtoReflect() protoreflect.Message

func (*ValidatorInfo) Reset

func (x *ValidatorInfo) Reset()

func (*ValidatorInfo) String

func (x *ValidatorInfo) String() string

type ValidatorInfo_Key

type ValidatorInfo_Key struct {
	Type  string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidatorInfo_Key) Descriptor deprecated

func (*ValidatorInfo_Key) Descriptor() ([]byte, []int)

Deprecated: Use ValidatorInfo_Key.ProtoReflect.Descriptor instead.

func (*ValidatorInfo_Key) GetType

func (x *ValidatorInfo_Key) GetType() string

func (*ValidatorInfo_Key) GetValue

func (x *ValidatorInfo_Key) GetValue() string

func (*ValidatorInfo_Key) ProtoMessage

func (*ValidatorInfo_Key) ProtoMessage()

func (*ValidatorInfo_Key) ProtoReflect

func (x *ValidatorInfo_Key) ProtoReflect() protoreflect.Message

func (*ValidatorInfo_Key) Reset

func (x *ValidatorInfo_Key) Reset()

func (*ValidatorInfo_Key) String

func (x *ValidatorInfo_Key) String() string

Jump to

Keyboard shortcuts

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