Documentation
¶
Index ¶
- Constants
- func GetAccountTier() apiv1.DeviceHandshakeResponse_AccountTier
- func GetHMACSecret() []byte
- func GetToken(ctx context.Context) (string, error)
- func GetTrialEndsAt() int64
- func PerformHandshake(ctx context.Context, client apiv1connect.ApiServiceClient) error
- func ScheduleHandshake(ctx context.Context, client apiv1connect.ApiServiceClient) error
- type Service
- func (s *Service) CheckoutLink(ctx context.Context) (string, error)
- func (s *Service) CustomerPortal(ctx context.Context) (string, error)
- func (s *Service) GetAccountTier(ctx context.Context) (apiv1.DeviceHandshakeResponse_AccountTier, error)
- func (s *Service) GetToken(ctx context.Context) (string, error)
- func (s *Service) GetTrialEndsAt(ctx context.Context) (int64, error)
Constants ¶
View Source
const ( KeychainService = "focusd-engine" KeychainUser = "auth-token" )
Variables ¶
This section is empty.
Functions ¶
func GetAccountTier ¶ added in v0.0.24
func GetAccountTier() apiv1.DeviceHandshakeResponse_AccountTier
func GetHMACSecret ¶
func GetHMACSecret() []byte
func GetTrialEndsAt ¶ added in v0.0.24
func GetTrialEndsAt() int64
func PerformHandshake ¶
func PerformHandshake(ctx context.Context, client apiv1connect.ApiServiceClient) error
func ScheduleHandshake ¶
func ScheduleHandshake(ctx context.Context, client apiv1connect.ApiServiceClient) error
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(apiClient apiv1connect.ApiServiceClient) *Service
func (*Service) CustomerPortal ¶ added in v0.0.24
func (*Service) GetAccountTier ¶
Click to show internal directories.
Click to hide internal directories.