Documentation
¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
proto/signer.proto
It has these top-level messages:
SignRequest SignResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSignerServer ¶
func RegisterSignerServer(s *grpc.Server, srv SignerServer)
Types ¶
type SignRequest ¶
type SignRequest struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
ValidUntil *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=valid_until,json=validUntil" json:"valid_until,omitempty"`
Message string `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
}
func (*SignRequest) Descriptor ¶
func (*SignRequest) Descriptor() ([]byte, []int)
func (*SignRequest) GetKey ¶
func (m *SignRequest) GetKey() []byte
func (*SignRequest) GetMessage ¶
func (m *SignRequest) GetMessage() string
func (*SignRequest) GetValidUntil ¶
func (m *SignRequest) GetValidUntil() *google_protobuf.Timestamp
func (*SignRequest) ProtoMessage ¶
func (*SignRequest) ProtoMessage()
func (*SignRequest) Reset ¶
func (m *SignRequest) Reset()
func (*SignRequest) String ¶
func (m *SignRequest) String() string
type SignResponse ¶
type SignResponse struct {
Cert []byte `protobuf:"bytes,1,opt,name=cert,proto3" json:"cert,omitempty"`
}
func (*SignResponse) Descriptor ¶
func (*SignResponse) Descriptor() ([]byte, []int)
func (*SignResponse) GetCert ¶
func (m *SignResponse) GetCert() []byte
func (*SignResponse) ProtoMessage ¶
func (*SignResponse) ProtoMessage()
func (*SignResponse) Reset ¶
func (m *SignResponse) Reset()
func (*SignResponse) String ¶
func (m *SignResponse) String() string
type SignerClient ¶
type SignerClient interface {
Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error)
}
func NewSignerClient ¶
func NewSignerClient(cc *grpc.ClientConn) SignerClient
type SignerServer ¶
type SignerServer interface {
Sign(context.Context, *SignRequest) (*SignResponse, error)
}
Click to show internal directories.
Click to hide internal directories.