Documentation ¶
Index ¶
- type AppID
- type AppOptions
- type Client
- type EmptyOption
- type Encoding
- type InstanceID
- type Node
- type NodeID
- type Option
- func WithASN1Encoding() Option
- func WithAppID(appID AppID) Option
- func WithE2TAddress(host string, port int) Option
- func WithE2THost(host string) Option
- func WithE2TPort(port int) Option
- func WithEncoding(encoding Encoding) Option
- func WithInstanceID(instanceID InstanceID) Option
- func WithOptions(opts Options) Option
- func WithProtoEncoding() Option
- func WithServiceModel(name ServiceModelName, version ServiceModelVersion) Option
- type Options
- type ServiceModelName
- type ServiceModelOptions
- type ServiceModelVersion
- type ServiceOptions
- type SubscribeOption
- type SubscribeOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppOptions ¶
type AppOptions struct { // AppID is the application identifier AppID AppID // InstanceID is the application instance identifier InstanceID InstanceID }
AppOptions are the options for the application
type Node ¶
type Node interface { // ID is the node identifier ID() NodeID // 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, name string, sub e2api.SubscriptionSpec, indCh chan<- e2api.Indication, opts ...SubscribeOption) (e2api.ChannelID, error) // Unsubscribe unsubscribes from the given subscription Unsubscribe(ctx context.Context, name string) error // Control creates and sends a E2 control message and awaits the outcome Control(ctx context.Context, message *e2api.ControlMessage) (*e2api.ControlOutcome, error) }
Node is an E2 node
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option is an E2 client option
func WithASN1Encoding ¶
func WithASN1Encoding() Option
WithASN1Encoding sets the client encoding to ASN1Encoding
func WithE2TAddress ¶
WithE2TAddress sets the address for the E2T service
func WithE2THost ¶
WithE2THost sets the host for the E2T service
func WithEncoding ¶
WithEncoding sets the client encoding
func WithInstanceID ¶
func WithInstanceID(instanceID InstanceID) Option
WithInstanceID sets the client instance identifier
func WithProtoEncoding ¶
func WithProtoEncoding() Option
WithProtoEncoding sets the client encoding to ProtoEncoding
func WithServiceModel ¶
func WithServiceModel(name ServiceModelName, version ServiceModelVersion) Option
WithServiceModel sets the client service model
type Options ¶
type Options struct { // AppOptions are the options for the application App AppOptions // ServiceMode is service model options ServiceModel ServiceModelOptions // Service is the E2 termination service configuration Service ServiceOptions // Topo is the topology service configuration Topo ServiceOptions // Encoding is the default encoding Encoding Encoding }
Options is a set of E2 client options
type ServiceModelOptions ¶
type ServiceModelOptions struct { // Name is the service model identifier Name ServiceModelName // Version is the service model version Version ServiceModelVersion }
ServiceModelOptions is options for defining a service model
type ServiceOptions ¶
type ServiceOptions struct { // Host is the service host Host string // Port is the service port Port int }
ServiceOptions are the options for a service
func (ServiceOptions) GetAddress ¶
func (o ServiceOptions) GetAddress() string
GetAddress gets the service address
func (ServiceOptions) GetHost ¶
func (o ServiceOptions) GetHost() string
GetHost gets the service host
type SubscribeOption ¶ added in v0.7.26
type SubscribeOption interface {
// contains filtered or unexported methods
}
SubscribeOption is an option for subscribe request
func WithTransactionTimeout ¶ added in v0.7.26
func WithTransactionTimeout(transactionTimeout time.Duration) SubscribeOption
WithTransactionTimeout sets a timeout value for subscriptions
type SubscribeOptions ¶ added in v0.7.26
SubscribeOptions are the options for a subscription