service

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package service is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSmfAppInterface

type MockSmfAppInterface struct {
	// contains filtered or unexported fields
}

MockSmfAppInterface is a mock of SmfAppInterface interface.

func NewMockSmfAppInterface

func NewMockSmfAppInterface(ctrl *gomock.Controller) *MockSmfAppInterface

NewMockSmfAppInterface creates a new mock instance.

func (*MockSmfAppInterface) Config

func (m *MockSmfAppInterface) Config() *factory.Config

Config mocks base method.

func (*MockSmfAppInterface) Consumer

func (m *MockSmfAppInterface) Consumer() *consumer.Consumer

Consumer mocks base method.

func (*MockSmfAppInterface) Context

func (m *MockSmfAppInterface) Context() *context.SMFContext

Context mocks base method.

func (*MockSmfAppInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSmfAppInterface) Processor

func (m *MockSmfAppInterface) Processor() *processor.Processor

Processor mocks base method.

func (*MockSmfAppInterface) SetLogEnable

func (m *MockSmfAppInterface) SetLogEnable(enable bool)

SetLogEnable mocks base method.

func (*MockSmfAppInterface) SetLogLevel

func (m *MockSmfAppInterface) SetLogLevel(level string)

SetLogLevel mocks base method.

func (*MockSmfAppInterface) SetReportCaller

func (m *MockSmfAppInterface) SetReportCaller(reportCaller bool)

SetReportCaller mocks base method.

func (*MockSmfAppInterface) Start

func (m *MockSmfAppInterface) Start()

Start mocks base method.

func (*MockSmfAppInterface) Terminate

func (m *MockSmfAppInterface) Terminate()

Terminate mocks base method.

type MockSmfAppInterfaceMockRecorder

type MockSmfAppInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockSmfAppInterfaceMockRecorder is the mock recorder for MockSmfAppInterface.

func (*MockSmfAppInterfaceMockRecorder) Config

Config indicates an expected call of Config.

func (*MockSmfAppInterfaceMockRecorder) Consumer

Consumer indicates an expected call of Consumer.

func (*MockSmfAppInterfaceMockRecorder) Context

Context indicates an expected call of Context.

func (*MockSmfAppInterfaceMockRecorder) Processor

func (mr *MockSmfAppInterfaceMockRecorder) Processor() *gomock.Call

Processor indicates an expected call of Processor.

func (*MockSmfAppInterfaceMockRecorder) SetLogEnable

func (mr *MockSmfAppInterfaceMockRecorder) SetLogEnable(enable any) *gomock.Call

SetLogEnable indicates an expected call of SetLogEnable.

func (*MockSmfAppInterfaceMockRecorder) SetLogLevel

func (mr *MockSmfAppInterfaceMockRecorder) SetLogLevel(level any) *gomock.Call

SetLogLevel indicates an expected call of SetLogLevel.

func (*MockSmfAppInterfaceMockRecorder) SetReportCaller

func (mr *MockSmfAppInterfaceMockRecorder) SetReportCaller(reportCaller any) *gomock.Call

SetReportCaller indicates an expected call of SetReportCaller.

func (*MockSmfAppInterfaceMockRecorder) Start

Start indicates an expected call of Start.

func (*MockSmfAppInterfaceMockRecorder) Terminate

func (mr *MockSmfAppInterfaceMockRecorder) Terminate() *gomock.Call

Terminate indicates an expected call of Terminate.

type SmfApp

type SmfApp struct {
	SmfAppInterface
	// contains filtered or unexported fields
}

func NewApp

func NewApp(
	ctx context.Context, cfg *factory.Config, tlsKeyLogPath string,
	pfcpStart func(*SmfApp), pfcpTerminate func(),
) (*SmfApp, error)

func (*SmfApp) CancelContext

func (a *SmfApp) CancelContext() context.Context

func (*SmfApp) Config

func (a *SmfApp) Config() *factory.Config

func (*SmfApp) Consumer

func (a *SmfApp) Consumer() *consumer.Consumer

func (*SmfApp) Context

func (a *SmfApp) Context() *smf_context.SMFContext

func (*SmfApp) Processor

func (a *SmfApp) Processor() *processor.Processor

func (*SmfApp) SetLogEnable

func (a *SmfApp) SetLogEnable(enable bool)

func (*SmfApp) SetLogLevel

func (a *SmfApp) SetLogLevel(level string)

func (*SmfApp) SetReportCaller

func (a *SmfApp) SetReportCaller(reportCaller bool)

func (*SmfApp) Start

func (a *SmfApp) Start()

func (*SmfApp) Terminate

func (a *SmfApp) Terminate()

func (*SmfApp) WaitRoutineStopped

func (a *SmfApp) WaitRoutineStopped()

type SmfAppInterface

type SmfAppInterface interface {
	app.App

	Consumer() *consumer.Consumer
	Processor() *processor.Processor
}
var SMF SmfAppInterface

func GetApp

func GetApp() SmfAppInterface

Jump to

Keyboard shortcuts

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