shapes

package
v0.0.0-...-3ed2260 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package shapes is a generated protocol buffer package.

It is generated from these files:

shapes.proto

It has these top-level messages:

SignRequest
KeyRequest
KeyResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSignerServer

func RegisterSignerServer(s *grpc.Server, srv SignerServer)

Types

type KeyRequest

type KeyRequest struct {
}

func (*KeyRequest) Descriptor

func (*KeyRequest) Descriptor() ([]byte, []int)

func (*KeyRequest) ProtoMessage

func (*KeyRequest) ProtoMessage()

func (*KeyRequest) Reset

func (m *KeyRequest) Reset()

func (*KeyRequest) String

func (m *KeyRequest) String() string

type KeyResponse

type KeyResponse struct {
	Certificate []byte `protobuf:"bytes,1,opt,name=Certificate,proto3" json:"Certificate,omitempty"`
}

func (*KeyResponse) Descriptor

func (*KeyResponse) Descriptor() ([]byte, []int)

func (*KeyResponse) GetCertificate

func (m *KeyResponse) GetCertificate() []byte

func (*KeyResponse) ProtoMessage

func (*KeyResponse) ProtoMessage()

func (*KeyResponse) Reset

func (m *KeyResponse) Reset()

func (*KeyResponse) String

func (m *KeyResponse) String() string

type SignRequest

type SignRequest struct {
	Key        []byte   `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
	Principals []string `protobuf:"bytes,2,rep,name=Principals" json:"Principals,omitempty"`
}

func (*SignRequest) Descriptor

func (*SignRequest) Descriptor() ([]byte, []int)

func (*SignRequest) GetKey

func (m *SignRequest) GetKey() []byte

func (*SignRequest) GetPrincipals

func (m *SignRequest) GetPrincipals() []string

func (*SignRequest) ProtoMessage

func (*SignRequest) ProtoMessage()

func (*SignRequest) Reset

func (m *SignRequest) Reset()

func (*SignRequest) String

func (m *SignRequest) String() string

type SignerClient

type SignerClient interface {
	Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*KeyResponse, error)
	PublicKey(ctx context.Context, in *KeyRequest, opts ...grpc.CallOption) (*KeyResponse, error)
}

func NewSignerClient

func NewSignerClient(cc *grpc.ClientConn) SignerClient

type SignerServer

type SignerServer interface {
	Sign(context.Context, *SignRequest) (*KeyResponse, error)
	PublicKey(context.Context, *KeyRequest) (*KeyResponse, error)
}

Jump to

Keyboard shortcuts

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