// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: github.com/stellarproject/heimdall/api/v1/heimdall.proto package v1 import ( context "context" fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" types "github.com/gogo/protobuf/types" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" math "math" time "time" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf var _ = time.Kitchen // 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package type Master struct { ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` GRPCAddress string `protobuf:"bytes,2,opt,name=grpc_address,json=grpcAddress,proto3" json:"grpc_address,omitempty"` RedisURL string `protobuf:"bytes,3,opt,name=redis_url,json=redisUrl,proto3" json:"redis_url,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Master) Reset() { *m = Master{} } func (m *Master) String() string { return proto.CompactTextString(m) } func (*Master) ProtoMessage() {} func (*Master) Descriptor() ([]byte, []int) { return fileDescriptor_b6184fc395da86b1, []int{0} } func (m *Master) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Master.Unmarshal(m, b) } func (m *Master) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Master.Marshal(b, m, deterministic) } func (m *Master) XXX_Merge(src proto.Message) { xxx_messageInfo_Master.Merge(m, src) } func (m *Master) XXX_Size() int { return xxx_messageInfo_Master.Size(m) } func (m *Master) XXX_DiscardUnknown() { xxx_messageInfo_Master.DiscardUnknown(m) } var xxx_messageInfo_Master proto.InternalMessageInfo func (m *Master) GetID() string { if m != nil { return m.ID } return "" } func (m *Master) GetGRPCAddress() string { if m != nil { return m.GRPCAddress } return "" } func (m *Master) GetRedisURL() string { if m != nil { return m.RedisURL } return "" } type ConnectRequest 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:"-"` 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} } func (m *ConnectRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ConnectRequest.Unmarshal(m, b) } func (m *ConnectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ConnectRequest.Marshal(b, m, deterministic) } func (m *ConnectRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ConnectRequest.Merge(m, src) } func (m *ConnectRequest) XXX_Size() int { return xxx_messageInfo_ConnectRequest.Size(m) } func (m *ConnectRequest) XXX_DiscardUnknown() { xxx_messageInfo_ConnectRequest.DiscardUnknown(m) } var xxx_messageInfo_ConnectRequest proto.InternalMessageInfo func (m *ConnectRequest) GetID() string { if m != nil { return m.ID } 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } 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} } func (m *ConnectResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ConnectResponse.Unmarshal(m, b) } func (m *ConnectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ConnectResponse.Marshal(b, m, deterministic) } func (m *ConnectResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_ConnectResponse.Merge(m, src) } func (m *ConnectResponse) XXX_Size() int { return xxx_messageInfo_ConnectResponse.Size(m) } func (m *ConnectResponse) XXX_DiscardUnknown() { xxx_messageInfo_ConnectResponse.DiscardUnknown(m) } var xxx_messageInfo_ConnectResponse proto.InternalMessageInfo func (m *ConnectResponse) GetMaster() *Master { if m != nil { return m.Master } return nil } type KeyPair struct { PrivateKey string `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` PublicKey string `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } 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} } func (m *KeyPair) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KeyPair.Unmarshal(m, b) } func (m *KeyPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_KeyPair.Marshal(b, m, deterministic) } func (m *KeyPair) XXX_Merge(src proto.Message) { xxx_messageInfo_KeyPair.Merge(m, src) } func (m *KeyPair) XXX_Size() int { return xxx_messageInfo_KeyPair.Size(m) } func (m *KeyPair) XXX_DiscardUnknown() { xxx_messageInfo_KeyPair.DiscardUnknown(m) } var xxx_messageInfo_KeyPair proto.InternalMessageInfo func (m *KeyPair) GetPrivateKey() string { if m != nil { return m.PrivateKey } return "" } func (m *KeyPair) GetPublicKey() string { if m != nil { return m.PublicKey } return "" } type Node struct { ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` KeyPair *KeyPair `protobuf:"bytes,3,opt,name=keypair,proto3" json:"keypair,omitempty"` EndpointIP string `protobuf:"bytes,4,opt,name=endpoint_ip,json=endpointIp,proto3" json:"endpoint_ip,omitempty"` EndpointPort uint64 `protobuf:"varint,5,opt,name=endpoint_port,json=endpointPort,proto3" json:"endpoint_port,omitempty"` GatewayIP string `protobuf:"bytes,6,opt,name=gateway_ip,json=gatewayIp,proto3" json:"gateway_ip,omitempty"` Updated time.Time `protobuf:"bytes,7,opt,name=updated,proto3,stdtime" json:"updated"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } 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} } func (m *Node) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Node.Unmarshal(m, b) } func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Node.Marshal(b, m, deterministic) } func (m *Node) XXX_Merge(src proto.Message) { xxx_messageInfo_Node.Merge(m, src) } func (m *Node) XXX_Size() int { return xxx_messageInfo_Node.Size(m) } func (m *Node) XXX_DiscardUnknown() { xxx_messageInfo_Node.DiscardUnknown(m) } var xxx_messageInfo_Node proto.InternalMessageInfo func (m *Node) GetID() string { if m != nil { return m.ID } return "" } func (m *Node) GetAddr() string { if m != nil { return m.Addr } return "" } func (m *Node) GetKeyPair() *KeyPair { if m != nil { return m.KeyPair } return nil } func (m *Node) GetEndpointIP() string { if m != nil { return m.EndpointIP } return "" } func (m *Node) GetEndpointPort() uint64 { if m != nil { return m.EndpointPort } return 0 } func (m *Node) GetGatewayIP() string { if m != nil { return m.GatewayIP } return "" } func (m *Node) GetUpdated() time.Time { if m != nil { return m.Updated } return time.Time{} } type NodesRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } 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} } func (m *NodesRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_NodesRequest.Unmarshal(m, b) } func (m *NodesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_NodesRequest.Marshal(b, m, deterministic) } func (m *NodesRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_NodesRequest.Merge(m, src) } func (m *NodesRequest) XXX_Size() int { return xxx_messageInfo_NodesRequest.Size(m) } func (m *NodesRequest) XXX_DiscardUnknown() { xxx_messageInfo_NodesRequest.DiscardUnknown(m) } var xxx_messageInfo_NodesRequest proto.InternalMessageInfo type NodesResponse struct { Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } 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} } func (m *NodesResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_NodesResponse.Unmarshal(m, b) } func (m *NodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_NodesResponse.Marshal(b, m, deterministic) } func (m *NodesResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_NodesResponse.Merge(m, src) } func (m *NodesResponse) XXX_Size() int { return xxx_messageInfo_NodesResponse.Size(m) } func (m *NodesResponse) XXX_DiscardUnknown() { xxx_messageInfo_NodesResponse.DiscardUnknown(m) } var xxx_messageInfo_NodesResponse proto.InternalMessageInfo func (m *NodesResponse) GetNodes() []*Node { if m != nil { return m.Nodes } return nil } type Peer struct { ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` KeyPair *KeyPair `protobuf:"bytes,2,opt,name=keypair,proto3" json:"keypair,omitempty"` AllowedIPs []string `protobuf:"bytes,3,rep,name=allowed_ips,json=allowedIps,proto3" json:"allowed_ips,omitempty"` Endpoint string `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } 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} } func (m *Peer) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Peer.Unmarshal(m, b) } func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Peer.Marshal(b, m, deterministic) } func (m *Peer) XXX_Merge(src proto.Message) { xxx_messageInfo_Peer.Merge(m, src) } func (m *Peer) XXX_Size() int { return xxx_messageInfo_Peer.Size(m) } func (m *Peer) XXX_DiscardUnknown() { xxx_messageInfo_Peer.DiscardUnknown(m) } var xxx_messageInfo_Peer proto.InternalMessageInfo func (m *Peer) GetID() string { if m != nil { return m.ID } return "" } func (m *Peer) GetKeyPair() *KeyPair { if m != nil { return m.KeyPair } return nil } func (m *Peer) GetAllowedIPs() []string { if m != nil { return m.AllowedIPs } return nil } func (m *Peer) GetEndpoint() string { if m != nil { return m.Endpoint } return "" } type PeersRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } 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} } func (m *PeersRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PeersRequest.Unmarshal(m, b) } func (m *PeersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PeersRequest.Marshal(b, m, deterministic) } func (m *PeersRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_PeersRequest.Merge(m, src) } func (m *PeersRequest) XXX_Size() int { return xxx_messageInfo_PeersRequest.Size(m) } func (m *PeersRequest) XXX_DiscardUnknown() { xxx_messageInfo_PeersRequest.DiscardUnknown(m) } var xxx_messageInfo_PeersRequest proto.InternalMessageInfo type PeersResponse struct { Peers []*Peer `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } 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} } func (m *PeersResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PeersResponse.Unmarshal(m, b) } func (m *PeersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PeersResponse.Marshal(b, m, deterministic) } func (m *PeersResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_PeersResponse.Merge(m, src) } func (m *PeersResponse) XXX_Size() int { return xxx_messageInfo_PeersResponse.Size(m) } func (m *PeersResponse) XXX_DiscardUnknown() { xxx_messageInfo_PeersResponse.DiscardUnknown(m) } var xxx_messageInfo_PeersResponse proto.InternalMessageInfo func (m *PeersResponse) GetPeers() []*Peer { if m != nil { return m.Peers } return nil } type Route struct { NodeID string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` Network string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } 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} } func (m *Route) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Route.Unmarshal(m, b) } func (m *Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Route.Marshal(b, m, deterministic) } func (m *Route) XXX_Merge(src proto.Message) { xxx_messageInfo_Route.Merge(m, src) } func (m *Route) XXX_Size() int { return xxx_messageInfo_Route.Size(m) } func (m *Route) XXX_DiscardUnknown() { xxx_messageInfo_Route.DiscardUnknown(m) } var xxx_messageInfo_Route proto.InternalMessageInfo func (m *Route) GetNodeID() string { if m != nil { return m.NodeID } return "" } func (m *Route) GetNetwork() string { if m != nil { return m.Network } return "" } type CreateRouteRequest struct { NodeID string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` Network string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } 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} } func (m *CreateRouteRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CreateRouteRequest.Unmarshal(m, b) } func (m *CreateRouteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CreateRouteRequest.Marshal(b, m, deterministic) } func (m *CreateRouteRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_CreateRouteRequest.Merge(m, src) } func (m *CreateRouteRequest) XXX_Size() int { return xxx_messageInfo_CreateRouteRequest.Size(m) } func (m *CreateRouteRequest) XXX_DiscardUnknown() { xxx_messageInfo_CreateRouteRequest.DiscardUnknown(m) } var xxx_messageInfo_CreateRouteRequest proto.InternalMessageInfo func (m *CreateRouteRequest) GetNodeID() string { if m != nil { return m.NodeID } return "" } func (m *CreateRouteRequest) GetNetwork() string { if m != nil { return m.Network } return "" } type DeleteRouteRequest struct { Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } 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} } func (m *DeleteRouteRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DeleteRouteRequest.Unmarshal(m, b) } func (m *DeleteRouteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DeleteRouteRequest.Marshal(b, m, deterministic) } func (m *DeleteRouteRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_DeleteRouteRequest.Merge(m, src) } func (m *DeleteRouteRequest) XXX_Size() int { return xxx_messageInfo_DeleteRouteRequest.Size(m) } func (m *DeleteRouteRequest) XXX_DiscardUnknown() { xxx_messageInfo_DeleteRouteRequest.DiscardUnknown(m) } var xxx_messageInfo_DeleteRouteRequest proto.InternalMessageInfo func (m *DeleteRouteRequest) GetNetwork() string { if m != nil { return m.Network } return "" } type RoutesRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } 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} } func (m *RoutesRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RoutesRequest.Unmarshal(m, b) } func (m *RoutesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_RoutesRequest.Marshal(b, m, deterministic) } func (m *RoutesRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_RoutesRequest.Merge(m, src) } func (m *RoutesRequest) XXX_Size() int { return xxx_messageInfo_RoutesRequest.Size(m) } func (m *RoutesRequest) XXX_DiscardUnknown() { xxx_messageInfo_RoutesRequest.DiscardUnknown(m) } var xxx_messageInfo_RoutesRequest proto.InternalMessageInfo type RoutesResponse struct { Routes []*Route `protobuf:"bytes,1,rep,name=routes,proto3" json:"routes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } 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} } func (m *RoutesResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RoutesResponse.Unmarshal(m, b) } func (m *RoutesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_RoutesResponse.Marshal(b, m, deterministic) } func (m *RoutesResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_RoutesResponse.Merge(m, src) } func (m *RoutesResponse) XXX_Size() int { return xxx_messageInfo_RoutesResponse.Size(m) } func (m *RoutesResponse) XXX_DiscardUnknown() { xxx_messageInfo_RoutesResponse.DiscardUnknown(m) } var xxx_messageInfo_RoutesResponse proto.InternalMessageInfo func (m *RoutesResponse) GetRoutes() []*Route { if m != nil { return m.Routes } return nil } func init() { proto.RegisterType((*Master)(nil), "io.stellarproject.heimdall.api.v1.Master") proto.RegisterType((*ConnectRequest)(nil), "io.stellarproject.heimdall.api.v1.ConnectRequest") proto.RegisterType((*ConnectResponse)(nil), "io.stellarproject.heimdall.api.v1.ConnectResponse") 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") proto.RegisterType((*NodesResponse)(nil), "io.stellarproject.heimdall.api.v1.NodesResponse") proto.RegisterType((*Peer)(nil), "io.stellarproject.heimdall.api.v1.Peer") proto.RegisterType((*PeersRequest)(nil), "io.stellarproject.heimdall.api.v1.PeersRequest") proto.RegisterType((*PeersResponse)(nil), "io.stellarproject.heimdall.api.v1.PeersResponse") proto.RegisterType((*Route)(nil), "io.stellarproject.heimdall.api.v1.Route") proto.RegisterType((*CreateRouteRequest)(nil), "io.stellarproject.heimdall.api.v1.CreateRouteRequest") proto.RegisterType((*DeleteRouteRequest)(nil), "io.stellarproject.heimdall.api.v1.DeleteRouteRequest") proto.RegisterType((*RoutesRequest)(nil), "io.stellarproject.heimdall.api.v1.RoutesRequest") proto.RegisterType((*RoutesResponse)(nil), "io.stellarproject.heimdall.api.v1.RoutesResponse") } func init() { proto.RegisterFile("github.com/stellarproject/heimdall/api/v1/heimdall.proto", fileDescriptor_b6184fc395da86b1) } var fileDescriptor_b6184fc395da86b1 = []byte{ // 831 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdd, 0x8e, 0xe3, 0x34, 0x14, 0x26, 0x9d, 0x36, 0x6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e7, 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, } // 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 // HeimdallClient is the client API for Heimdall service. // // 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) 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) Nodes(ctx context.Context, in *NodesRequest, opts ...grpc.CallOption) (*NodesResponse, error) Peers(ctx context.Context, in *PeersRequest, opts ...grpc.CallOption) (*PeersResponse, error) } type heimdallClient struct { cc *grpc.ClientConn } func NewHeimdallClient(cc *grpc.ClientConn) HeimdallClient { return &heimdallClient{cc} } func (c *heimdallClient) Connect(ctx context.Context, in *ConnectRequest, opts ...grpc.CallOption) (*ConnectResponse, error) { out := new(ConnectResponse) err := c.cc.Invoke(ctx, "/io.stellarproject.heimdall.api.v1.Heimdall/Connect", 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...) if err != nil { return nil, err } return out, nil } func (c *heimdallClient) CreateRoute(ctx context.Context, in *CreateRouteRequest, opts ...grpc.CallOption) (*types.Empty, error) { out := new(types.Empty) err := c.cc.Invoke(ctx, "/io.stellarproject.heimdall.api.v1.Heimdall/CreateRoute", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *heimdallClient) DeleteRoute(ctx context.Context, in *DeleteRouteRequest, opts ...grpc.CallOption) (*types.Empty, error) { out := new(types.Empty) err := c.cc.Invoke(ctx, "/io.stellarproject.heimdall.api.v1.Heimdall/DeleteRoute", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *heimdallClient) Nodes(ctx context.Context, in *NodesRequest, opts ...grpc.CallOption) (*NodesResponse, error) { out := new(NodesResponse) err := c.cc.Invoke(ctx, "/io.stellarproject.heimdall.api.v1.Heimdall/Nodes", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *heimdallClient) Peers(ctx context.Context, in *PeersRequest, opts ...grpc.CallOption) (*PeersResponse, error) { out := new(PeersResponse) err := c.cc.Invoke(ctx, "/io.stellarproject.heimdall.api.v1.Heimdall/Peers", in, out, opts...) if err != nil { return nil, err } return out, nil } // HeimdallServer is the server API for Heimdall service. type HeimdallServer interface { Connect(context.Context, *ConnectRequest) (*ConnectResponse, error) Routes(context.Context, *RoutesRequest) (*RoutesResponse, error) CreateRoute(context.Context, *CreateRouteRequest) (*types.Empty, error) DeleteRoute(context.Context, *DeleteRouteRequest) (*types.Empty, error) Nodes(context.Context, *NodesRequest) (*NodesResponse, error) Peers(context.Context, *PeersRequest) (*PeersResponse, error) } // UnimplementedHeimdallServer can be embedded to have forward compatible implementations. 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) Routes(ctx context.Context, req *RoutesRequest) (*RoutesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Routes not implemented") } func (*UnimplementedHeimdallServer) CreateRoute(ctx context.Context, req *CreateRouteRequest) (*types.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateRoute not implemented") } func (*UnimplementedHeimdallServer) DeleteRoute(ctx context.Context, req *DeleteRouteRequest) (*types.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteRoute not implemented") } func (*UnimplementedHeimdallServer) Nodes(ctx context.Context, req *NodesRequest) (*NodesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Nodes not implemented") } func (*UnimplementedHeimdallServer) Peers(ctx context.Context, req *PeersRequest) (*PeersResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Peers not implemented") } func RegisterHeimdallServer(s *grpc.Server, srv HeimdallServer) { s.RegisterService(&_Heimdall_serviceDesc, srv) } func _Heimdall_Connect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ConnectRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(HeimdallServer).Connect(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/io.stellarproject.heimdall.api.v1.Heimdall/Connect", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(HeimdallServer).Connect(ctx, req.(*ConnectRequest)) } 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 { return nil, err } if interceptor == nil { return srv.(HeimdallServer).Routes(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/io.stellarproject.heimdall.api.v1.Heimdall/Routes", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(HeimdallServer).Routes(ctx, req.(*RoutesRequest)) } return interceptor(ctx, in, info, handler) } func _Heimdall_CreateRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateRouteRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(HeimdallServer).CreateRoute(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/io.stellarproject.heimdall.api.v1.Heimdall/CreateRoute", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(HeimdallServer).CreateRoute(ctx, req.(*CreateRouteRequest)) } return interceptor(ctx, in, info, handler) } func _Heimdall_DeleteRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteRouteRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(HeimdallServer).DeleteRoute(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/io.stellarproject.heimdall.api.v1.Heimdall/DeleteRoute", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(HeimdallServer).DeleteRoute(ctx, req.(*DeleteRouteRequest)) } return interceptor(ctx, in, info, handler) } func _Heimdall_Nodes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(NodesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(HeimdallServer).Nodes(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/io.stellarproject.heimdall.api.v1.Heimdall/Nodes", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(HeimdallServer).Nodes(ctx, req.(*NodesRequest)) } return interceptor(ctx, in, info, handler) } func _Heimdall_Peers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PeersRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(HeimdallServer).Peers(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/io.stellarproject.heimdall.api.v1.Heimdall/Peers", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(HeimdallServer).Peers(ctx, req.(*PeersRequest)) } return interceptor(ctx, in, info, handler) } var _Heimdall_serviceDesc = grpc.ServiceDesc{ ServiceName: "io.stellarproject.heimdall.api.v1.Heimdall", HandlerType: (*HeimdallServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Connect", Handler: _Heimdall_Connect_Handler, }, { MethodName: "Routes", Handler: _Heimdall_Routes_Handler, }, { MethodName: "CreateRoute", Handler: _Heimdall_CreateRoute_Handler, }, { MethodName: "DeleteRoute", Handler: _Heimdall_DeleteRoute_Handler, }, { MethodName: "Nodes", Handler: _Heimdall_Nodes_Handler, }, { MethodName: "Peers", Handler: _Heimdall_Peers_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "github.com/stellarproject/heimdall/api/v1/heimdall.proto", }