Documentation ¶
Index ¶
- type Server
- func (s Server) Append(_ context.Context, hash *pb.Hash) (*pb.ID, error)
- func (s Server) Get(_ context.Context, id *pb.ID) (*pb.Hash, error)
- func (s Server) GetDigest(context.Context, *pb.Empty) (*pb.Hash, error)
- func (s Server) GetOldProofByHash(_ context.Context, in *pb.GetOldProofByHashRequest) (*pb.HashProof, error)
- func (s Server) GetOldProofByID(_ context.Context, in *pb.GetOldProofByIDRequest) (*pb.HashProof, error)
- func (s Server) GetProofByHash(_ context.Context, hash *pb.Hash) (*pb.HashProof, error)
- func (s Server) GetProofByID(_ context.Context, id *pb.ID) (*pb.HashProof, error)
- func (s Server) Search(_ context.Context, hash *pb.Hash) (*pb.ID, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { pb.UnimplementedAccumulatorServer // contains filtered or unexported fields }
Server implements API server
func NewServer ¶
func NewServer(accumulator storage.MerkleAccumulator, logger *zap.SugaredLogger) *Server
NewServer returns a new API server
func (Server) GetOldProofByHash ¶
func (s Server) GetOldProofByHash(_ context.Context, in *pb.GetOldProofByHashRequest) (*pb.HashProof, error)
GetOldProofByHash requests hash proof of certain node to a past digest by hash
func (Server) GetOldProofByID ¶
func (s Server) GetOldProofByID(_ context.Context, in *pb.GetOldProofByIDRequest) (*pb.HashProof, error)
GetOldProofByID requests hash proof of certain node to a past digest by id
func (Server) GetProofByHash ¶
GetProofByHash requests hash proof of certain node to latest digest by hash
func (Server) GetProofByID ¶
GetProofByID requests hash proof of certain node to latest digest by id
Click to show internal directories.
Click to hide internal directories.