service

package
v0.0.0-...-7378411 Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoSupported = errors.New("not supported")

Functions

func ExecuteCollection

func ExecuteCollection(ctx context.Context, collFunc CollectionFunc, opcode types.OPCode, decoder rpc.Request, reply *types.OPREPLY) (*types.OPREPLY, error)

ExecuteCollection execute collection operation to db

Types

type CollectionFunc

type CollectionFunc func(collName string) mongobyc.CollectionInterface

type Service

type Service struct {
	*backbone.Engine
	// contains filtered or unexported fields
}

func (*Service) Healthz

func (s *Service) Healthz(req *restful.Request, resp *restful.Response)

func (*Service) SetDB

func (s *Service) SetDB(db mongobyc.Client)

func (*Service) SetEngine

func (s *Service) SetEngine(engine *backbone.Engine)

func (*Service) SetMan

func (s *Service) SetMan(man *manager.TxnManager)

func (*Service) WebService

func (s *Service) WebService() *restful.WebService

type TXRPC

type TXRPC struct {
	*backbone.Engine
	// contains filtered or unexported fields
}

func NewTXRPC

func NewTXRPC(rpcsrv *rpc.Server) *TXRPC

func (*TXRPC) RDBOperation

func (t *TXRPC) RDBOperation(input rpc.Request) (interface{}, error)

func (*TXRPC) SetDB

func (t *TXRPC) SetDB(db mongobyc.Client)

func (*TXRPC) SetEngine

func (t *TXRPC) SetEngine(engine *backbone.Engine)

func (*TXRPC) SetMan

func (t *TXRPC) SetMan(man *manager.TxnManager)

func (*TXRPC) WatchTransaction

func (t *TXRPC) WatchTransaction(input rpc.Request, stream rpc.ServerStream) (err error)

Jump to

Keyboard shortcuts

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