kc

package
v0.1.0-dev0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 NewManager(apiKey, apiSecret string) *Manager

func (*Manager) ClearSession

func (m *Manager) ClearSession(sessionID string)

func (*Manager) GenerateSession

func (m *Manager) GenerateSession(sessionID, requestToken string) error

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)

func (*Manager) SessionLoginURL

func (m *Manager) SessionLoginURL(sessionID string) (string, error)

type SessionData

type SessionData struct {
	Kite *KiteConnect
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL