Documentation ¶
Index ¶
- func NewAPIServer(logger log.Logger, sStore store.SecretStore, kStore crypto.KeyStore) pb.APIServer
- type API
- func (a *API) CreateSecret(ctx context.Context, s *pb.CreateSecretRequest) (*pb.SimpleSecret, error)
- func (a *API) GetCipherText(ctx context.Context, r *pb.GetCipherTextRequest) (*pb.CipherText, error)
- func (a *API) GetPrivateShares(ctx context.Context, r *pb.GetPrivateSharesRequest) (*pb.PrivateShares, error)
- func (a *API) GetPublicShares(ctx context.Context, r *pb.GetPublicSharesRequest) (*pb.PublicShares, error)
- func (a *API) GetSecret(ctx context.Context, r *pb.GetSecretRequest) (*pb.SimpleSecret, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAPIServer ¶
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) CreateSecret ¶
func (a *API) CreateSecret(ctx context.Context, s *pb.CreateSecretRequest) (*pb.SimpleSecret, error)
func (*API) GetCipherText ¶
func (a *API) GetCipherText(ctx context.Context, r *pb.GetCipherTextRequest) (*pb.CipherText, error)
func (*API) GetPrivateShares ¶
func (a *API) GetPrivateShares(ctx context.Context, r *pb.GetPrivateSharesRequest) (*pb.PrivateShares, error)
func (*API) GetPublicShares ¶
func (a *API) GetPublicShares(ctx context.Context, r *pb.GetPublicSharesRequest) (*pb.PublicShares, error)
func (*API) GetSecret ¶
func (a *API) GetSecret(ctx context.Context, r *pb.GetSecretRequest) (*pb.SimpleSecret, error)
Click to show internal directories.
Click to hide internal directories.