Versions in this module Expand all Collapse all v3 v3.0.1 Jan 11, 2025 v3.0.0 Jul 14, 2024 Changes in this version + type Action string + const Delete + const New + const Restore + const Update + type Author struct + AuthorURL string + ID int + Platform object.Platform + SharedPostAuthorID int + SharedPostAuthorURL string + type Error struct + Code ErrorType + Message string + func (e Error) Error() string + func (e Error) Is(target error) bool + type ErrorType int + const ErrBadKey + const ErrBadStreamID + const ErrConnectionAlreadyEstablished + const ErrContentType + const ErrInvalidJSON + const ErrInvalidRule + const ErrMinusKeywordsOnly + const ErrMissingKey + const ErrNoType + const ErrTagAlreadyExist + const ErrTagNotExist + const ErrTooManyFilters + const ErrTooManyRules + const ErrUnbalancedQuotes + const ErrUnsupportedHTTP + const ErrUpgradeWebsocket + func (e ErrorType) Error() string + type Event struct + Action Action + ActionTime int + Attachments []object.WallWallpostAttachment + Author Author + CreationTime int + EventID struct{ ... } + EventType EventType + EventURL string + Geo object.BaseGeo + SharedPostCreationTime int + SharedPostText string + SignerID int + Tags []string + Text string + type EventType string + const Comment + const Post + const Share + const TopicPost + type Rule struct + Tag string + Value string + type Streaming struct + Client *http.Client + Dialer *websocket.Dialer + Endpoint string + Key string + StreamID int + UserAgent string + func NewStreaming(vk *api.VK) (*Streaming, error) + func (s *Streaming) AddRule(tag, value string) error + func (s *Streaming) DeleteRule(tag string) error + func (s *Streaming) GetRules() ([]Rule, error) + func (s *Streaming) OnEvent(f func(Event)) + func (s *Streaming) Run() error + func (s *Streaming) Shutdown() + func (s *Streaming) UpdateRules(rules []Rule) error Other modules containing this package github.com/SevereCloud/vksdk github.com/SevereCloud/vksdk/v2