go-ricochet/wire/auth/auth_message.go

120 lines
3.0 KiB
Go
Raw Permalink Normal View History

// Code generated by protoc-gen-go.
// source: AuthHiddenService.proto
// DO NOT EDIT!
/*
Package Protocol_Data_AuthHiddenService is a generated protocol buffer package.
It is generated from these files:
AuthHiddenService.proto
It has these top-level messages:
Packet
Proof
Result
*/
package Protocol_Data_AuthHiddenService
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
2017-05-02 23:33:51 +00:00
import Protocol_Data_Control "github.com/s-rah/go-ricochet/wire/control"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
type Packet struct {
Proof *Proof `protobuf:"bytes,1,opt,name=proof" json:"proof,omitempty"`
Result *Result `protobuf:"bytes,2,opt,name=result" json:"result,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Packet) Reset() { *m = Packet{} }
func (m *Packet) String() string { return proto.CompactTextString(m) }
func (*Packet) ProtoMessage() {}
func (m *Packet) GetProof() *Proof {
if m != nil {
return m.Proof
}
return nil
}
func (m *Packet) GetResult() *Result {
if m != nil {
return m.Result
}
return nil
}
type Proof struct {
PublicKey []byte `protobuf:"bytes,1,opt,name=public_key" json:"public_key,omitempty"`
Signature []byte `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Proof) Reset() { *m = Proof{} }
func (m *Proof) String() string { return proto.CompactTextString(m) }
func (*Proof) ProtoMessage() {}
func (m *Proof) GetPublicKey() []byte {
if m != nil {
return m.PublicKey
}
return nil
}
func (m *Proof) GetSignature() []byte {
if m != nil {
return m.Signature
}
return nil
}
type Result struct {
Accepted *bool `protobuf:"varint,1,req,name=accepted" json:"accepted,omitempty"`
IsKnownContact *bool `protobuf:"varint,2,opt,name=is_known_contact" json:"is_known_contact,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Result) Reset() { *m = Result{} }
func (m *Result) String() string { return proto.CompactTextString(m) }
func (*Result) ProtoMessage() {}
func (m *Result) GetAccepted() bool {
if m != nil && m.Accepted != nil {
return *m.Accepted
}
return false
}
func (m *Result) GetIsKnownContact() bool {
if m != nil && m.IsKnownContact != nil {
return *m.IsKnownContact
}
return false
}
var E_ClientCookie = &proto.ExtensionDesc{
ExtendedType: (*Protocol_Data_Control.OpenChannel)(nil),
ExtensionType: ([]byte)(nil),
Field: 7200,
Name: "Protocol.Data.AuthHiddenService.client_cookie",
Tag: "bytes,7200,opt,name=client_cookie",
}
var E_ServerCookie = &proto.ExtensionDesc{
ExtendedType: (*Protocol_Data_Control.ChannelResult)(nil),
ExtensionType: ([]byte)(nil),
Field: 7200,
Name: "Protocol.Data.AuthHiddenService.server_cookie",
Tag: "bytes,7200,opt,name=server_cookie",
}
func init() {
proto.RegisterExtension(E_ClientCookie)
proto.RegisterExtension(E_ServerCookie)
}