plugin

package
v0.0.0-...-ac04c48 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0, Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	net.Listener
	*grpc.Server
	// contains filtered or unexported fields
}

func New

func New(pathToUnixSocketFile string, publicKeyFile string, privateKeyFile string) (*Plugin, error)

func (*Plugin) Decrypt

func (g *Plugin) Decrypt(ctx context.Context, request *pb.DecryptRequest) (*pb.DecryptResponse, error)

func (*Plugin) Encrypt

func (g *Plugin) Encrypt(ctx context.Context, request *pb.EncryptRequest) (*pb.EncryptResponse, error)

func (*Plugin) Start

func (g *Plugin) Start()

func (*Plugin) Stop

func (g *Plugin) Stop()

func (*Plugin) Version

func (g *Plugin) Version(ctx context.Context, request *pb.VersionRequest) (*pb.VersionResponse, error)

Jump to

Keyboard shortcuts

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