Versions in this module Expand all Collapse all v0 v0.1.1 Jul 15, 2022 v0.1.0 Jun 9, 2022 Changes in this version + type Api struct + Root string + func New() Api + func (a *Api) ConfirmLogin(confirmationId string) (TokenResponse, error) + func (a *Api) Logout() error + func (a *Api) Register(email string) (TokenResponse, error) + func (a *Api) SetToken(token string) error + func (a Api) ChannelStats(id string) (SubscribedChannelDeletedResponse, error) + func (a Api) Channels() ([]Channel, error) + func (a Api) ConfirmEmail(confirmationId string) (ConfirmedEmailResponse, error) + func (a Api) CreateChannel(req CreateChannelRequest) (Channel, error) + func (a Api) CreateDevice(req CreateDeviceRequest) (DeviceResponse, error) + func (a Api) CreateMessage(channel Channel, req CreateMessageRequest) (Message, error) + func (a Api) GetChannel(id string) (Channel, error) + func (a Api) Hello() error + func (a Api) LoggedIn() bool + func (a Api) Login(email string) (LoginAttemptResponse, error) + func (a Api) MessagesOfAllChannels() ([]Message, error) + func (a Api) MessagesOfChannel(channel Channel) ([]Message, error) + func (a Api) OwnChannels() ([]Channel, error) + func (a Api) Profile() (User, error) + func (a Api) PublicNotify(notifyKey string, req CreateMessageRequest) (NotifyMessageResponse, error) + func (a Api) SharedChannels() ([]Channel, error) + func (a Api) SubscribeToChannel(req CreateSubscriptionRequest) (Channel, error) + func (a Api) UnsubscribeChannel(id string) (SubscribedChannelDeletedResponse, error) + func (a Api) UpdateChannel(id string, req UpdateSubscriptionRequest) (Channel, error) + func (a Api) UpdateDevice(id string, req UpdateDeviceRequest) (DeviceResponse, error) + func (a Api) UpdateProfile(req UpdateProfileRequest) (User, error) + type Channel = SubscribedChannelResponse + type ConfirmedEmailResponse struct + type CreateChannelRequest struct + IsSilent bool + Title string + type CreateDeviceRequest struct + IsProduction bool + Token string + type CreateMessageRequest struct + Body string + Color string + Title string + type CreateSubscriptionRequest struct + IsSilent bool + ReceiveOrNotifyKey string + type CreateUserRequest struct + Email *string + type DeviceResponse struct + ID string + IsProduction bool + Token string + type LoginAttemptResponse struct + type LoginUserRequest struct + Email string + type Message = MessageResponse + type MessageResponse struct + Body string + Channel string + ColorName string + CreatedAt string + ID string + Title string + type NotifyMessageResponse struct + Body string + Color string + CreatedAt string + ID string + Title string + type SubscribedChannelDeletedResponse struct + type SubscribedChannelResponse struct + Id string + IsSilent bool + NotifyKey *string + ReceiveOnlyKey string + Title string + type SubscribedChannelStatisticsResponse struct + Messages int + Notifiers int + Receivers int + type TokenResponse struct + Token string + User User + type UpdateDeviceRequest struct + IsProduction bool + type UpdateProfileRequest struct + Email string + type UpdateSubscriptionRequest struct + IsSilent bool + type User = UserResponse + type UserResponse struct + Email string + ID string + IsConfirmed bool