vnf_kafka

package
v0.0.0-...-8fce991 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

* PPPOE VNF main file * * Created by João Correia(Altice Labs) on 20/03/2023

* PPPOE VNF main file * * Created by João Correia(Altice Labs) on 20/03/2023

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartKafkaConnection

func StartKafkaConnection(config KafkaConnectionConfig, handler KafkaHandler)

Types

type KafkaConnectionConfig

type KafkaConnectionConfig struct {
	PConfigMap *kafka.ConfigMap
	CConfigMap *kafka.ConfigMap
	CTopics    []string
}

type KafkaHandler

type KafkaHandler interface {
	//request
	Hello(*kafka.Producer, *pb.Msg)
	GetData(*kafka.Producer, *pb.Msg)
	ReplaceConfig(*kafka.Producer, *pb.Msg)
	UpdateConfig(*kafka.Producer, *pb.Msg)
	RPC(*kafka.Producer, *pb.Msg)
	Action(*kafka.Producer, *pb.Msg)

	Notification(*kafka.Producer, *pb.Msg)
}

type UnimplementedKafkaHandler

type UnimplementedKafkaHandler struct{}

func (*UnimplementedKafkaHandler) Action

func (*UnimplementedKafkaHandler) GetData

func (*UnimplementedKafkaHandler) Hello

func (*UnimplementedKafkaHandler) Notification

func (*UnimplementedKafkaHandler) Notification(*kafka.Producer, *pb.Msg)

func (*UnimplementedKafkaHandler) RPC

func (*UnimplementedKafkaHandler) ReplaceConfig

func (*UnimplementedKafkaHandler) ReplaceConfig(*kafka.Producer, *pb.Msg)

func (*UnimplementedKafkaHandler) UpdateConfig

func (*UnimplementedKafkaHandler) UpdateConfig(*kafka.Producer, *pb.Msg)

Jump to

Keyboard shortcuts

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