e2

package
v0.7.11 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: Apache-2.0 Imports: 18 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 creates a subscription from the given SubscriptionDetails
	// The Subscribe method will block until the subscription is successfully registered.
	// The context.Context represents the lifecycle of this initial subscription process.
	// Once the subscription has been created and the method returns, indications will be written
	// to the given channel.
	// If the subscription is successful, a subscription.Context will be returned. The subscription
	// context can be used to cancel the subscription by calling Close() on the subscription.Context.
	Subscribe(ctx context.Context, details subapi.SubscriptionDetails, ch chan<- indication.Indication) (subscription.Context, error)

	// Control creates and sends a E2 control request and recevies a control response.
	Control(ctx context.Context, request *e2tapi.ControlRequest) (*e2tapi.ControlResponse, 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
	// E2TService is the E2 termination service configuration
	E2TService 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