Documentation ¶
Index ¶
- func New(c *conf.Config, s *match.Service) (svr *rpc.Server)
- type RPC
- func (r *RPC) ActProtocol(c context.Context, a *matmdl.ArgActProtocol, res *matmdl.SubProtocol) (err error)
- func (r *RPC) ActSubject(c context.Context, a *matmdl.ArgActSubject, res *matmdl.SubjectItem) (err error)
- func (r *RPC) AddLikeCtimeCache(c context.Context, a *matmdl.ArgLikeUp, res *struct{}) (err error)
- func (r *RPC) DelLikeCtimeCache(c context.Context, item *matmdl.ArgLikeItem, res *struct{}) (err error)
- func (r *RPC) LikeUp(c context.Context, a *matmdl.ArgLikeUp, res *struct{}) (err error)
- func (r *RPC) Matchs(c context.Context, a *matmdl.ArgMatch, res *[]*matmdl.Match) (err error)
- func (r *RPC) Ping(c context.Context, arg *struct{}, res *struct{}) (err error)
- func (r *RPC) SubjectUp(c context.Context, a *matmdl.ArgSubjectUp, res *struct{}) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RPC ¶
type RPC struct {
// contains filtered or unexported fields
}
RPC struct info.
func (*RPC) ActProtocol ¶
func (r *RPC) ActProtocol(c context.Context, a *matmdl.ArgActProtocol, res *matmdl.SubProtocol) (err error)
ActProtocol .
func (*RPC) ActSubject ¶
func (r *RPC) ActSubject(c context.Context, a *matmdl.ArgActSubject, res *matmdl.SubjectItem) (err error)
ActSubject get act subject info.
func (*RPC) AddLikeCtimeCache ¶
AddLikeCtimeCache like ctime cache.
func (*RPC) DelLikeCtimeCache ¶
func (r *RPC) DelLikeCtimeCache(c context.Context, item *matmdl.ArgLikeItem, res *struct{}) (err error)
DelLikeCtimeCache del like ctime cache
Click to show internal directories.
Click to hide internal directories.