Documentation
¶
Index ¶
- type CommonRequest
- type RPCServices
- func (rpc *RPCServices) GetGiantWhale(ctx context.Context, req *sav_scrapy.GetGiantWhaleReq) (*sav_scrapy.GetGiantWhaleRep, error)
- func (rpc *RPCServices) GetSupportChain(ctx context.Context, req *sav_scrapy.SupportChainReq) (*sav_scrapy.SupportChainRep, error)
- func (rpc *RPCServices) RemoveGiantWhale(ctx context.Context, req *sav_scrapy.RemoveGiantWhaleReq) (*sav_scrapy.RemoveGiantWhaleRep, error)
- func (rpc *RPCServices) SetGiantWhale(ctx context.Context, req *sav_scrapy.SetGiantWhaleReq) (*sav_scrapy.SetGiantWhaleRep, error)
- func (rpc *RPCServices) Start() error
- type ScrapyRpcServices
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonRequest ¶
type CommonRequest interface {
GetChain() string
}
type RPCServices ¶
type RPCServices struct { Db *db.Database RPCHost string RPCPort string ScrapyRpcServices }
func NewRPCServices ¶
func NewRPCServices(db *db.Database, rpcHost, rpcPort string) (*RPCServices, error)
func (*RPCServices) GetGiantWhale ¶
func (rpc *RPCServices) GetGiantWhale(ctx context.Context, req *sav_scrapy.GetGiantWhaleReq) (*sav_scrapy.GetGiantWhaleRep, error)
func (*RPCServices) GetSupportChain ¶
func (rpc *RPCServices) GetSupportChain(ctx context.Context, req *sav_scrapy.SupportChainReq) (*sav_scrapy.SupportChainRep, error)
func (*RPCServices) RemoveGiantWhale ¶
func (rpc *RPCServices) RemoveGiantWhale(ctx context.Context, req *sav_scrapy.RemoveGiantWhaleReq) (*sav_scrapy.RemoveGiantWhaleRep, error)
func (*RPCServices) SetGiantWhale ¶
func (rpc *RPCServices) SetGiantWhale(ctx context.Context, req *sav_scrapy.SetGiantWhaleReq) (*sav_scrapy.SetGiantWhaleRep, error)
func (*RPCServices) Start ¶
func (rpc *RPCServices) Start() error
type ScrapyRpcServices ¶
type ScrapyRpcServices interface { GetSupportChain(ctx context.Context, req *sav_scrapy.SupportChainReq) (*sav_scrapy.SupportChainRep, error) SetGiantWhale(ctx context.Context, in *sav_scrapy.SetGiantWhaleReq) (*sav_scrapy.SetGiantWhaleRep, error) GetGiantWhale(ctx context.Context, in *sav_scrapy.GetGiantWhaleReq) (*sav_scrapy.GetGiantWhaleRep, error) RemoveGiantWhale(ctx context.Context, in *sav_scrapy.RemoveGiantWhaleReq) (*sav_scrapy.RemoveGiantWhaleRep, error) }
Click to show internal directories.
Click to hide internal directories.