Documentation ¶
Index ¶
- func DecodePyrogramSession(hx string) (*session.Data, error)
- func NewSessionStorage(ctx context.Context, sessionType SessionConstructor, inMemory bool) (*storage.PeerStorage, telegram.SessionStorage, error)
- type AuthKey
- type Key
- type PyrogramSessionConstructor
- type SessionConstructor
- type SessionStorage
- type SimpleSessionConstructor
- type SqliteSessionConstructor
- type StringSessionConstructor
- type TDataSessionConstructor
- type TelethonSessionConstructor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSessionStorage ¶
func NewSessionStorage(ctx context.Context, sessionType SessionConstructor, inMemory bool) (*storage.PeerStorage, telegram.SessionStorage, error)
Types ¶
type PyrogramSessionConstructor ¶
type PyrogramSessionConstructor struct {
// contains filtered or unexported fields
}
func PyrogramSession ¶
func PyrogramSession(value string) *PyrogramSessionConstructor
func (*PyrogramSessionConstructor) Name ¶
func (s *PyrogramSessionConstructor) Name(name string) *PyrogramSessionConstructor
type SessionConstructor ¶
type SessionConstructor interface {
// contains filtered or unexported methods
}
type SessionStorage ¶
type SessionStorage struct {
// contains filtered or unexported fields
}
SessionStorage implements SessionStorage for file system as file stored in Path.
func (*SessionStorage) LoadSession ¶
func (f *SessionStorage) LoadSession(_ context.Context) ([]byte, error)
LoadSession loads session from file.
func (*SessionStorage) StoreSession ¶
func (f *SessionStorage) StoreSession(_ context.Context, data []byte) error
StoreSession stores session to sqlite storage.
type SimpleSessionConstructor ¶
type SimpleSessionConstructor int8
func SimpleSession ¶
func SimpleSession() *SimpleSessionConstructor
type SqliteSessionConstructor ¶
type SqliteSessionConstructor struct {
// contains filtered or unexported fields
}
func SqliteSession ¶
func SqliteSession(name string) *SqliteSessionConstructor
type StringSessionConstructor ¶
type StringSessionConstructor struct {
// contains filtered or unexported fields
}
func StringSession ¶
func StringSession(value string) *StringSessionConstructor
func (*StringSessionConstructor) Name ¶
func (s *StringSessionConstructor) Name(name string) *StringSessionConstructor
type TDataSessionConstructor ¶
type TDataSessionConstructor struct {
// contains filtered or unexported fields
}
func TDataSession ¶
func TDataSession(account tdesktop.Account) *TDataSessionConstructor
func TDataSessionList ¶
func TDataSessionList( path string, passcode []byte, ) ([]*TDataSessionConstructor, error)
type TelethonSessionConstructor ¶
type TelethonSessionConstructor struct {
// contains filtered or unexported fields
}
func TelethonSession ¶
func TelethonSession(value string) *TelethonSessionConstructor
func (*TelethonSessionConstructor) Name ¶
func (s *TelethonSessionConstructor) Name(name string) *TelethonSessionConstructor
Click to show internal directories.
Click to hide internal directories.