Documentation ¶
Overview ¶
Package messages provides access to a project's messages via the Lighthouse API. http://help.lighthouseapp.com/kb/api/messages.
Index ¶
- type Comment
- type CommentCreate
- type Comments
- type Message
- type MessageCreate
- type MessageUpdate
- type Messages
- type Service
- func (s *Service) Create(m *Message) (*Message, error)
- func (s *Service) CreateComment(idOrTitle string, c *Comment) (*Message, error)
- func (s *Service) CreateCommentByID(id int, c *Comment) (*Message, error)
- func (s *Service) CreateCommentByTitle(title string, c *Comment) (*Message, error)
- func (s *Service) Delete(idOrTitle string) error
- func (s *Service) DeleteByID(id int) error
- func (s *Service) DeleteByTitle(title string) error
- func (s *Service) Get(idOrTitle string) (*Message, error)
- func (s *Service) GetByID(id int) (*Message, error)
- func (s *Service) GetByTitle(title string) (*Message, error)
- func (s *Service) List() (Messages, error)
- func (s *Service) New() (*Message, error)
- func (s *Service) Update(m *Message) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct { AllAttachmentsCount int `json:"all_attachments_count"` AttachmentsCount int `json:"attachments_count"` Body string `json:"body"` BodyHTML string `json:"body_html"` CommentsCount int `json:"comments_count"` CreatedAt *time.Time `json:"created_at"` ID int `json:"id"` Integer int `json:"integer"` MilestoneID int `json:"milestone_id"` ParentID int `json:"parent_id"` Permalink string `json:"permalink"` ProjectID int `json:"project_id"` Title string `json:"title"` Token string `json:"token"` UpdatedAt *time.Time `json:"updated_at"` UserID int `json:"user_id"` UserName string `json:"user_name"` URL string `json:"url"` }
type CommentCreate ¶
type Message ¶
type Message struct { AllAttachmentsCount int `json:"all_attachments_count"` AttachmentsCount int `json:"attachments_count"` Body string `json:"body"` BodyHTML string `json:"body_html"` CommentsCount int `json:"comments_count"` CreatedAt *time.Time `json:"created_at"` ID int `json:"id"` Integer int `json:"integer"` MilestoneID int `json:"milestone_id"` ParentID int `json:"parent_id"` Permalink string `json:"permalink"` ProjectID int `json:"project_id"` Title string `json:"title"` Token string `json:"token"` UpdatedAt *time.Time `json:"updated_at"` UserID int `json:"user_id"` UserName string `json:"user_name"` URL string `json:"url"` Comments Comments `json:"comments"` }
type MessageCreate ¶
type MessageUpdate ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(s *lighthouse.Service, projectID int) *Service
func (*Service) CreateComment ¶
Only the fields in CommentCreate can be set.
func (*Service) CreateCommentByID ¶ added in v0.4.1
Only the fields in CommentCreate can be set.
func (*Service) CreateCommentByTitle ¶ added in v0.4.1
Only the fields in CommentCreate can be set.
func (*Service) DeleteByID ¶ added in v0.4.1
func (*Service) DeleteByTitle ¶ added in v0.4.1
func (*Service) GetByTitle ¶ added in v0.4.1
Click to show internal directories.
Click to hide internal directories.