rpcserver

package
v0.0.0-...-377a973 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RpcConf = conf.RpcServer{}
)

Functions

func RpcRun

func RpcRun() (err error)

Types

type DBcache

type DBcache struct {
}

func (*DBcache) DelRow

func (g *DBcache) DelRow(req DelRowRequest, resp *DelRowResponse) (err error)

func (*DBcache) GetColumn

func (g *DBcache) GetColumn(req GetColumnRequest, resp *GetColumnResponse) (err error)

func (*DBcache) GetMultipageRows

func (g *DBcache) GetMultipageRows(req GetMultipageRowsRequest, resp *GetMultipageRowsResponse) (err error)

func (*DBcache) GetOnePageRows

func (g *DBcache) GetOnePageRows(req GetOnePageRowsRequest, resp *GetOnePageRowsResponse) (err error)

func (*DBcache) GetPageCount

func (g *DBcache) GetPageCount(req GetPageCountRequest, resp *GetPageCountResponse) (err error)

func (*DBcache) GetRow

func (g *DBcache) GetRow(req GetRowRequest, resp *GetRowResponse) (err error)

GetRow()

func (*DBcache) GetRowBetween

func (g *DBcache) GetRowBetween(req GetRowBetweenRequest, resp *GetRowBetweenResponse) (err error)

func (*DBcache) GetWhere

func (g *DBcache) GetWhere(req GetWhereRequest, resp *GetWhereResponse) (err error)

func (*DBcache) InsertRow

func (g *DBcache) InsertRow(req InsertRowRequest, resp *InsertRowResponse) (err error)

func (*DBcache) UpdateColumn

func (g *DBcache) UpdateColumn(req UpdateColumnRequest, resp *UpdateColumnResponse) (err error)

func (*DBcache) UpdateColumns

func (g *DBcache) UpdateColumns(req UpdateColumnsRequest, resp *UpdateColumnsResponse) (err error)

type DelRowRequest

type DelRowRequest struct {
	TableName string
	Pkey      string
}

--------------DelRow()---------------------------------

type DelRowResponse

type DelRowResponse struct {
	Result int64
}

type GetColumnRequest

type GetColumnRequest struct {
	TableName string
	Pkey      string
	Column    string
}

--------------GetColumn()---------------------------------

type GetColumnResponse

type GetColumnResponse struct {
	Result string
}

type GetMultipageRowsRequest

type GetMultipageRowsRequest struct {
	TableName string
	StartPage int
	PageNum   int
	PageSize  int
}

--------------GetMultipageRows()---------------------------------

type GetMultipageRowsResponse

type GetMultipageRowsResponse struct {
	Result []map[string]string
}

type GetOnePageRowsRequest

type GetOnePageRowsRequest struct {
	TableName string
	Page      int
	PageSize  int
}

--------------GetOnePageRows()---------------------------------

type GetOnePageRowsResponse

type GetOnePageRowsResponse struct {
	Result []map[string]string
}

type GetPageCountRequest

type GetPageCountRequest struct {
	TableName string
	PageSize  int
}

--------------GetPageCount()---------------------------------

type GetPageCountResponse

type GetPageCountResponse struct {
	Result int
}

type GetRowBetweenRequest

type GetRowBetweenRequest struct {
	TableName string
	Start     int
	End       int
}

--------------GetRowBetween()---------------------------------

type GetRowBetweenResponse

type GetRowBetweenResponse struct {
	Result []map[string]string
}

type GetRowRequest

type GetRowRequest struct {
	TableName string
	Pkey      string
}

--------------GetRow()--------------------------------- GetRow,client请求的参数.

type GetRowResponse

type GetRowResponse struct {
	Result map[string]string
}

GetRow,响应的结果.

type GetWhereRequest

type GetWhereRequest struct {
	TableName string
	Where     string
}

--------------GetWhere()---------------------------------

type GetWhereResponse

type GetWhereResponse struct {
	Result []map[string]string
}

type InsertRowRequest

type InsertRowRequest struct {
	TableName string
	Condition string
}

--------------InsertRow()---------------------------------

type InsertRowResponse

type InsertRowResponse struct {
	Result int64
}

type UpdateColumnRequest

type UpdateColumnRequest struct {
	TableName   string
	Pkey        string
	Column      string
	ColumnValue string
}

--------------UpdateColumn()---------------------------------

type UpdateColumnResponse

type UpdateColumnResponse struct {
	Result int64
}

type UpdateColumnsRequest

type UpdateColumnsRequest struct {
	TableName string
	Pkey      string
	Where     string
}

--------------UpdateColumns()---------------------------------

type UpdateColumnsResponse

type UpdateColumnsResponse struct {
	Result int64
}

Jump to

Keyboard shortcuts

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