streamdal

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address string
	Token   string
	Timeout int
}

type Filter

type Filter struct {
	Name   string
	Values []string
}

func (*Filter) String

func (f *Filter) String() string

type Streamdal

type Streamdal struct {
	Token  string
	Client protos.ExternalClient
	// contains filtered or unexported fields
}

func New

func New(cfg *Config) (*Streamdal, error)

func (*Streamdal) Close

func (s *Streamdal) Close() error

func (*Streamdal) CreateAudience

func (*Streamdal) CreatePipeline

func (*Streamdal) DeleteAudience

func (*Streamdal) DeleteNotification

func (*Streamdal) DeletePipeline

func (*Streamdal) GetAudience

func (s *Streamdal) GetAudience(ctx context.Context, id string) (*protos.Audience, error)

func (*Streamdal) GetAudienceFilter

func (s *Streamdal) GetAudienceFilter(filters []*Filter) (map[string]interface{}, diag.Diagnostics)

func (*Streamdal) GetNotification

func (*Streamdal) GetNotificationConfigFilter

func (s *Streamdal) GetNotificationConfigFilter(filters []*Filter) (map[string]interface{}, diag.Diagnostics)

func (*Streamdal) GetPipeline

func (*Streamdal) GetPipelineFilter

func (s *Streamdal) GetPipelineFilter(filters []*Filter) (map[string]interface{}, diag.Diagnostics)

GetPipelineFilter obtains a pipeline for a data source

func (*Streamdal) GetPipelinesForAudience

func (s *Streamdal) GetPipelinesForAudience(ctx context.Context, aud *protos.Audience) ([]string, error)

GetPipelinesForAudience returns a list of pipeline IDs that are associated with the given audience. Used for obtaining pipeline assignments for the audience resource

func (*Streamdal) SetPipelines

func (s *Streamdal) SetPipelines(ctx context.Context, aud *protos.Audience, pipelineIDs []string) (*protos.StandardResponse, error)

func (*Streamdal) UpdateNotification

func (*Streamdal) UpdatePipeline

Jump to

Keyboard shortcuts

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