Documentation
¶
Index ¶
- Variables
- type KiteConnect
- type Manager
- func (m *Manager) ClearSession(sessionID string)
- func (m *Manager) GenerateSession(sessionID, requestToken string) error
- func (m *Manager) GetSession(sessionID string) (*SessionData, error)
- func (m *Manager) HandleKiteCallback() func(w http.ResponseWriter, r *http.Request)
- func (m *Manager) SessionLoginURL(sessionID string) (string, error)
- type SessionData
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSessionNotFound = errors.New("session not found, try to login again") ErrInvalidSessionID = errors.New("invalid session id, please try logging in again") )
Functions ¶
This section is empty.
Types ¶
type KiteConnect ¶
type KiteConnect struct {
// Add fields here
Client *kiteconnect.Client // TODO: this can be made private ?
}
func NewKiteConnect ¶
func NewKiteConnect(apiKey string) *KiteConnect
type Manager ¶
type Manager struct {
Instruments *instruments.Manager
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) ClearSession ¶
func (*Manager) GenerateSession ¶
func (*Manager) GetSession ¶
func (m *Manager) GetSession(sessionID string) (*SessionData, error)
func (*Manager) HandleKiteCallback ¶
func (m *Manager) HandleKiteCallback() func(w http.ResponseWriter, r *http.Request)
type SessionData ¶
type SessionData struct {
Kite *KiteConnect
}
Click to show internal directories.
Click to hide internal directories.