Versions in this module Expand all Collapse all v0 v0.0.1 Apr 23, 2024 Changes in this version + const KEYSIZE + func CheckColumns(df dataframe.DataFrame) error + func CheckDupID(id, spreadID string, accounts []Account) error + func CheckDuplicate(str []string) []string + func CheckPasswordHash(password, hash string) bool + func DecryptPassword(ciphertext string, key []byte) (string, error) + func DfNrowToLastNrow(df dataframe.DataFrame) int + func EncryptPassword(password string, key []byte) (string, error) + func GenerateKey() ([]byte, error) + func GetUniqueKeys[T any](data []T, extractor GetUniqueExtractor[T]) []string + func IsTime(times []time.Time, t time.Time) bool + func Mask(s string) string + func StrUpsideDown(s string) string + func ToHash(password string) (string, error) + type Account struct + AccessSecret string + AccessToken string + ID string + Password string + SpreadID string + Subscribed SubscribedPlan + UUID string + func NewAccount(id, sheetID, accessToken, accessSecret string) *Account + func (a *Account) SetSubscribed(level SubscribedPlan) *Account + func (p Account) GetID() string + type Claims struct + AccessSecret string + AccessToken string + ID string + RequestToken string + RequestTokenSecret string + SpreadsheetID string + func (p Claims) GetID() string + type ClientForFirestore struct + CredentialFile string + ProjectID string + func (p *ClientForFirestore) Get(ctx context.Context, colName, docKey string, data any) error + func (p *ClientForFirestore) IsExist(ctx context.Context, colName string, docKeys ...string) (isExistKeys []string, err error) + func (p *ClientForFirestore) NewClient(ctx context.Context) (*firestore.Client, error) + func (p *ClientForFirestore) Set(ctx context.Context, colName, docKey string, data any) error + type GetUniqueExtractor func(T) string + type Group struct + ChildPostIds []string + IsOn bool + OwnerId string + ParentPostId string + type Post struct + Checked int + Count int + CreatedAt time.Time + File1 string + File2 string + File3 string + File4 string + ID string + IsDelete bool + IsSchedule bool + LastPostedAt time.Time + PostURL string + Priority int + Text string + UUID string + WithFiles int + func (p *Post) IsPastLastPostedAt(minutes int) bool + func (p *Post) SetCreateAt() bool + func (p *Post) SetLastPostedAt() bool + func (p *Post) ToURLValues() url.Values + func (p Post) GetID() string + type Rule struct + IsDisenable bool + IsImmediate bool + IsScheduleAllPosts bool + TermHours int + Times []time.Time + UUID string + type Schedule struct + Day int + IsImmediate bool + IsSchedule bool + Month time.Month + OwnerId string + PostID string + Times []time.Time + TypeSchedule TypeSchedule + Week time.Weekday + func (s Schedule) IsScheduleToday(t time.Time) bool + type SubscribedPlan uint8 + const SubscribedBasic + const SubscribedFree + const SubscribedPro + const Unsubscribed + type TypeSchedule int + const Daily + const Monthly + const None + const Weekly + const Yearly + func (p TypeSchedule) String() string