handshake/api/v1/handshake.pb.go
Vincent Batts 4c8aa9909f
initial handshake
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2020-10-12 15:37:06 -04:00

250 lines
8.3 KiB
Go

// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: git.thisco.de/vbatts/handshake/api/v1/handshake.proto
package v1
import (
context "context"
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type Request struct {
ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
Pubkey string `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Request) Reset() { *m = Request{} }
func (m *Request) String() string { return proto.CompactTextString(m) }
func (*Request) ProtoMessage() {}
func (*Request) Descriptor() ([]byte, []int) {
return fileDescriptor_7562d4bb73541a2a, []int{0}
}
func (m *Request) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Request.Unmarshal(m, b)
}
func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Request.Marshal(b, m, deterministic)
}
func (m *Request) XXX_Merge(src proto.Message) {
xxx_messageInfo_Request.Merge(m, src)
}
func (m *Request) XXX_Size() int {
return xxx_messageInfo_Request.Size(m)
}
func (m *Request) XXX_DiscardUnknown() {
xxx_messageInfo_Request.DiscardUnknown(m)
}
var xxx_messageInfo_Request proto.InternalMessageInfo
func (m *Request) GetID() string {
if m != nil {
return m.ID
}
return ""
}
func (m *Request) GetMsg() string {
if m != nil {
return m.Msg
}
return ""
}
func (m *Request) GetPubkey() string {
if m != nil {
return m.Pubkey
}
return ""
}
type Response struct {
ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
Pubkey string `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
Challenge string `protobuf:"bytes,4,opt,name=challenge,proto3" json:"challenge,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Response) Reset() { *m = Response{} }
func (m *Response) String() string { return proto.CompactTextString(m) }
func (*Response) ProtoMessage() {}
func (*Response) Descriptor() ([]byte, []int) {
return fileDescriptor_7562d4bb73541a2a, []int{1}
}
func (m *Response) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Response.Unmarshal(m, b)
}
func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Response.Marshal(b, m, deterministic)
}
func (m *Response) XXX_Merge(src proto.Message) {
xxx_messageInfo_Response.Merge(m, src)
}
func (m *Response) XXX_Size() int {
return xxx_messageInfo_Response.Size(m)
}
func (m *Response) XXX_DiscardUnknown() {
xxx_messageInfo_Response.DiscardUnknown(m)
}
var xxx_messageInfo_Response proto.InternalMessageInfo
func (m *Response) GetID() string {
if m != nil {
return m.ID
}
return ""
}
func (m *Response) GetMsg() string {
if m != nil {
return m.Msg
}
return ""
}
func (m *Response) GetPubkey() string {
if m != nil {
return m.Pubkey
}
return ""
}
func (m *Response) GetChallenge() string {
if m != nil {
return m.Challenge
}
return ""
}
func init() {
proto.RegisterType((*Request)(nil), "de.thisco.vbatts.handshake.v1.Request")
proto.RegisterType((*Response)(nil), "de.thisco.vbatts.handshake.v1.Response")
}
func init() {
proto.RegisterFile("git.thisco.de/vbatts/handshake/api/v1/handshake.proto", fileDescriptor_7562d4bb73541a2a)
}
var fileDescriptor_7562d4bb73541a2a = []byte{
// 243 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x4d, 0xcf, 0x2c, 0xd1,
0x2b, 0xc9, 0xc8, 0x2c, 0x4e, 0xce, 0xd7, 0x4b, 0x49, 0xd5, 0x2f, 0x4b, 0x4a, 0x2c, 0x29, 0x29,
0xd6, 0xcf, 0x48, 0xcc, 0x4b, 0x29, 0xce, 0x48, 0xcc, 0x4e, 0xd5, 0x4f, 0x2c, 0xc8, 0xd4, 0x2f,
0x33, 0x44, 0x08, 0xe8, 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0xc9, 0xa6, 0xa4, 0xc2, 0x74, 0x41,
0xb4, 0xe8, 0x21, 0x54, 0x94, 0x19, 0x4a, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0x55, 0xea, 0x83,
0x58, 0x10, 0x4d, 0x4a, 0xde, 0x5c, 0xec, 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25, 0x42, 0x62,
0x5c, 0x4c, 0x99, 0x29, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x4e, 0x6c, 0x8f, 0xee, 0xc9, 0x33,
0x79, 0xba, 0x04, 0x31, 0x65, 0xa6, 0x08, 0x09, 0x70, 0x31, 0xe7, 0x16, 0xa7, 0x4b, 0x30, 0x81,
0x24, 0x82, 0x40, 0x4c, 0x21, 0x31, 0x2e, 0xb6, 0x82, 0xd2, 0xa4, 0xec, 0xd4, 0x4a, 0x09, 0x66,
0xb0, 0x20, 0x94, 0xa7, 0x94, 0xc5, 0xc5, 0x11, 0x94, 0x5a, 0x5c, 0x90, 0x9f, 0x57, 0x9c, 0x4a,
0xb9, 0x69, 0x42, 0x32, 0x5c, 0x9c, 0xc9, 0x19, 0x89, 0x39, 0x39, 0xa9, 0x79, 0xe9, 0xa9, 0x12,
0x2c, 0x60, 0x29, 0x84, 0x80, 0x51, 0x2a, 0x17, 0xa7, 0x07, 0xcc, 0x7b, 0x42, 0x11, 0x5c, 0xac,
0x1e, 0xa9, 0x39, 0x39, 0xf9, 0x42, 0x6a, 0x7a, 0x78, 0x03, 0x41, 0x0f, 0xea, 0x57, 0x29, 0x75,
0x82, 0xea, 0x20, 0xde, 0x70, 0xd2, 0x8a, 0xd2, 0x20, 0x2a, 0x36, 0xac, 0xcb, 0x0c, 0x23, 0x18,
0x92, 0xd8, 0xc0, 0x81, 0x6a, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xae, 0xe7, 0x8c, 0x19, 0xc2,
0x01, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// HandshakeClient is the client API for Handshake service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type HandshakeClient interface {
Hello(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
type handshakeClient struct {
cc *grpc.ClientConn
}
func NewHandshakeClient(cc *grpc.ClientConn) HandshakeClient {
return &handshakeClient{cc}
}
func (c *handshakeClient) Hello(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/de.thisco.vbatts.handshake.v1.Handshake/Hello", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// HandshakeServer is the server API for Handshake service.
type HandshakeServer interface {
Hello(context.Context, *Request) (*Response, error)
}
// UnimplementedHandshakeServer can be embedded to have forward compatible implementations.
type UnimplementedHandshakeServer struct {
}
func (*UnimplementedHandshakeServer) Hello(ctx context.Context, req *Request) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method Hello not implemented")
}
func RegisterHandshakeServer(s *grpc.Server, srv HandshakeServer) {
s.RegisterService(&_Handshake_serviceDesc, srv)
}
func _Handshake_Hello_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(HandshakeServer).Hello(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/de.thisco.vbatts.handshake.v1.Handshake/Hello",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(HandshakeServer).Hello(ctx, req.(*Request))
}
return interceptor(ctx, in, info, handler)
}
var _Handshake_serviceDesc = grpc.ServiceDesc{
ServiceName: "de.thisco.vbatts.handshake.v1.Handshake",
HandlerType: (*HandshakeServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Hello",
Handler: _Handshake_Hello_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "git.thisco.de/vbatts/handshake/api/v1/handshake.proto",
}