sdk

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cell

type Cell struct {
	DBHandler *leveldbwrapper.DBHandle
}

func NewCell

func NewCell(name string) *Cell

func (Cell) GetData

func (c Cell) GetData(key string) ([]byte, error)

func (Cell) PutData

func (c Cell) PutData(key string, value []byte) error

type IBox

type IBox struct {
	// contains filtered or unexported fields
}

func NewIBox

func NewIBox(port int) *IBox

func (*IBox) On

func (i *IBox) On(timeout int) error

func (*IBox) SetHandler

func (i *IBox) SetHandler(handler TransactionHandler)

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(port int) *Server

func (*Server) Close

func (s *Server) Close()

func (*Server) Listen

func (s *Server) Listen(waitTimeOutSec int) error

func (*Server) Ping

func (s *Server) Ping(ctx context.Context, empty *pb.Empty) (*pb.Empty, error)

func (*Server) RunICode

func (s *Server) RunICode(streamServer pb.BistreamService_RunICodeServer) error

func (*Server) SetHandler

func (s *Server) SetHandler(handler func(request *pb.Request) *pb.Response)

type TransactionHandler

type TransactionHandler interface {
	Name() string
	Versions() []string
	Handle(request *pb.Request, cell *Cell) *pb.Response
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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