Documentation ¶
Index ¶
- Constants
- type RpcServer
- func (s *RpcServer) L1StakerRewardsAmount(ctx context.Context, request *pb.L1StakerRewardsAmountRequest) (*pb.L1StakerRewardsAmountResponse, error)
- func (s *RpcServer) L2StakeRecord(ctx context.Context, request *pb.L2StakeRecordRequest) (*pb.L2StakeRecordResponse, error)
- func (s *RpcServer) L2StakerRewardsAmount(ctx context.Context, request *pb.L2StakerRewardsAmountRequest) (*pb.L2StakerRewardsAmountResponse, error)
- func (s *RpcServer) L2UnStakeRecord(ctx context.Context, request *pb.L2UnStakeRecordRequest) (*pb.L2UnStakeRecordResponse, error)
- func (s *RpcServer) L2WithdrawRecord(ctx context.Context, request *pb.L2WithdrawRecordRequest) (*pb.L2WithdrawRecordResponse, error)
- func (s *RpcServer) Start(ctx context.Context) error
- func (s *RpcServer) Stop(ctx context.Context) error
- func (s *RpcServer) Stopped() bool
- type RpcServerConfig
Constants ¶
View Source
const MaxRecvMessageSize = 1024 * 1024 * 300
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RpcServer ¶
type RpcServer struct { *RpcServerConfig // contains filtered or unexported fields }
func NewRpcServer ¶
func NewRpcServer(grpcCfg *RpcServerConfig, chainRpcCfg []*config.RPC, db *database.DB, shutdown context.CancelCauseFunc) (*RpcServer, error)
func (*RpcServer) L1StakerRewardsAmount ¶
func (s *RpcServer) L1StakerRewardsAmount(ctx context.Context, request *pb.L1StakerRewardsAmountRequest) (*pb.L1StakerRewardsAmountResponse, error)
func (*RpcServer) L2StakeRecord ¶
func (s *RpcServer) L2StakeRecord(ctx context.Context, request *pb.L2StakeRecordRequest) (*pb.L2StakeRecordResponse, error)
func (*RpcServer) L2StakerRewardsAmount ¶
func (s *RpcServer) L2StakerRewardsAmount(ctx context.Context, request *pb.L2StakerRewardsAmountRequest) (*pb.L2StakerRewardsAmountResponse, error)
func (*RpcServer) L2UnStakeRecord ¶
func (s *RpcServer) L2UnStakeRecord(ctx context.Context, request *pb.L2UnStakeRecordRequest) (*pb.L2UnStakeRecordResponse, error)
func (*RpcServer) L2WithdrawRecord ¶
func (s *RpcServer) L2WithdrawRecord(ctx context.Context, request *pb.L2WithdrawRecordRequest) (*pb.L2WithdrawRecordResponse, error)
type RpcServerConfig ¶
Click to show internal directories.
Click to hide internal directories.