api

package
v0.0.0-...-da0747f Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPIServer

func NewAPIServer(logger log.Logger, sStore store.SecretStore, kStore crypto.KeyStore) pb.APIServer

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)

Directories

Path Synopsis
Package apipb is a generated protocol buffer package.
Package apipb is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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