service

package
v0.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInfra

func NewInfra() infra.Service

NewInfra returns the infra service implementation.

func NewMobile

func NewMobile(ctx context.Context) mobile.Service

NewMobile returns the mobile service implementation.

func NewOpenapi

func NewOpenapi() openapi.Service

NewOpenapi returns the openapi service implementation.

func NewWeb

func NewWeb(ctx context.Context) web.Service

NewWeb returns the web service implementation.

func NewWebImplementation

func NewWebImplementation(ctx context.Context) web.Service

NewWebImplementation returns the shared web service implementation.

Types

type WebImpl

type WebImpl struct {
	// contains filtered or unexported fields
}

WebImpl implements the web service example behavior.

func (*WebImpl) Articles

func (w *WebImpl) Articles(ctx context.Context, p *web.ArticlesPayload) (res []*web.AnalyzedArticle, err error)

func (*WebImpl) BasicAuth

func (w *WebImpl) BasicAuth(ctx context.Context, user, pass string, scheme *security.BasicScheme) (context.Context, error)

func (*WebImpl) ContextByDomain

func (w *WebImpl) ContextByDomain(ctx context.Context, p *web.ContextByDomainPayload) (res []*web.TrendContext, err error)

func (*WebImpl) DomainComparisonEndpoint

func (w *WebImpl) DomainComparisonEndpoint(ctx context.Context, p *web.DomainComparisonPayload) (res []*web.DomainComparison, err error)

func (*WebImpl) Domains

func (w *WebImpl) Domains(ctx context.Context, p *web.DomainsPayload) (res []*web.DomainEntry, err error)

func (*WebImpl) Item

func (w *WebImpl) Item(ctx context.Context, p *web.ItemPayload) (res *web.AnalyzedItem, err error)

func (*WebImpl) LifecycleByDomain

func (w *WebImpl) LifecycleByDomain(ctx context.Context, p *web.LifecycleByDomainPayload) (res []*web.Lifecycle, err error)

func (*WebImpl) Sentiments

func (w *WebImpl) Sentiments(ctx context.Context, p *web.SentimentsPayload) (res *web.SentimentItem, err error)

func (*WebImpl) Site

func (w *WebImpl) Site(ctx context.Context, p *web.SitePayload) (res []*web.AnalyzedSiteItem, err error)

func (*WebImpl) TopTrendsByDomain

func (w *WebImpl) TopTrendsByDomain(ctx context.Context, p *web.TopTrendsByDomainPayload) (res []*web.TrendMetric, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL