Documentation ¶
Index ¶
- Constants
- func CreateOrWriteTokenFile() (*os.File, error)
- func GetConnection() *sql.Conn
- func GetSecretFile() (*os.File, error)
- func GetSecretFilePath() string
- func GetToken() (*oauth2.Token, error)
- func GetTokenFilePath() string
- func Migrate()
- func ReadTokenFile() (*os.File, error)
- func SaveToken(token string) error
- type FavoriteSheet
- type Storage
- func (s *Storage) Get(name string) (string, error)
- func (s *Storage) GetDelimiter() string
- func (s *Storage) GetProp(prop string) (string, error)
- func (s *Storage) GetSelectedFavorite() string
- func (s *Storage) ListAll() []FavoriteSheet
- func (s *Storage) Remove(id string) error
- func (s *Storage) SetDelimiter(delimiter string)
- func (s *Storage) SetProp(prop string, value string) error
- func (s *Storage) SetSelectedFavorite(name string)
- func (s *Storage) Store(sheet FavoriteSheet)
Constants ¶
View Source
const FILENAME = "./secret.json"
Variables ¶
This section is empty.
Functions ¶
func CreateOrWriteTokenFile ¶
func GetConnection ¶
func GetSecretFile ¶
func GetSecretFilePath ¶
func GetSecretFilePath() string
func GetTokenFilePath ¶
func GetTokenFilePath() string
func ReadTokenFile ¶
Types ¶
type FavoriteSheet ¶
type Storage ¶
func GetStorage ¶
func GetStorage() Storage
func (*Storage) GetDelimiter ¶
func (*Storage) GetSelectedFavorite ¶
func (*Storage) ListAll ¶
func (s *Storage) ListAll() []FavoriteSheet
func (*Storage) SetDelimiter ¶
func (*Storage) SetSelectedFavorite ¶
func (*Storage) Store ¶
func (s *Storage) Store(sheet FavoriteSheet)
Click to show internal directories.
Click to hide internal directories.