comm

package
v0.0.0-...-f95323f Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(localLog zerolog.Logger, args ...any) error

Bind a list of clients and servers together, top down

func WithApplicationServiceElementAseID

func WithApplicationServiceElementAseID(aseID int, ase ApplicationServiceElement) GenericApplier[*applicationServiceElement]

func WithClientCID

func WithClientCID(cid int, requirements ClientRequirements) GenericApplier[*client]

func WithServerSID

func WithServerSID(sid int, requirements ServerRequirements) GenericApplier[*server]

func WithServiceAccessPointSapID

func WithServiceAccessPointSapID(sapID int, sap ServiceAccessPoint) GenericApplier[*serviceAccessPoint]

Types

type ApplicationServiceElementContract

type ApplicationServiceElementContract interface {
	utils.Serializable
	Request(args Args, kwArgs KWArgs) error
	Response(args Args, kwArgs KWArgs) error
	GetElementId() *int

	GetElementService() ElementService
	// contains filtered or unexported methods
}

ApplicationServiceElementContract provides a set of functions which can be overwritten by a sub struct

func NewApplicationServiceElement

func NewApplicationServiceElement(localLog zerolog.Logger, options ...Option) (ApplicationServiceElementContract, error)

type ApplicationServiceElementRequirements

type ApplicationServiceElementRequirements interface {
	Confirmation(args Args, kwArgs KWArgs) error
	Indication(args Args, kwArgs KWArgs) error
}

ApplicationServiceElementRequirements provides a set of functions which must be overwritten by a sub struct

type CPDU

type CPDU interface {
	PCI
	PDUData
	DeepCopy() any
}

func NewCPDU

func NewCPDU(data any, kwArgs KWArgs, options ...Option) CPDU

type Client

type Client interface {
	ClientContract
	ClientRequirements
}

type ClientContract

type ClientContract interface {
	fmt.Stringer
	utils.Serializable
	GetClientID() *int
	Request(args Args, kwArgs KWArgs) error
	// contains filtered or unexported methods
}

ClientContract provides a set of functions which can be overwritten by a sub struct

func NewClient

func NewClient(localLog zerolog.Logger, options ...Option) (ClientContract, error)

type ClientRequirements

type ClientRequirements interface {
	Confirmation(args Args, kwArgs KWArgs) error
}

ClientRequirements provides a set of functions which must be overwritten by a sub struct

type ElementService

type ElementService interface {
	SapIndication(args Args, kwArgs KWArgs) error
	SapConfirmation(args Args, kwArgs KWArgs) error
}

ElementService is required by ApplicationServiceElementContract to work properly

type Server

type Server interface {
	ServerContract
	ServerRequirements
}

type ServerContract

type ServerContract interface {
	fmt.Stringer
	utils.Serializable
	Response(args Args, kwArgs KWArgs) error

	HasServerPeer() bool
	GetServerId() *int
	// contains filtered or unexported methods
}

ServerContract provides a set of functions which can be overwritten by a sub struct

func NewServer

func NewServer(localLog zerolog.Logger, options ...Option) (ServerContract, error)

type ServerRequirements

type ServerRequirements interface {
	Indication(args Args, kwArgs KWArgs) error
}

ServerRequirements provides a set of functions which must be overwritten by a sub struct

type ServiceAccessPointContract

type ServiceAccessPointContract interface {
	fmt.Stringer
	utils.Serializable
	GetServiceID() *int
	SapRequest(Args, KWArgs) error
	SapResponse(Args, KWArgs) error

	GetServiceElement() ServiceElement
	// contains filtered or unexported methods
}

ServiceAccessPointContract provides a set of functions which can be overwritten by a sub struct

func NewServiceAccessPoint

func NewServiceAccessPoint(localLog zerolog.Logger, options ...Option) (ServiceAccessPointContract, error)

type ServiceAccessPointRequirements

type ServiceAccessPointRequirements interface {
	SapIndication(Args, KWArgs) error
	SapConfirmation(Args, KWArgs) error
}

ServiceAccessPointRequirements provides a set of functions which must be overwritten by a sub struct

type ServiceElement

type ServiceElement interface {
	Indication(args Args, kwArgs KWArgs) error
	Confirmation(args Args, kwArgs KWArgs) error
}

Jump to

Keyboard shortcuts

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