Documentation
ΒΆ
Index ΒΆ
- type Api
- 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) ConfirmLogin(confirmationId string) (TokenResponse, 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) Logout() 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) Register(email string) (TokenResponse, error)
- func (a *Api) SetToken(token string) 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
- type ConfirmedEmailResponse
- type CreateChannelRequest
- type CreateDeviceRequest
- type CreateMessageRequest
- type CreateSubscriptionRequest
- type CreateUserRequest
- type DeviceResponse
- type LoginAttemptResponse
- type LoginUserRequest
- type Message
- type MessageResponse
- type NotifyMessageResponse
- type SubscribedChannelDeletedResponse
- type SubscribedChannelResponse
- type SubscribedChannelStatisticsResponse
- type TokenResponse
- type UpdateDeviceRequest
- type UpdateProfileRequest
- type UpdateSubscriptionRequest
- type User
- type UserResponse
Constants ΒΆ
This section is empty.
Variables ΒΆ
This section is empty.
Functions ΒΆ
This section is empty.
Types ΒΆ
type Api ΒΆ
type Api struct {
Root string
// contains filtered or unexported fields
}
func (Api) ChannelStats ΒΆ
func (a Api) ChannelStats(id string) (SubscribedChannelDeletedResponse, error)
func (Api) ConfirmEmail ΒΆ
func (a Api) ConfirmEmail(confirmationId string) (ConfirmedEmailResponse, error)
func (*Api) ConfirmLogin ΒΆ
func (a *Api) ConfirmLogin(confirmationId string) (TokenResponse, error)
func (Api) CreateChannel ΒΆ
func (a Api) CreateChannel(req CreateChannelRequest) (Channel, error)
func (Api) CreateDevice ΒΆ
func (a Api) CreateDevice(req CreateDeviceRequest) (DeviceResponse, error)
func (Api) CreateMessage ΒΆ
func (a Api) CreateMessage(channel Channel, req CreateMessageRequest) (Message, error)
func (Api) MessagesOfAllChannels ΒΆ
func (Api) OwnChannels ΒΆ
func (Api) PublicNotify ΒΆ
func (a Api) PublicNotify(notifyKey string, req CreateMessageRequest) (NotifyMessageResponse, error)
func (Api) SharedChannels ΒΆ
func (Api) SubscribeToChannel ΒΆ
func (a Api) SubscribeToChannel(req CreateSubscriptionRequest) (Channel, error)
func (Api) UnsubscribeChannel ΒΆ
func (a Api) UnsubscribeChannel(id string) (SubscribedChannelDeletedResponse, error)
func (Api) UpdateChannel ΒΆ
func (a Api) UpdateChannel(id string, req UpdateSubscriptionRequest) (Channel, error)
func (Api) UpdateDevice ΒΆ
func (a Api) UpdateDevice(id string, req UpdateDeviceRequest) (DeviceResponse, error)
func (Api) UpdateProfile ΒΆ
func (a Api) UpdateProfile(req UpdateProfileRequest) (User, error)
type Channel ΒΆ
type Channel = SubscribedChannelResponse
type ConfirmedEmailResponse ΒΆ
type ConfirmedEmailResponse struct{}
type CreateChannelRequest ΒΆ
type CreateDeviceRequest ΒΆ
type CreateMessageRequest ΒΆ
type CreateUserRequest ΒΆ
type CreateUserRequest struct {
Email *string `json:"email"`
}
type DeviceResponse ΒΆ
type LoginAttemptResponse ΒΆ
type LoginAttemptResponse struct{}
type LoginUserRequest ΒΆ
type LoginUserRequest struct {
Email string `json:"email"`
}
type Message ΒΆ
type Message = MessageResponse
type MessageResponse ΒΆ
type NotifyMessageResponse ΒΆ
type SubscribedChannelDeletedResponse ΒΆ
type SubscribedChannelDeletedResponse struct{}
type TokenResponse ΒΆ
type UpdateDeviceRequest ΒΆ
type UpdateDeviceRequest struct {
IsProduction bool `json:"isProduction"`
}
type UpdateProfileRequest ΒΆ
type UpdateProfileRequest struct {
Email string `json:"email"`
}
type UpdateSubscriptionRequest ΒΆ
type UpdateSubscriptionRequest struct {
IsSilent bool `json:"isSilent"`
}
type User ΒΆ
type User = UserResponse
type UserResponse ΒΆ
Click to show internal directories.
Click to hide internal directories.
