proto

package
v0.0.0-...-28de2d1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

bwmf.proto

It has these top-level messages:

Request
Response
MatrixShard

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterBlockDataServer

func RegisterBlockDataServer(s *grpc.Server, srv BlockDataServer)

Types

type BlockDataClient

type BlockDataClient interface {
	GetTShard(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
	GetDShard(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}

func NewBlockDataClient

func NewBlockDataClient(cc *grpc.ClientConn) BlockDataClient

type BlockDataServer

type BlockDataServer interface {
	GetTShard(context.Context, *Request) (*Response, error)
	GetDShard(context.Context, *Request) (*Response, error)
}

type MatrixShard

type MatrixShard struct {
	IsSparse bool      `protobuf:"varint,1,opt,name=is_sparse" json:"is_sparse,omitempty"`
	M        uint32    `protobuf:"varint,2,opt,name=m" json:"m,omitempty"`
	N        uint32    `protobuf:"varint,3,opt,name=n" json:"n,omitempty"`
	Val      []float32 `protobuf:"fixed32,4,rep,name=val" json:"val,omitempty"`
	Ir       []uint32  `protobuf:"varint,5,rep,name=ir" json:"ir,omitempty"`
	Jc       []uint32  `protobuf:"varint,6,rep,name=jc" json:"jc,omitempty"`
}

func (*MatrixShard) ProtoMessage

func (*MatrixShard) ProtoMessage()

func (*MatrixShard) Reset

func (m *MatrixShard) Reset()

func (*MatrixShard) String

func (m *MatrixShard) String() string

type Request

type Request struct {
}

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

type Response

type Response struct {
	BlockId uint64       `protobuf:"varint,1,opt,name=blockId" json:"blockId,omitempty"`
	Shard   *MatrixShard `protobuf:"bytes,2,opt,name=shard" json:"shard,omitempty"`
}

func (*Response) GetShard

func (m *Response) GetShard() *MatrixShard

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

Jump to

Keyboard shortcuts

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