e2

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.6.2

type Client interface {
	// Subscribe subscribes the client to indications
	Subscribe(ctx context.Context, sub subscription.Subscription, ch chan<- indication.Indication) error
}

Client is an E2 client

func NewClient added in v0.6.2

func NewClient(config Config) (Client, error)

NewClient creates a new E2 client

type Config added in v0.6.2

type Config struct {
	// AppID is the application identifier
	AppID app.ID
	// InstanceID is the application instance identifier
	InstanceID app.InstanceID
	// SubscriptionService is the subscription service configuration
	SubscriptionService ServiceConfig
}

Config is an E2 client configuration

type ServiceConfig added in v0.6.2

type ServiceConfig struct {
	// Host is the service host
	Host string
	// Port is the service port
	Port int
}

ServiceConfig is an E2 service configuration

func (ServiceConfig) GetHost added in v0.6.2

func (c ServiceConfig) GetHost() string

GetHost gets the service host

func (ServiceConfig) GetPort added in v0.6.2

func (c ServiceConfig) GetPort() int

GetPort gets the service port

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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