Documentation ¶
Index ¶
- func Send(ctx context.Context, token string, chatID int64, subject, message string) error
- func SendBatch(ctx context.Context, token string, chatID int64, messages map[string]string) error
- type Handler
- func (h Handler) PullAccount(ctx context.Context, req *porter.PullAccountRequest) (*porter.PullAccountResponse, error)
- func (h Handler) PullAccountAppRelation(ctx context.Context, req *porter.PullAccountAppRelationRequest) (*porter.PullAccountAppRelationResponse, error)
- func (h Handler) PullApp(ctx context.Context, req *porter.PullAppRequest) (*porter.PullAppResponse, error)
- func (h Handler) PullFeed(ctx context.Context, req *porter.PullFeedRequest) (*porter.PullFeedResponse, error)
- func (h Handler) PushFeedItems(ctx context.Context, req *porter.PushFeedItemsRequest) (*porter.PushFeedItemsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct { }
func NewHandler ¶
func NewHandler() *Handler
func (Handler) PullAccount ¶
func (h Handler) PullAccount(ctx context.Context, req *porter.PullAccountRequest) ( *porter.PullAccountResponse, error)
func (Handler) PullAccountAppRelation ¶
func (h Handler) PullAccountAppRelation(ctx context.Context, req *porter.PullAccountAppRelationRequest) ( *porter.PullAccountAppRelationResponse, error)
func (Handler) PullApp ¶
func (h Handler) PullApp(ctx context.Context, req *porter.PullAppRequest) ( *porter.PullAppResponse, error)
func (Handler) PullFeed ¶
func (h Handler) PullFeed(ctx context.Context, req *porter.PullFeedRequest) ( *porter.PullFeedResponse, error)
func (Handler) PushFeedItems ¶
func (h Handler) PushFeedItems(ctx context.Context, req *porter.PushFeedItemsRequest) ( *porter.PushFeedItemsResponse, error)
Click to show internal directories.
Click to hide internal directories.