nexus

package
v2.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterServiceServer

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

Types

type Empty

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

func (*Empty) Descriptor

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

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

func (*Empty) XXX_Merge

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

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

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

type NetworkDiagnosticsResponse

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

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

func (*NetworkDiagnosticsResponse) GetNodeInfo

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

func (*NetworkDiagnosticsResponse) GetStats

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

func (*NetworkDiagnosticsResponse) ProtoMessage

func (*NetworkDiagnosticsResponse) ProtoMessage()

func (*NetworkDiagnosticsResponse) Reset

func (m *NetworkDiagnosticsResponse) Reset()

func (*NetworkDiagnosticsResponse) String

func (m *NetworkDiagnosticsResponse) String() string

func (*NetworkDiagnosticsResponse) XXX_DiscardUnknown

func (m *NetworkDiagnosticsResponse) XXX_DiscardUnknown()

func (*NetworkDiagnosticsResponse) XXX_Marshal

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

func (*NetworkDiagnosticsResponse) XXX_Merge

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

func (*NetworkDiagnosticsResponse) XXX_Size

func (m *NetworkDiagnosticsResponse) XXX_Size() int

func (*NetworkDiagnosticsResponse) XXX_Unmarshal

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

type NetworkRequest

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

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

func (*NetworkRequest) GetNetwork

func (m *NetworkRequest) GetNetwork() string

func (*NetworkRequest) ProtoMessage

func (*NetworkRequest) ProtoMessage()

func (*NetworkRequest) Reset

func (m *NetworkRequest) Reset()

func (*NetworkRequest) String

func (m *NetworkRequest) String() string

func (*NetworkRequest) XXX_DiscardUnknown

func (m *NetworkRequest) XXX_DiscardUnknown()

func (*NetworkRequest) XXX_Marshal

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

func (*NetworkRequest) XXX_Merge

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

func (*NetworkRequest) XXX_Size

func (m *NetworkRequest) XXX_Size() int

func (*NetworkRequest) XXX_Unmarshal

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

type NetworkStatusReponse

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

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

func (*NetworkStatusReponse) GetDiskUsage

func (m *NetworkStatusReponse) GetDiskUsage() int64

func (*NetworkStatusReponse) GetNetwork

func (m *NetworkStatusReponse) GetNetwork() string

func (*NetworkStatusReponse) GetPeerId

func (m *NetworkStatusReponse) GetPeerId() string

func (*NetworkStatusReponse) GetSwarmPort

func (m *NetworkStatusReponse) GetSwarmPort() string

func (*NetworkStatusReponse) GetUptime

func (m *NetworkStatusReponse) GetUptime() int64

func (*NetworkStatusReponse) ProtoMessage

func (*NetworkStatusReponse) ProtoMessage()

func (*NetworkStatusReponse) Reset

func (m *NetworkStatusReponse) Reset()

func (*NetworkStatusReponse) String

func (m *NetworkStatusReponse) String() string

func (*NetworkStatusReponse) XXX_DiscardUnknown

func (m *NetworkStatusReponse) XXX_DiscardUnknown()

func (*NetworkStatusReponse) XXX_Marshal

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

func (*NetworkStatusReponse) XXX_Merge

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

func (*NetworkStatusReponse) XXX_Size

func (m *NetworkStatusReponse) XXX_Size() int

func (*NetworkStatusReponse) XXX_Unmarshal

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

type ServiceClient

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

func NewServiceClient(cc *grpc.ClientConn) ServiceClient

type ServiceServer

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

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

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

func (*StartNetworkResponse) GetPeerId

func (m *StartNetworkResponse) GetPeerId() string

func (*StartNetworkResponse) GetSwarmKey

func (m *StartNetworkResponse) GetSwarmKey() string

func (*StartNetworkResponse) GetSwarmPort

func (m *StartNetworkResponse) GetSwarmPort() string

func (*StartNetworkResponse) ProtoMessage

func (*StartNetworkResponse) ProtoMessage()

func (*StartNetworkResponse) Reset

func (m *StartNetworkResponse) Reset()

func (*StartNetworkResponse) String

func (m *StartNetworkResponse) String() string

func (*StartNetworkResponse) XXX_DiscardUnknown

func (m *StartNetworkResponse) XXX_DiscardUnknown()

func (*StartNetworkResponse) XXX_Marshal

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

func (*StartNetworkResponse) XXX_Merge

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

func (*StartNetworkResponse) XXX_Size

func (m *StartNetworkResponse) XXX_Size() int

func (*StartNetworkResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL