From 7c99874c7a3e7a89716f3ee0cdf696532e35ae35 Mon Sep 17 00:00:00 2001 From: Bob Long Date: Tue, 17 Oct 2017 14:00:37 +0100 Subject: Support a message to be passed and logged from client to server (#67) * Support a message to be passed and logged from client to server --- proto/signer.pb.go | 40 ++++++++++++++++++++++++---------------- proto/signer.proto | 1 + 2 files changed, 25 insertions(+), 16 deletions(-) (limited to 'proto') diff --git a/proto/signer.pb.go b/proto/signer.pb.go index f3a0eb2..785b4fb 100644 --- a/proto/signer.pb.go +++ b/proto/signer.pb.go @@ -1,6 +1,5 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: proto/signer.proto -// DO NOT EDIT! /* Package proto is a generated protocol buffer package. @@ -38,6 +37,7 @@ const _ = proto1.ProtoPackageIsVersion2 // please upgrade the proto package 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 (m *SignRequest) Reset() { *m = SignRequest{} } @@ -59,6 +59,13 @@ func (m *SignRequest) GetValidUntil() *google_protobuf.Timestamp { return nil } +func (m *SignRequest) GetMessage() string { + if m != nil { + return m.Message + } + return "" +} + type SignResponse struct { Cert []byte `protobuf:"bytes,1,opt,name=cert,proto3" json:"cert,omitempty"` } @@ -155,18 +162,19 @@ var _Signer_serviceDesc = grpc.ServiceDesc{ func init() { proto1.RegisterFile("proto/signer.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 197 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0xce, 0xb1, 0x6e, 0x83, 0x30, - 0x10, 0x06, 0xe0, 0xd2, 0x52, 0x86, 0x83, 0xa1, 0xba, 0x2e, 0x88, 0xa5, 0xc8, 0x13, 0x93, 0x51, - 0xe9, 0xc8, 0x5b, 0x40, 0xbb, 0x55, 0x8a, 0x20, 0xb9, 0x58, 0x56, 0xc0, 0x26, 0xd8, 0x44, 0xca, - 0xdb, 0x47, 0xd8, 0x41, 0x4a, 0xa6, 0xfb, 0xef, 0xf4, 0xeb, 0xd3, 0x01, 0x4e, 0xb3, 0xb6, 0xba, - 0x34, 0x52, 0x28, 0x9a, 0xb9, 0x5b, 0xf0, 0xdd, 0x8d, 0xec, 0x4b, 0x68, 0x2d, 0x06, 0x2a, 0xdd, - 0xd6, 0x2f, 0xc7, 0xd2, 0xca, 0x91, 0x8c, 0xed, 0xc6, 0xc9, 0xf7, 0xd8, 0x3f, 0xc4, 0xad, 0x14, - 0xaa, 0xa1, 0xf3, 0x42, 0xc6, 0xe2, 0x07, 0xbc, 0x9d, 0xe8, 0x9a, 0x06, 0x79, 0x50, 0x24, 0xcd, - 0x1a, 0xb1, 0x86, 0xf8, 0xd2, 0x0d, 0xf2, 0xb0, 0x5b, 0x94, 0x95, 0x43, 0xfa, 0x9a, 0x07, 0x45, - 0x5c, 0x65, 0xdc, 0xbb, 0x7c, 0x73, 0xf9, 0xef, 0xe6, 0x36, 0xe0, 0xea, 0x7f, 0x6b, 0x9b, 0x31, - 0x48, 0xbc, 0x6e, 0x26, 0xad, 0x0c, 0x21, 0x42, 0xb8, 0xa7, 0xd9, 0xde, 0x7d, 0x97, 0xab, 0x1a, - 0xa2, 0xd6, 0x7d, 0x8e, 0xdf, 0x10, 0xae, 0x09, 0xd1, 0xb3, 0xfc, 0xe1, 0xb1, 0xec, 0xf3, 0xe9, - 0xe6, 0x39, 0xf6, 0xd2, 0x47, 0xee, 0xfa, 0x73, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x4b, 0x30, 0x72, - 0x63, 0x03, 0x01, 0x00, 0x00, + // 211 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8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53, 0x4c, 0x9f, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xb0, 0xa3, 0xfe, 0x98, 0x1d, + 0x01, 0x00, 0x00, } diff --git a/proto/signer.proto b/proto/signer.proto index 83f180d..7770be8 100644 --- a/proto/signer.proto +++ b/proto/signer.proto @@ -6,6 +6,7 @@ import "google/protobuf/timestamp.proto"; message SignRequest { bytes key = 1; google.protobuf.Timestamp valid_until = 2; + string message = 3; } message SignResponse { -- cgit v1.2.3