Versions in this module Expand all Collapse all v0 v0.1.2 Jul 16, 2026 Changes in this version + type AuthError struct + Body []byte + ContentType string + StatusCode int + func (e *AuthError) Error() string + type AuthenticationResponse struct + ServerInfo ServerInfo + UserInfo UserInfo + type Base64Value []byte + func New(b []byte) *Base64Value + func NewFromString(encoded string) (*Base64Value, error) + func (bv *Base64Value) MarshalJSON() ([]byte, error) + func (bv *Base64Value) String() string + func (bv *Base64Value) UnmarshalJSON(b []byte) error + type Category struct + ID FlexInt + Name string + Parent FlexInt + Type string + type ConvertibleBoolean struct + func (bit *ConvertibleBoolean) UnmarshalJSON(data []byte) error + func (bit ConvertibleBoolean) Bool() bool + func (bit ConvertibleBoolean) IsZero() bool + func (bit ConvertibleBoolean) MarshalJSON() ([]byte, error) + func (bit ConvertibleBoolean) String() string + type EPGInfo struct + ChannelID string + Description Base64Value + EPGID FlexInt + End string + HasArchive ConvertibleBoolean + ID FlexInt + Lang string + NowPlaying ConvertibleBoolean + Start string + StartTimestamp Timestamp + StopTimestamp Timestamp + Title Base64Value + type EpisodeInfo struct + AirDate string + BackdropPath *JSONStringSlice + Bitrate FlexInt + Crew string + DirectedBy string + Duration string + DurationSecs FlexInt + ID FlexInt + ImdbID string + MovieImage string + MovieImageTmdb string + Name string + Overview string + Plot string + Rating FlexFloat + ReleaseDate string + TmdbID FlexInt + TvdbID FlexInt + func (e *EpisodeInfo) UnmarshalJSON(b []byte) error + type FlexFloat struct + func (ff *FlexFloat) UnmarshalJSON(b []byte) error + func (ff FlexFloat) Float64() float64 + func (ff FlexFloat) MarshalJSON() ([]byte, error) + func (ff FlexFloat) String() string + type FlexInt struct + func NewFlexInt(v int64) FlexInt + func (f *FlexInt) UnmarshalJSON(data []byte) error + func (f FlexInt) Int() int + func (f FlexInt) Int64() int64 + func (f FlexInt) IsZero() bool + func (f FlexInt) MarshalJSON() ([]byte, error) + func (f FlexInt) String() string + type HTTPError struct + Body []byte + ContentType string + StatusCode int + func (e *HTTPError) Error() string + type JSONStringSlice struct + SingleString bool + Slice []string + func (b *JSONStringSlice) UnmarshalJSON(data []byte) error + func (b JSONStringSlice) MarshalJSON() ([]byte, error) + type Season struct + AirDate string + Cover string + CoverBig string + CoverTmdb string + Duration FlexInt + EpisodeCount FlexInt + ImdbID string + Name string + Overview string + ReleaseDate string + SeasonNumber FlexInt + TmdbID FlexInt + TvdbID FlexInt + func (s *Season) UnmarshalJSON(b []byte) error + type Series struct + Episodes map[string][]SeriesEpisode + Info SeriesInfo + Seasons []Season + type SeriesEpisode struct + Added Timestamp + ContainerExtension string + CustomSid string + DirectSource string + EpisodeNum FlexInt + ID FlexInt + ImdbID string + Info EpisodeInfo + Season FlexInt + Title string + TmdbID FlexInt + TvdbID FlexInt + func (s *SeriesEpisode) UnmarshalJSON(b []byte) error + type SeriesInfo struct + Added *Timestamp + BackdropPath *JSONStringSlice + Cast string + CategoryID *FlexInt + CategoryIDs []FlexInt + Cover string + Director string + EpisodeRunTime FlexInt + Genre string + ImdbID string + LastModified *Timestamp + Name string + Num FlexInt + Plot string + Rating FlexFloat + Rating5 FlexFloat + ReleaseDate string + SeriesID FlexInt + StreamType string + TmdbID FlexInt + TvdbID FlexInt + YoutubeTrailer string + func (s *SeriesInfo) UnmarshalJSON(b []byte) error + type ServerInfo struct + HTTPSPort FlexInt + IE ConvertibleBoolean + IEAuth ConvertibleBoolean + Port FlexInt + Process bool + Protocol string + RTMPPort FlexInt + Revision string + TimeNow string + TimestampNow Timestamp + Timezone string + URL string + Version string + XUI bool + type Stream struct + Added *Timestamp + CategoryID FlexInt + CategoryIDs []FlexInt + CategoryName string + ContainerExtension string + CustomSid string + DirectSource string + EPGChannelID string + ID FlexInt + Icon string + ImdbID string + IsAdult ConvertibleBoolean + Live ConvertibleBoolean + Name string + Number FlexInt + Rating FlexFloat + Rating5based FlexFloat + SeriesNo *FlexInt + TVArchive ConvertibleBoolean + TVArchiveDuration *FlexInt + TmdbID FlexInt + Trailer string + TvdbID FlexInt + Type string + TypeName string + func (s *Stream) UnmarshalJSON(b []byte) error + type Timestamp struct + func (t *Timestamp) UnmarshalJSON(b []byte) error + func (t Timestamp) MarshalJSON() ([]byte, error) + type UserInfo struct + ActiveConnections FlexInt + AllowedOutputFormats []string + Auth ConvertibleBoolean + CreatedAt Timestamp + ExpDate *Timestamp + IsTrial ConvertibleBoolean + MaxConnections FlexInt + Message string + Password string + PlaylistName string + Status string + Username string + type VODInfo struct + Actors string + Age string + BackdropPath []string + Bitrate FlexInt + Cast string + Country string + Cover string + CoverBig string + Description string + Director string + Duration string + DurationSecs FlexInt + EpisodeRunTime *FlexInt + Genre string + ImdbID string + KinopoiskURL string + MovieImage string + Name string + OriginalName string + Plot string + Rating FlexFloat + ReleaseDate string + Runtime string + Status string + TmdbID FlexInt + TvdbID FlexInt + Year FlexInt + YoutubeTrailer string + func (v *VODInfo) UnmarshalJSON(b []byte) error + type VODMovieData struct + Added Timestamp + CategoryID FlexInt + CategoryIDs []FlexInt + ContainerExtension string + CustomSid string + DirectSource string + Name string + StreamID FlexInt + type VideoOnDemandInfo struct + Info VODInfo + MovieData VODMovieData + func (v *VideoOnDemandInfo) UnmarshalJSON(b []byte) error + type XtreamClient struct + BaseURL string + Context context.Context + HTTP *http.Client + Password string + ServerInfo ServerInfo + UserAgent string + UserInfo UserInfo + Username string + func NewClient(username, password, baseURL string) (*XtreamClient, error) + func NewClientWithContext(ctx context.Context, username, password, baseURL string) (*XtreamClient, error) + func NewClientWithUserAgent(ctx context.Context, username, password, baseURL, userAgent string) (*XtreamClient, error) + func (c *XtreamClient) GetCategories(catType string) ([]Category, error) + func (c *XtreamClient) GetEPG(streamID string) ([]EPGInfo, error) + func (c *XtreamClient) GetLiveCategories() ([]Category, error) + func (c *XtreamClient) GetLiveStreams(categoryID string) ([]Stream, error) + func (c *XtreamClient) GetSeries(categoryID string) ([]SeriesInfo, error) + func (c *XtreamClient) GetSeriesCategories() ([]Category, error) + func (c *XtreamClient) GetSeriesInfo(seriesID string) (*Series, error) + func (c *XtreamClient) GetShortEPG(streamID string, limit int) ([]EPGInfo, error) + func (c *XtreamClient) GetStreamURL(streamID int, wantedFormat string) (string, error) + func (c *XtreamClient) GetStreams(streamAction, categoryID string) ([]Stream, error) + func (c *XtreamClient) GetVideoOnDemandCategories() ([]Category, error) + func (c *XtreamClient) GetVideoOnDemandInfo(vodID string) (*VideoOnDemandInfo, error) + func (c *XtreamClient) GetVideoOnDemandStreams(categoryID string) ([]Stream, error) + func (c *XtreamClient) GetXMLTV() ([]byte, error)