Documentation ¶
Index ¶
- type Cast
- type CastService
- func (c *CastService) DeleteCast(castHash string) error
- func (c *CastService) GetCastByHash(hash string) (*Cast, error)
- func (c *CastService) GetCastsByAddress(address string, limit int, cursor string) ([]Cast, string, error)
- func (c *CastService) GetCastsByFid(fid uint64, limit int, cursor string) ([]Cast, string, error)
- func (c *CastService) GetCastsByFname(fname string, limit int, cursor string) ([]Cast, string, error)
- func (c *CastService) GetCastsInThread(threadHash string) ([]Cast, error)
- func (c *CastService) GetRecentCasts(limit int) ([]Cast, string, error)
- func (c *CastService) PublishCast(text string) (*Cast, error)
- func (c *CastService) PublishReplyCast(text string, fid uint64, hash string) (*Cast, error)
- type CastsResponse
- type Reactions
- type Recaster
- type Recasts
- type Replies
- type ViewerContext
- type Watches
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cast ¶
type Cast struct { Hash string `json:"hash"` ThreadHash string `json:"threadHash"` ParentHash string `json:"parentHash"` ParentAuthor *users.User `json:"parentAuthor"` Author *users.User `json:"author"` Text string `json:"text"` Timestamp uint64 `json:"timestamp"` Replies *Replies `json:"replies"` Reactions *Reactions `json:"reactions"` Recasts *Recasts `json:"recasts"` Watches *Watches `json:"watches"` Recast bool `json:"recast"` ViewerContext *ViewerContext `json:"viewerContext"` }
type CastService ¶
type CastService struct {
// contains filtered or unexported fields
}
func NewCastService ¶
func NewCastService(account *account.AccountService, registry *registry.RegistryService) *CastService
func (*CastService) DeleteCast ¶
func (c *CastService) DeleteCast(castHash string) error
func (*CastService) GetCastByHash ¶
func (c *CastService) GetCastByHash(hash string) (*Cast, error)
func (*CastService) GetCastsByAddress ¶
func (*CastService) GetCastsByFid ¶
func (*CastService) GetCastsByFname ¶
func (*CastService) GetCastsInThread ¶
func (c *CastService) GetCastsInThread(threadHash string) ([]Cast, error)
func (*CastService) GetRecentCasts ¶
func (c *CastService) GetRecentCasts(limit int) ([]Cast, string, error)
func (*CastService) PublishCast ¶
func (c *CastService) PublishCast(text string) (*Cast, error)
func (*CastService) PublishReplyCast ¶
type CastsResponse ¶
type ViewerContext ¶
Click to show internal directories.
Click to hide internal directories.