Documentation
¶
Index ¶
- type Session
- func (s *Session) Edit(itemID int, text string) error
- func (s *Session) GetClient() *http.Client
- func (s *Session) Load(path string) bool
- func (s *Session) Login(username, password string) error
- func (s *Session) Reply(parentID int, text string) error
- func (s *Session) Save(path string) error
- func (s *Session) Submit(title, storyURL, text string) error
- func (s *Session) Vote(itemID int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
Session manages HN authentication state.
func (*Session) Load ¶
Load restores a session from a file and validates it's still good. Returns true if the session was restored successfully.
Click to show internal directories.
Click to hide internal directories.