grpc: github.com/RTradeLtd/grpc/nexus Index | Files

package nexus

import "github.com/RTradeLtd/grpc/nexus"

Index

Package Files

service.pb.go

func RegisterServiceServer Uses

func RegisterServiceServer(s *grpc.Server, srv ServiceServer)

type Empty Uses

type Empty struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Empty) Descriptor Uses

func (*Empty) Descriptor() ([]byte, []int)

func (*Empty) ProtoMessage Uses

func (*Empty) ProtoMessage()

func (*Empty) Reset Uses

func (m *Empty) Reset()

func (*Empty) String Uses

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown Uses

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal Uses

func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Empty) XXX_Merge Uses

func (m *Empty) XXX_Merge(src proto.Message)

func (*Empty) XXX_Size Uses

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal Uses

func (m *Empty) XXX_Unmarshal(b []byte) error

type NetworkDiagnosticsResponse Uses

type NetworkDiagnosticsResponse struct {
    NodeInfo             []byte   `protobuf:"bytes,1,opt,name=node_info,json=nodeInfo,proto3" json:"node_info,omitempty"`
    Stats                []byte   `protobuf:"bytes,2,opt,name=stats,proto3" json:"stats,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*NetworkDiagnosticsResponse) Descriptor Uses

func (*NetworkDiagnosticsResponse) Descriptor() ([]byte, []int)

func (*NetworkDiagnosticsResponse) GetNodeInfo Uses

func (m *NetworkDiagnosticsResponse) GetNodeInfo() []byte

func (*NetworkDiagnosticsResponse) GetStats Uses

func (m *NetworkDiagnosticsResponse) GetStats() []byte

func (*NetworkDiagnosticsResponse) ProtoMessage Uses

func (*NetworkDiagnosticsResponse) ProtoMessage()

func (*NetworkDiagnosticsResponse) Reset Uses

func (m *NetworkDiagnosticsResponse) Reset()

func (*NetworkDiagnosticsResponse) String Uses

func (m *NetworkDiagnosticsResponse) String() string

func (*NetworkDiagnosticsResponse) XXX_DiscardUnknown Uses

func (m *NetworkDiagnosticsResponse) XXX_DiscardUnknown()

func (*NetworkDiagnosticsResponse) XXX_Marshal Uses

func (m *NetworkDiagnosticsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NetworkDiagnosticsResponse) XXX_Merge Uses

func (m *NetworkDiagnosticsResponse) XXX_Merge(src proto.Message)

func (*NetworkDiagnosticsResponse) XXX_Size Uses

func (m *NetworkDiagnosticsResponse) XXX_Size() int

func (*NetworkDiagnosticsResponse) XXX_Unmarshal Uses

func (m *NetworkDiagnosticsResponse) XXX_Unmarshal(b []byte) error

type NetworkRequest Uses

type NetworkRequest 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 (*NetworkRequest) Descriptor Uses

func (*NetworkRequest) Descriptor() ([]byte, []int)

func (*NetworkRequest) GetNetwork Uses

func (m *NetworkRequest) GetNetwork() string

func (*NetworkRequest) ProtoMessage Uses

func (*NetworkRequest) ProtoMessage()

func (*NetworkRequest) Reset Uses

func (m *NetworkRequest) Reset()

func (*NetworkRequest) String Uses

func (m *NetworkRequest) String() string

func (*NetworkRequest) XXX_DiscardUnknown Uses

func (m *NetworkRequest) XXX_DiscardUnknown()

func (*NetworkRequest) XXX_Marshal Uses

func (m *NetworkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NetworkRequest) XXX_Merge Uses

func (m *NetworkRequest) XXX_Merge(src proto.Message)

func (*NetworkRequest) XXX_Size Uses

func (m *NetworkRequest) XXX_Size() int

func (*NetworkRequest) XXX_Unmarshal Uses

func (m *NetworkRequest) XXX_Unmarshal(b []byte) error

type NetworkStatusReponse Uses

type NetworkStatusReponse struct {
    Network              string   `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
    PeerId               string   `protobuf:"bytes,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
    SwarmPort            string   `protobuf:"bytes,3,opt,name=swarm_port,json=swarmPort,proto3" json:"swarm_port,omitempty"`
    Uptime               int64    `protobuf:"varint,4,opt,name=uptime,proto3" json:"uptime,omitempty"`
    DiskUsage            int64    `protobuf:"varint,5,opt,name=disk_usage,json=diskUsage,proto3" json:"disk_usage,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*NetworkStatusReponse) Descriptor Uses

func (*NetworkStatusReponse) Descriptor() ([]byte, []int)

func (*NetworkStatusReponse) GetDiskUsage Uses

func (m *NetworkStatusReponse) GetDiskUsage() int64

func (*NetworkStatusReponse) GetNetwork Uses

func (m *NetworkStatusReponse) GetNetwork() string

func (*NetworkStatusReponse) GetPeerId Uses

func (m *NetworkStatusReponse) GetPeerId() string

func (*NetworkStatusReponse) GetSwarmPort Uses

func (m *NetworkStatusReponse) GetSwarmPort() string

func (*NetworkStatusReponse) GetUptime Uses

func (m *NetworkStatusReponse) GetUptime() int64

func (*NetworkStatusReponse) ProtoMessage Uses

func (*NetworkStatusReponse) ProtoMessage()

func (*NetworkStatusReponse) Reset Uses

func (m *NetworkStatusReponse) Reset()

func (*NetworkStatusReponse) String Uses

func (m *NetworkStatusReponse) String() string

func (*NetworkStatusReponse) XXX_DiscardUnknown Uses

func (m *NetworkStatusReponse) XXX_DiscardUnknown()

func (*NetworkStatusReponse) XXX_Marshal Uses

func (m *NetworkStatusReponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NetworkStatusReponse) XXX_Merge Uses

func (m *NetworkStatusReponse) XXX_Merge(src proto.Message)

func (*NetworkStatusReponse) XXX_Size Uses

func (m *NetworkStatusReponse) XXX_Size() int

func (*NetworkStatusReponse) XXX_Unmarshal Uses

func (m *NetworkStatusReponse) XXX_Unmarshal(b []byte) error

type ServiceClient Uses

type ServiceClient interface {
    Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
    StartNetwork(ctx context.Context, in *NetworkRequest, opts ...grpc.CallOption) (*StartNetworkResponse, error)
    UpdateNetwork(ctx context.Context, in *NetworkRequest, opts ...grpc.CallOption) (*Empty, error)
    StopNetwork(ctx context.Context, in *NetworkRequest, opts ...grpc.CallOption) (*Empty, error)
    RemoveNetwork(ctx context.Context, in *NetworkRequest, opts ...grpc.CallOption) (*Empty, error)
    NetworkStats(ctx context.Context, in *NetworkRequest, opts ...grpc.CallOption) (*NetworkStatusReponse, error)
    NetworkDiagnostics(ctx context.Context, in *NetworkRequest, opts ...grpc.CallOption) (*NetworkDiagnosticsResponse, error)
}

ServiceClient is the client API for Service service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewServiceClient Uses

func NewServiceClient(cc *grpc.ClientConn) ServiceClient

type ServiceServer Uses

type ServiceServer interface {
    Ping(context.Context, *Empty) (*Empty, error)
    StartNetwork(context.Context, *NetworkRequest) (*StartNetworkResponse, error)
    UpdateNetwork(context.Context, *NetworkRequest) (*Empty, error)
    StopNetwork(context.Context, *NetworkRequest) (*Empty, error)
    RemoveNetwork(context.Context, *NetworkRequest) (*Empty, error)
    NetworkStats(context.Context, *NetworkRequest) (*NetworkStatusReponse, error)
    NetworkDiagnostics(context.Context, *NetworkRequest) (*NetworkDiagnosticsResponse, error)
}

ServiceServer is the server API for Service service.

type StartNetworkResponse Uses

type StartNetworkResponse struct {
    PeerId               string   `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
    SwarmPort            string   `protobuf:"bytes,2,opt,name=swarm_port,json=swarmPort,proto3" json:"swarm_port,omitempty"`
    SwarmKey             string   `protobuf:"bytes,3,opt,name=swarm_key,json=swarmKey,proto3" json:"swarm_key,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*StartNetworkResponse) Descriptor Uses

func (*StartNetworkResponse) Descriptor() ([]byte, []int)

func (*StartNetworkResponse) GetPeerId Uses

func (m *StartNetworkResponse) GetPeerId() string

func (*StartNetworkResponse) GetSwarmKey Uses

func (m *StartNetworkResponse) GetSwarmKey() string

func (*StartNetworkResponse) GetSwarmPort Uses

func (m *StartNetworkResponse) GetSwarmPort() string

func (*StartNetworkResponse) ProtoMessage Uses

func (*StartNetworkResponse) ProtoMessage()

func (*StartNetworkResponse) Reset Uses

func (m *StartNetworkResponse) Reset()

func (*StartNetworkResponse) String Uses

func (m *StartNetworkResponse) String() string

func (*StartNetworkResponse) XXX_DiscardUnknown Uses

func (m *StartNetworkResponse) XXX_DiscardUnknown()

func (*StartNetworkResponse) XXX_Marshal Uses

func (m *StartNetworkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StartNetworkResponse) XXX_Merge Uses

func (m *StartNetworkResponse) XXX_Merge(src proto.Message)

func (*StartNetworkResponse) XXX_Size Uses

func (m *StartNetworkResponse) XXX_Size() int

func (*StartNetworkResponse) XXX_Unmarshal Uses

func (m *StartNetworkResponse) XXX_Unmarshal(b []byte) error

Package nexus imports 5 packages (graph) and is imported by 8 packages. Updated 2019-07-13. Refresh now. Tools for package owners.