Documentation ¶
Index ¶
- type CreateThreadReq
- type CreateThreadRes
- type GetNodeReq
- type GetNodeRes
- type GetThreadReq
- type GetThreadRes
- type ListThreadsReq
- type ListThreadsRes
- type NodeService
- type Thread
- type ThreadService
- func (s *ThreadService) CreateThread(ctx *rpc.Context, req *CreateThreadReq, res *CreateThreadRes) (err error)
- func (s *ThreadService) GetThread(ctx *rpc.Context, req *GetThreadReq, res *GetThreadRes) (err error)
- func (s *ThreadService) ListThreads(ctx *rpc.Context, req *ListThreadsReq, res *ListThreadsRes) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateThreadReq ¶
type CreateThreadRes ¶
type CreateThreadRes struct {
Thread Thread
}
type GetNodeReq ¶
type GetThreadRes ¶
type GetThreadRes struct {
Thread Thread
}
type ListThreadsReq ¶
type ListThreadsRes ¶
type ListThreadsRes struct {
Threads []Thread
}
type NodeService ¶
type NodeService struct {
// contains filtered or unexported fields
}
func NewNodeService ¶
func NewNodeService(db *gorm.DB) *NodeService
func (*NodeService) GetNode ¶
func (s *NodeService) GetNode(ctx *rpc.Context, req *GetNodeReq, res *GetNodeRes) (err error)
type ThreadService ¶
type ThreadService struct {
// contains filtered or unexported fields
}
func NewThreadService ¶
func NewThreadService(db *gorm.DB) *ThreadService
func (*ThreadService) CreateThread ¶
func (s *ThreadService) CreateThread(ctx *rpc.Context, req *CreateThreadReq, res *CreateThreadRes) (err error)
func (*ThreadService) GetThread ¶
func (s *ThreadService) GetThread(ctx *rpc.Context, req *GetThreadReq, res *GetThreadRes) (err error)
func (*ThreadService) ListThreads ¶
func (s *ThreadService) ListThreads(ctx *rpc.Context, req *ListThreadsReq, res *ListThreadsRes) (err error)
Click to show internal directories.
Click to hide internal directories.