Documentation ¶
Overview ¶
Package server contains the core server components.
Index ¶
- func CheckCertFiles(certFile, keyFile string) error
- func GetFreePort(networkInterface string) (int, error)
- type Enclave
- type Server
- func (s *Server) Delete(ctx context.Context, in *chimera.DeleteRequest) (*chimera.DeleteRequest, error)
- func (s *Server) Push(ctx context.Context, in *chimera.PushPayload) (*chimera.PartyInfoResponse, error)
- func (s *Server) Receive(ctx context.Context, in *chimera.ReceiveRequest) (*chimera.ReceiveResponse, error)
- func (s *Server) Resend(ctx context.Context, in *chimera.ResendRequest) (*chimera.ResendResponse, error)
- func (s *Server) Send(ctx context.Context, in *chimera.SendRequest) (*chimera.SendResponse, error)
- func (s *Server) Upcheck(ctx context.Context, in *chimera.UpCheckResponse) (*chimera.UpCheckResponse, error)
- func (s *Server) UpdatePartyInfo(ctx context.Context, in *chimera.PartyInfo) (*chimera.PartyInfoResponse, error)
- func (s *Server) Version(ctx context.Context, in *chimera.ApiVersion) (*chimera.ApiVersion, error)
- type TransactionManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCertFiles ¶
func GetFreePort ¶
Types ¶
type Enclave ¶
type Enclave interface { Store(message *[]byte, sender []byte, recipients [][]byte) ([]byte, error) StorePayloadGrpc(epl api.EncryptedPayload, encoded []byte) ([]byte, error) StorePayload(encoded []byte) ([]byte, error) Retrieve(digestHash *[]byte, to *[]byte) ([]byte, error) RetrieveDefault(digestHash *[]byte) ([]byte, error) RetrieveFor(digestHash *[]byte, reqRecipient *[]byte) (*[]byte, error) RetrieveAllFor(reqRecipient *[]byte) error Delete(digestHash *[]byte) error UpdatePartyInfo(encoded []byte) UpdatePartyInfoGrpc(url string, recipients map[[nacl.KeySize]byte]string, parties map[string]bool) GetEncodedPartyInfo() []byte GetEncodedPartyInfoGrpc() []byte GetPartyInfo() (url string, recipients map[[nacl.KeySize]byte]string, parties map[string]bool) }
Enclave is the interface used by the transaction enclaves.
type Server ¶
type Server struct {
Enclave Enclave
}
func (*Server) Delete ¶ added in v1.0.2
func (s *Server) Delete(ctx context.Context, in *chimera.DeleteRequest) (*chimera.DeleteRequest, error)
func (*Server) Push ¶
func (s *Server) Push(ctx context.Context, in *chimera.PushPayload) (*chimera.PartyInfoResponse, error)
func (*Server) Receive ¶
func (s *Server) Receive(ctx context.Context, in *chimera.ReceiveRequest) (*chimera.ReceiveResponse, error)
func (*Server) Resend ¶ added in v1.0.2
func (s *Server) Resend(ctx context.Context, in *chimera.ResendRequest) (*chimera.ResendResponse, error)
func (*Server) Send ¶
func (s *Server) Send(ctx context.Context, in *chimera.SendRequest) (*chimera.SendResponse, error)
func (*Server) Upcheck ¶
func (s *Server) Upcheck(ctx context.Context, in *chimera.UpCheckResponse) (*chimera.UpCheckResponse, error)
func (*Server) UpdatePartyInfo ¶
func (*Server) Version ¶
func (s *Server) Version(ctx context.Context, in *chimera.ApiVersion) (*chimera.ApiVersion, error)
type TransactionManager ¶
type TransactionManager struct {
Enclave Enclave
}
TransactionManager is responsible for handling all transaction requests.
Click to show internal directories.
Click to hide internal directories.