add hpeer for non-node peers

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
Evan Hazlett 2019-10-07 10:06:12 -04:00
parent 9b07492180
commit 332378e3ff
No known key found for this signature in database
GPG key ID: A519480096146526
20 changed files with 1348 additions and 195 deletions

View file

@ -82,7 +82,7 @@ func (m *Master) GetRedisURL() string {
return ""
}
type ConnectRequest struct {
type JoinRequest struct {
ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
ClusterKey string `protobuf:"bytes,2,opt,name=cluster_key,json=clusterKey,proto3" json:"cluster_key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
@ -90,11 +90,94 @@ type ConnectRequest struct {
XXX_sizecache int32 `json:"-"`
}
func (m *JoinRequest) Reset() { *m = JoinRequest{} }
func (m *JoinRequest) String() string { return proto.CompactTextString(m) }
func (*JoinRequest) ProtoMessage() {}
func (*JoinRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b6184fc395da86b1, []int{1}
}
func (m *JoinRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_JoinRequest.Unmarshal(m, b)
}
func (m *JoinRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_JoinRequest.Marshal(b, m, deterministic)
}
func (m *JoinRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_JoinRequest.Merge(m, src)
}
func (m *JoinRequest) XXX_Size() int {
return xxx_messageInfo_JoinRequest.Size(m)
}
func (m *JoinRequest) XXX_DiscardUnknown() {
xxx_messageInfo_JoinRequest.DiscardUnknown(m)
}
var xxx_messageInfo_JoinRequest proto.InternalMessageInfo
func (m *JoinRequest) GetID() string {
if m != nil {
return m.ID
}
return ""
}
func (m *JoinRequest) GetClusterKey() string {
if m != nil {
return m.ClusterKey
}
return ""
}
type JoinResponse struct {
Master *Master `protobuf:"bytes,1,opt,name=master,proto3" json:"master,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *JoinResponse) Reset() { *m = JoinResponse{} }
func (m *JoinResponse) String() string { return proto.CompactTextString(m) }
func (*JoinResponse) ProtoMessage() {}
func (*JoinResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b6184fc395da86b1, []int{2}
}
func (m *JoinResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_JoinResponse.Unmarshal(m, b)
}
func (m *JoinResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_JoinResponse.Marshal(b, m, deterministic)
}
func (m *JoinResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_JoinResponse.Merge(m, src)
}
func (m *JoinResponse) XXX_Size() int {
return xxx_messageInfo_JoinResponse.Size(m)
}
func (m *JoinResponse) XXX_DiscardUnknown() {
xxx_messageInfo_JoinResponse.DiscardUnknown(m)
}
var xxx_messageInfo_JoinResponse proto.InternalMessageInfo
func (m *JoinResponse) GetMaster() *Master {
if m != nil {
return m.Master
}
return nil
}
type ConnectRequest struct {
ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConnectRequest) Reset() { *m = ConnectRequest{} }
func (m *ConnectRequest) String() string { return proto.CompactTextString(m) }
func (*ConnectRequest) ProtoMessage() {}
func (*ConnectRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b6184fc395da86b1, []int{1}
return fileDescriptor_b6184fc395da86b1, []int{3}
}
func (m *ConnectRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConnectRequest.Unmarshal(m, b)
@ -121,15 +204,11 @@ func (m *ConnectRequest) GetID() string {
return ""
}
func (m *ConnectRequest) GetClusterKey() string {
if m != nil {
return m.ClusterKey
}
return ""
}
type ConnectResponse struct {
Master *Master `protobuf:"bytes,1,opt,name=master,proto3" json:"master,omitempty"`
KeyPair *KeyPair `protobuf:"bytes,1,opt,name=keypair,proto3" json:"keypair,omitempty"`
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
Peers []*Peer `protobuf:"bytes,3,rep,name=peers,proto3" json:"peers,omitempty"`
DNS []string `protobuf:"bytes,4,rep,name=dns,proto3" json:"dns,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
@ -139,7 +218,7 @@ func (m *ConnectResponse) Reset() { *m = ConnectResponse{} }
func (m *ConnectResponse) String() string { return proto.CompactTextString(m) }
func (*ConnectResponse) ProtoMessage() {}
func (*ConnectResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b6184fc395da86b1, []int{2}
return fileDescriptor_b6184fc395da86b1, []int{4}
}
func (m *ConnectResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConnectResponse.Unmarshal(m, b)
@ -159,9 +238,174 @@ func (m *ConnectResponse) XXX_DiscardUnknown() {
var xxx_messageInfo_ConnectResponse proto.InternalMessageInfo
func (m *ConnectResponse) GetMaster() *Master {
func (m *ConnectResponse) GetKeyPair() *KeyPair {
if m != nil {
return m.Master
return m.KeyPair
}
return nil
}
func (m *ConnectResponse) GetAddress() string {
if m != nil {
return m.Address
}
return ""
}
func (m *ConnectResponse) GetPeers() []*Peer {
if m != nil {
return m.Peers
}
return nil
}
func (m *ConnectResponse) GetDNS() []string {
if m != nil {
return m.DNS
}
return nil
}
type AuthorizePeerRequest struct {
ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AuthorizePeerRequest) Reset() { *m = AuthorizePeerRequest{} }
func (m *AuthorizePeerRequest) String() string { return proto.CompactTextString(m) }
func (*AuthorizePeerRequest) ProtoMessage() {}
func (*AuthorizePeerRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b6184fc395da86b1, []int{5}
}
func (m *AuthorizePeerRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AuthorizePeerRequest.Unmarshal(m, b)
}
func (m *AuthorizePeerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AuthorizePeerRequest.Marshal(b, m, deterministic)
}
func (m *AuthorizePeerRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_AuthorizePeerRequest.Merge(m, src)
}
func (m *AuthorizePeerRequest) XXX_Size() int {
return xxx_messageInfo_AuthorizePeerRequest.Size(m)
}
func (m *AuthorizePeerRequest) XXX_DiscardUnknown() {
xxx_messageInfo_AuthorizePeerRequest.DiscardUnknown(m)
}
var xxx_messageInfo_AuthorizePeerRequest proto.InternalMessageInfo
func (m *AuthorizePeerRequest) GetID() string {
if m != nil {
return m.ID
}
return ""
}
type DeauthorizePeerRequest struct {
ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeauthorizePeerRequest) Reset() { *m = DeauthorizePeerRequest{} }
func (m *DeauthorizePeerRequest) String() string { return proto.CompactTextString(m) }
func (*DeauthorizePeerRequest) ProtoMessage() {}
func (*DeauthorizePeerRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b6184fc395da86b1, []int{6}
}
func (m *DeauthorizePeerRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeauthorizePeerRequest.Unmarshal(m, b)
}
func (m *DeauthorizePeerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeauthorizePeerRequest.Marshal(b, m, deterministic)
}
func (m *DeauthorizePeerRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeauthorizePeerRequest.Merge(m, src)
}
func (m *DeauthorizePeerRequest) XXX_Size() int {
return xxx_messageInfo_DeauthorizePeerRequest.Size(m)
}
func (m *DeauthorizePeerRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeauthorizePeerRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeauthorizePeerRequest proto.InternalMessageInfo
func (m *DeauthorizePeerRequest) GetID() string {
if m != nil {
return m.ID
}
return ""
}
type AuthorizedPeersRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AuthorizedPeersRequest) Reset() { *m = AuthorizedPeersRequest{} }
func (m *AuthorizedPeersRequest) String() string { return proto.CompactTextString(m) }
func (*AuthorizedPeersRequest) ProtoMessage() {}
func (*AuthorizedPeersRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b6184fc395da86b1, []int{7}
}
func (m *AuthorizedPeersRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AuthorizedPeersRequest.Unmarshal(m, b)
}
func (m *AuthorizedPeersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AuthorizedPeersRequest.Marshal(b, m, deterministic)
}
func (m *AuthorizedPeersRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_AuthorizedPeersRequest.Merge(m, src)
}
func (m *AuthorizedPeersRequest) XXX_Size() int {
return xxx_messageInfo_AuthorizedPeersRequest.Size(m)
}
func (m *AuthorizedPeersRequest) XXX_DiscardUnknown() {
xxx_messageInfo_AuthorizedPeersRequest.DiscardUnknown(m)
}
var xxx_messageInfo_AuthorizedPeersRequest proto.InternalMessageInfo
type AuthorizedPeersResponse struct {
IDs []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AuthorizedPeersResponse) Reset() { *m = AuthorizedPeersResponse{} }
func (m *AuthorizedPeersResponse) String() string { return proto.CompactTextString(m) }
func (*AuthorizedPeersResponse) ProtoMessage() {}
func (*AuthorizedPeersResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b6184fc395da86b1, []int{8}
}
func (m *AuthorizedPeersResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AuthorizedPeersResponse.Unmarshal(m, b)
}
func (m *AuthorizedPeersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AuthorizedPeersResponse.Marshal(b, m, deterministic)
}
func (m *AuthorizedPeersResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_AuthorizedPeersResponse.Merge(m, src)
}
func (m *AuthorizedPeersResponse) XXX_Size() int {
return xxx_messageInfo_AuthorizedPeersResponse.Size(m)
}
func (m *AuthorizedPeersResponse) XXX_DiscardUnknown() {
xxx_messageInfo_AuthorizedPeersResponse.DiscardUnknown(m)
}
var xxx_messageInfo_AuthorizedPeersResponse proto.InternalMessageInfo
func (m *AuthorizedPeersResponse) GetIDs() []string {
if m != nil {
return m.IDs
}
return nil
}
@ -178,7 +422,7 @@ func (m *KeyPair) Reset() { *m = KeyPair{} }
func (m *KeyPair) String() string { return proto.CompactTextString(m) }
func (*KeyPair) ProtoMessage() {}
func (*KeyPair) Descriptor() ([]byte, []int) {
return fileDescriptor_b6184fc395da86b1, []int{3}
return fileDescriptor_b6184fc395da86b1, []int{9}
}
func (m *KeyPair) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KeyPair.Unmarshal(m, b)
@ -229,7 +473,7 @@ func (m *Node) Reset() { *m = Node{} }
func (m *Node) String() string { return proto.CompactTextString(m) }
func (*Node) ProtoMessage() {}
func (*Node) Descriptor() ([]byte, []int) {
return fileDescriptor_b6184fc395da86b1, []int{4}
return fileDescriptor_b6184fc395da86b1, []int{10}
}
func (m *Node) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Node.Unmarshal(m, b)
@ -308,7 +552,7 @@ func (m *NodesRequest) Reset() { *m = NodesRequest{} }
func (m *NodesRequest) String() string { return proto.CompactTextString(m) }
func (*NodesRequest) ProtoMessage() {}
func (*NodesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b6184fc395da86b1, []int{5}
return fileDescriptor_b6184fc395da86b1, []int{11}
}
func (m *NodesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NodesRequest.Unmarshal(m, b)
@ -339,7 +583,7 @@ func (m *NodesResponse) Reset() { *m = NodesResponse{} }
func (m *NodesResponse) String() string { return proto.CompactTextString(m) }
func (*NodesResponse) ProtoMessage() {}
func (*NodesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b6184fc395da86b1, []int{6}
return fileDescriptor_b6184fc395da86b1, []int{12}
}
func (m *NodesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NodesResponse.Unmarshal(m, b)
@ -380,7 +624,7 @@ func (m *Peer) Reset() { *m = Peer{} }
func (m *Peer) String() string { return proto.CompactTextString(m) }
func (*Peer) ProtoMessage() {}
func (*Peer) Descriptor() ([]byte, []int) {
return fileDescriptor_b6184fc395da86b1, []int{7}
return fileDescriptor_b6184fc395da86b1, []int{13}
}
func (m *Peer) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Peer.Unmarshal(m, b)
@ -438,7 +682,7 @@ func (m *PeersRequest) Reset() { *m = PeersRequest{} }
func (m *PeersRequest) String() string { return proto.CompactTextString(m) }
func (*PeersRequest) ProtoMessage() {}
func (*PeersRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b6184fc395da86b1, []int{8}
return fileDescriptor_b6184fc395da86b1, []int{14}
}
func (m *PeersRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PeersRequest.Unmarshal(m, b)
@ -469,7 +713,7 @@ func (m *PeersResponse) Reset() { *m = PeersResponse{} }
func (m *PeersResponse) String() string { return proto.CompactTextString(m) }
func (*PeersResponse) ProtoMessage() {}
func (*PeersResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b6184fc395da86b1, []int{9}
return fileDescriptor_b6184fc395da86b1, []int{15}
}
func (m *PeersResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PeersResponse.Unmarshal(m, b)
@ -508,7 +752,7 @@ func (m *Route) Reset() { *m = Route{} }
func (m *Route) String() string { return proto.CompactTextString(m) }
func (*Route) ProtoMessage() {}
func (*Route) Descriptor() ([]byte, []int) {
return fileDescriptor_b6184fc395da86b1, []int{10}
return fileDescriptor_b6184fc395da86b1, []int{16}
}
func (m *Route) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Route.Unmarshal(m, b)
@ -554,7 +798,7 @@ func (m *CreateRouteRequest) Reset() { *m = CreateRouteRequest{} }
func (m *CreateRouteRequest) String() string { return proto.CompactTextString(m) }
func (*CreateRouteRequest) ProtoMessage() {}
func (*CreateRouteRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b6184fc395da86b1, []int{11}
return fileDescriptor_b6184fc395da86b1, []int{17}
}
func (m *CreateRouteRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateRouteRequest.Unmarshal(m, b)
@ -599,7 +843,7 @@ func (m *DeleteRouteRequest) Reset() { *m = DeleteRouteRequest{} }
func (m *DeleteRouteRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteRouteRequest) ProtoMessage() {}
func (*DeleteRouteRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b6184fc395da86b1, []int{12}
return fileDescriptor_b6184fc395da86b1, []int{18}
}
func (m *DeleteRouteRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteRouteRequest.Unmarshal(m, b)
@ -636,7 +880,7 @@ func (m *RoutesRequest) Reset() { *m = RoutesRequest{} }
func (m *RoutesRequest) String() string { return proto.CompactTextString(m) }
func (*RoutesRequest) ProtoMessage() {}
func (*RoutesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b6184fc395da86b1, []int{13}
return fileDescriptor_b6184fc395da86b1, []int{19}
}
func (m *RoutesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RoutesRequest.Unmarshal(m, b)
@ -667,7 +911,7 @@ func (m *RoutesResponse) Reset() { *m = RoutesResponse{} }
func (m *RoutesResponse) String() string { return proto.CompactTextString(m) }
func (*RoutesResponse) ProtoMessage() {}
func (*RoutesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b6184fc395da86b1, []int{14}
return fileDescriptor_b6184fc395da86b1, []int{20}
}
func (m *RoutesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RoutesResponse.Unmarshal(m, b)
@ -696,8 +940,14 @@ func (m *RoutesResponse) GetRoutes() []*Route {
func init() {
proto.RegisterType((*Master)(nil), "io.stellarproject.heimdall.api.v1.Master")
proto.RegisterType((*JoinRequest)(nil), "io.stellarproject.heimdall.api.v1.JoinRequest")
proto.RegisterType((*JoinResponse)(nil), "io.stellarproject.heimdall.api.v1.JoinResponse")
proto.RegisterType((*ConnectRequest)(nil), "io.stellarproject.heimdall.api.v1.ConnectRequest")
proto.RegisterType((*ConnectResponse)(nil), "io.stellarproject.heimdall.api.v1.ConnectResponse")
proto.RegisterType((*AuthorizePeerRequest)(nil), "io.stellarproject.heimdall.api.v1.AuthorizePeerRequest")
proto.RegisterType((*DeauthorizePeerRequest)(nil), "io.stellarproject.heimdall.api.v1.DeauthorizePeerRequest")
proto.RegisterType((*AuthorizedPeersRequest)(nil), "io.stellarproject.heimdall.api.v1.AuthorizedPeersRequest")
proto.RegisterType((*AuthorizedPeersResponse)(nil), "io.stellarproject.heimdall.api.v1.AuthorizedPeersResponse")
proto.RegisterType((*KeyPair)(nil), "io.stellarproject.heimdall.api.v1.KeyPair")
proto.RegisterType((*Node)(nil), "io.stellarproject.heimdall.api.v1.Node")
proto.RegisterType((*NodesRequest)(nil), "io.stellarproject.heimdall.api.v1.NodesRequest")
@ -717,59 +967,71 @@ func init() {
}
var fileDescriptor_b6184fc395da86b1 = []byte{
// 831 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00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 0xa2, 0x4f, 0x9a, 0x28, 0xbe, 0x33, 0x07,
0x83, 0x47, 0x77, 0x5e, 0x85, 0xe7, 0xea, 0xe7, 0x4d, 0xb1, 0x6f, 0x35, 0xb8, 0x11, 0xfb, 0xdd,
0x81, 0xb8, 0x97, 0xfd, 0x0a, 0x3a, 0xfa, 0x31, 0x41, 0x61, 0xc3, 0x57, 0xa3, 0x36, 0xea, 0x59,
0x73, 0x80, 0xf1, 0xe9, 0x0a, 0x3a, 0xfa, 0x5e, 0x36, 0xda, 0x6b, 0xfb, 0x46, 0x37, 0xda, 0x6b,
0xe7, 0xca, 0x9f, 0x05, 0x3f, 0x3c, 0x6d, 0xfc, 0x07, 0xe5, 0xb3, 0xd5, 0x70, 0x6a, 0x6b, 0x5f,
0x3e, 0xfe, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x46, 0x38, 0x83, 0x35, 0xd7, 0x08, 0x00, 0x00,
// 1014 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x5d, 0x6f, 0xe3, 0x44,
0x17, 0x7e, 0x9d, 0xef, 0x1c, 0x27, 0x8d, 0x34, 0x5a, 0xf5, 0xf5, 0x06, 0x21, 0x17, 0xef, 0x05,
0x59, 0xb4, 0xb2, 0x9b, 0x00, 0xe2, 0x4b, 0x8b, 0x68, 0x9a, 0xdd, 0xc5, 0x14, 0xaa, 0xec, 0x2c,
0x7b, 0x83, 0x56, 0x0a, 0x6e, 0x3c, 0xa4, 0x6e, 0x9d, 0xcc, 0x60, 0x4f, 0x5a, 0x85, 0x1b, 0x6e,
0xb9, 0xe4, 0xff, 0x20, 0x71, 0x0d, 0xff, 0x80, 0xab, 0x20, 0xe5, 0x97, 0xa0, 0x19, 0x8f, 0x4d,
0xd2, 0x36, 0xaa, 0xbb, 0xec, 0x5d, 0xe6, 0xcc, 0x79, 0xce, 0x39, 0x7e, 0xce, 0x73, 0x8e,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48, 0x9b, 0x6f, 0x8e, 0x76, 0xef, 0x2e, 0x10, 0xf5, 0x00, 0xdf, 0x43, 0x73, 0x63,
0xf5, 0xa2, 0x8f, 0x72, 0x04, 0xb9, 0x69, 0x59, 0xb7, 0x77, 0xaf, 0x8d, 0xea, 0x13, 0xf1, 0x91,
0x80, 0x7c, 0x68, 0x5d, 0x59, 0xd6, 0xe8, 0x93, 0x1c, 0x39, 0x6e, 0x5e, 0xf0, 0x5b, 0xb3, 0xfc,
0xa2, 0x41, 0xeb, 0xca, 0x1e, 0xcf, 0x95, 0xe6, 0xe6, 0xb7, 0x42, 0xfb, 0xd3, 0xd7, 0x81, 0x2a,
0x4a, 0x27, 0x50, 0x12, 0x5f, 0x09, 0xc8, 0xce, 0x11, 0x63, 0xed, 0xb3, 0xa4, 0xed, 0xe4, 0xf6,
0x57, 0x89, 0xa6, 0x50, 0x49, 0xe4, 0x88, 0xf6, 0xf3, 0xca, 0x2e, 0x7b, 0xc0, 0xee, 0x1d, 0x10,
0x2a, 0xdd, 0x2b, 0xd0, 0xd7, 0x66, 0x12, 0x7d, 0x98, 0x47, 0x6d, 0xd7, 0x66, 0x78, 0x6b, 0x03,
0x5f, 0x81, 0xbe, 0x36, 0x9c, 0xb9, 0xa2, 0x5f, 0x1f, 0xe6, 0xad, 0xd1, 0xcf, 0xa0, 0x2c, 0x5f,
0x04, 0xc8, 0xc9, 0xb9, 0xf1, 0x33, 0xa2, 0xf6, 0xf3, 0x03, 0x14, 0x4f, 0x67, 0x50, 0x4e, 0xf4,
0xe7, 0xe4, 0x5c, 0x9e, 0x77, 0xca, 0xb5, 0xa1, 0xb5, 0xbe, 0xfd, 0xdd, 0xa3, 0xdc, 0xff, 0x06,
0x3e, 0xbb, 0xe8, 0x9e, 0x54, 0x24, 0x2f, 0xef, 0xff, 0x13, 0x00, 0x00, 0xff, 0xff, 0xcd, 0x85,
0x12, 0x11, 0x44, 0x0c, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@ -785,6 +1047,10 @@ const _ = grpc.SupportPackageIsVersion4
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type HeimdallClient interface {
Connect(ctx context.Context, in *ConnectRequest, opts ...grpc.CallOption) (*ConnectResponse, error)
AuthorizePeer(ctx context.Context, in *AuthorizePeerRequest, opts ...grpc.CallOption) (*types.Empty, error)
DeauthorizePeer(ctx context.Context, in *DeauthorizePeerRequest, opts ...grpc.CallOption) (*types.Empty, error)
AuthorizedPeers(ctx context.Context, in *AuthorizedPeersRequest, opts ...grpc.CallOption) (*AuthorizedPeersResponse, error)
Join(ctx context.Context, in *JoinRequest, opts ...grpc.CallOption) (*JoinResponse, error)
Routes(ctx context.Context, in *RoutesRequest, opts ...grpc.CallOption) (*RoutesResponse, error)
CreateRoute(ctx context.Context, in *CreateRouteRequest, opts ...grpc.CallOption) (*types.Empty, error)
DeleteRoute(ctx context.Context, in *DeleteRouteRequest, opts ...grpc.CallOption) (*types.Empty, error)
@ -809,6 +1075,42 @@ func (c *heimdallClient) Connect(ctx context.Context, in *ConnectRequest, opts .
return out, nil
}
func (c *heimdallClient) AuthorizePeer(ctx context.Context, in *AuthorizePeerRequest, opts ...grpc.CallOption) (*types.Empty, error) {
out := new(types.Empty)
err := c.cc.Invoke(ctx, "/io.stellarproject.heimdall.api.v1.Heimdall/AuthorizePeer", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *heimdallClient) DeauthorizePeer(ctx context.Context, in *DeauthorizePeerRequest, opts ...grpc.CallOption) (*types.Empty, error) {
out := new(types.Empty)
err := c.cc.Invoke(ctx, "/io.stellarproject.heimdall.api.v1.Heimdall/DeauthorizePeer", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *heimdallClient) AuthorizedPeers(ctx context.Context, in *AuthorizedPeersRequest, opts ...grpc.CallOption) (*AuthorizedPeersResponse, error) {
out := new(AuthorizedPeersResponse)
err := c.cc.Invoke(ctx, "/io.stellarproject.heimdall.api.v1.Heimdall/AuthorizedPeers", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *heimdallClient) Join(ctx context.Context, in *JoinRequest, opts ...grpc.CallOption) (*JoinResponse, error) {
out := new(JoinResponse)
err := c.cc.Invoke(ctx, "/io.stellarproject.heimdall.api.v1.Heimdall/Join", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *heimdallClient) Routes(ctx context.Context, in *RoutesRequest, opts ...grpc.CallOption) (*RoutesResponse, error) {
out := new(RoutesResponse)
err := c.cc.Invoke(ctx, "/io.stellarproject.heimdall.api.v1.Heimdall/Routes", in, out, opts...)
@ -857,6 +1159,10 @@ func (c *heimdallClient) Peers(ctx context.Context, in *PeersRequest, opts ...gr
// HeimdallServer is the server API for Heimdall service.
type HeimdallServer interface {
Connect(context.Context, *ConnectRequest) (*ConnectResponse, error)
AuthorizePeer(context.Context, *AuthorizePeerRequest) (*types.Empty, error)
DeauthorizePeer(context.Context, *DeauthorizePeerRequest) (*types.Empty, error)
AuthorizedPeers(context.Context, *AuthorizedPeersRequest) (*AuthorizedPeersResponse, error)
Join(context.Context, *JoinRequest) (*JoinResponse, error)
Routes(context.Context, *RoutesRequest) (*RoutesResponse, error)
CreateRoute(context.Context, *CreateRouteRequest) (*types.Empty, error)
DeleteRoute(context.Context, *DeleteRouteRequest) (*types.Empty, error)
@ -871,6 +1177,18 @@ type UnimplementedHeimdallServer struct {
func (*UnimplementedHeimdallServer) Connect(ctx context.Context, req *ConnectRequest) (*ConnectResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Connect not implemented")
}
func (*UnimplementedHeimdallServer) AuthorizePeer(ctx context.Context, req *AuthorizePeerRequest) (*types.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method AuthorizePeer not implemented")
}
func (*UnimplementedHeimdallServer) DeauthorizePeer(ctx context.Context, req *DeauthorizePeerRequest) (*types.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeauthorizePeer not implemented")
}
func (*UnimplementedHeimdallServer) AuthorizedPeers(ctx context.Context, req *AuthorizedPeersRequest) (*AuthorizedPeersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AuthorizedPeers not implemented")
}
func (*UnimplementedHeimdallServer) Join(ctx context.Context, req *JoinRequest) (*JoinResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Join not implemented")
}
func (*UnimplementedHeimdallServer) Routes(ctx context.Context, req *RoutesRequest) (*RoutesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Routes not implemented")
}
@ -909,6 +1227,78 @@ func _Heimdall_Connect_Handler(srv interface{}, ctx context.Context, dec func(in
return interceptor(ctx, in, info, handler)
}
func _Heimdall_AuthorizePeer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AuthorizePeerRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(HeimdallServer).AuthorizePeer(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/io.stellarproject.heimdall.api.v1.Heimdall/AuthorizePeer",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(HeimdallServer).AuthorizePeer(ctx, req.(*AuthorizePeerRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Heimdall_DeauthorizePeer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeauthorizePeerRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(HeimdallServer).DeauthorizePeer(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/io.stellarproject.heimdall.api.v1.Heimdall/DeauthorizePeer",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(HeimdallServer).DeauthorizePeer(ctx, req.(*DeauthorizePeerRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Heimdall_AuthorizedPeers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AuthorizedPeersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(HeimdallServer).AuthorizedPeers(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/io.stellarproject.heimdall.api.v1.Heimdall/AuthorizedPeers",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(HeimdallServer).AuthorizedPeers(ctx, req.(*AuthorizedPeersRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Heimdall_Join_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(JoinRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(HeimdallServer).Join(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/io.stellarproject.heimdall.api.v1.Heimdall/Join",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(HeimdallServer).Join(ctx, req.(*JoinRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Heimdall_Routes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RoutesRequest)
if err := dec(in); err != nil {
@ -1007,6 +1397,22 @@ var _Heimdall_serviceDesc = grpc.ServiceDesc{
MethodName: "Connect",
Handler: _Heimdall_Connect_Handler,
},
{
MethodName: "AuthorizePeer",
Handler: _Heimdall_AuthorizePeer_Handler,
},
{
MethodName: "DeauthorizePeer",
Handler: _Heimdall_DeauthorizePeer_Handler,
},
{
MethodName: "AuthorizedPeers",
Handler: _Heimdall_AuthorizedPeers_Handler,
},
{
MethodName: "Join",
Handler: _Heimdall_Join_Handler,
},
{
MethodName: "Routes",
Handler: _Heimdall_Routes_Handler,

View file

@ -10,6 +10,10 @@ option go_package = "github.com/stellarproject/heimdall/api/v1;v1";
service Heimdall {
rpc Connect(ConnectRequest) returns (ConnectResponse);
rpc AuthorizePeer(AuthorizePeerRequest) returns (google.protobuf.Empty);
rpc DeauthorizePeer(DeauthorizePeerRequest) returns (google.protobuf.Empty);
rpc AuthorizedPeers(AuthorizedPeersRequest) returns (AuthorizedPeersResponse);
rpc Join(JoinRequest) returns (JoinResponse);
rpc Routes(RoutesRequest) returns (RoutesResponse);
rpc CreateRoute(CreateRouteRequest) returns (google.protobuf.Empty);
rpc DeleteRoute(DeleteRouteRequest) returns (google.protobuf.Empty);
@ -23,15 +27,40 @@ message Master {
string redis_url = 3 [(gogoproto.customname) = "RedisURL"];
}
message ConnectRequest {
message JoinRequest {
string id = 1 [(gogoproto.customname) = "ID"];
string cluster_key = 2;
}
message ConnectResponse {
message JoinResponse {
Master master = 1;
}
message ConnectRequest {
string id = 1 [(gogoproto.customname) = "ID"];
}
message ConnectResponse {
KeyPair keypair = 1 [(gogoproto.customname) = "KeyPair"];
string address = 2;
repeated Peer peers = 3;
repeated string dns = 4 [(gogoproto.customname) = "DNS"];
}
message AuthorizePeerRequest {
string id = 1 [(gogoproto.customname) = "ID"];
}
message DeauthorizePeerRequest {
string id = 1 [(gogoproto.customname) = "ID"];
}
message AuthorizedPeersRequest {}
message AuthorizedPeersResponse {
repeated string ids = 1 [(gogoproto.customname) = "IDs"];
}
message KeyPair {
string private_key = 1;
string public_key = 2;