notification

package
v0.0.0-...-e46bc45 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotificationResponse_StatusCode_name = map[int32]string{
		0: "UNKNOWN",
		1: "OK",
		2: "FAILED",
	}
	NotificationResponse_StatusCode_value = map[string]int32{
		"UNKNOWN": 0,
		"OK":      1,
		"FAILED":  2,
	}
)

Enum value maps for NotificationResponse_StatusCode.

View Source
var File_wso2_discovery_subscription_notificationds_proto protoreflect.FileDescriptor

Functions

func RegisterNotificationServiceServer

func RegisterNotificationServiceServer(s *grpc.Server, srv NotificationServiceServer)

func StartGRPCServer

func StartGRPCServer()

StartGRPCServer starts the GRPC server for notifications

Types

type Application

type Application struct {
	EventId      string             `protobuf:"bytes,1,opt,name=eventId,proto3" json:"eventId,omitempty"`
	Name         string             `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Uuid         string             `protobuf:"bytes,3,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Owner        string             `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"`
	Policy       string             `protobuf:"bytes,5,opt,name=policy,proto3" json:"policy,omitempty"`
	Attributes   map[string]string  `` /* 161-byte string literal not displayed */
	Keys         []*Application_Key `protobuf:"bytes,7,rep,name=keys,proto3" json:"keys,omitempty"`
	Organization string             `protobuf:"bytes,8,opt,name=organization,proto3" json:"organization,omitempty"`
	TimeStamp    string             `protobuf:"bytes,9,opt,name=timeStamp,proto3" json:"timeStamp,omitempty"`
	// contains filtered or unexported fields
}

func (*Application) Descriptor deprecated

func (*Application) Descriptor() ([]byte, []int)

Deprecated: Use Application.ProtoReflect.Descriptor instead.

func (*Application) GetAttributes

func (x *Application) GetAttributes() map[string]string

func (*Application) GetEventId

func (x *Application) GetEventId() string

func (*Application) GetKeys

func (x *Application) GetKeys() []*Application_Key

func (*Application) GetName

func (x *Application) GetName() string

func (*Application) GetOrganization

func (x *Application) GetOrganization() string

func (*Application) GetOwner

func (x *Application) GetOwner() string

func (*Application) GetPolicy

func (x *Application) GetPolicy() string

func (*Application) GetTimeStamp

func (x *Application) GetTimeStamp() string

func (*Application) GetUuid

func (x *Application) GetUuid() string

func (*Application) ProtoMessage

func (*Application) ProtoMessage()

func (*Application) ProtoReflect

func (x *Application) ProtoReflect() protoreflect.Message

func (*Application) Reset

func (x *Application) Reset()

func (*Application) String

func (x *Application) String() string

type Application_Key

type Application_Key struct {
	Key        string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	KeyManager string `protobuf:"bytes,2,opt,name=keyManager,proto3" json:"keyManager,omitempty"`
	// contains filtered or unexported fields
}

func (*Application_Key) Descriptor deprecated

func (*Application_Key) Descriptor() ([]byte, []int)

Deprecated: Use Application_Key.ProtoReflect.Descriptor instead.

func (*Application_Key) GetKey

func (x *Application_Key) GetKey() string

func (*Application_Key) GetKeyManager

func (x *Application_Key) GetKeyManager() string

func (*Application_Key) ProtoMessage

func (*Application_Key) ProtoMessage()

func (*Application_Key) ProtoReflect

func (x *Application_Key) ProtoReflect() protoreflect.Message

func (*Application_Key) Reset

func (x *Application_Key) Reset()

func (*Application_Key) String

func (x *Application_Key) String() string

type NotificationResponse

type NotificationResponse struct {
	Code NotificationResponse_StatusCode `protobuf:"varint,1,opt,name=code,proto3,enum=discovery.service.apkmgt.NotificationResponse_StatusCode" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationResponse) Descriptor deprecated

func (*NotificationResponse) Descriptor() ([]byte, []int)

Deprecated: Use NotificationResponse.ProtoReflect.Descriptor instead.

func (*NotificationResponse) GetCode

func (*NotificationResponse) ProtoMessage

func (*NotificationResponse) ProtoMessage()

func (*NotificationResponse) ProtoReflect

func (x *NotificationResponse) ProtoReflect() protoreflect.Message

func (*NotificationResponse) Reset

func (x *NotificationResponse) Reset()

func (*NotificationResponse) String

func (x *NotificationResponse) String() string

type NotificationResponse_StatusCode

type NotificationResponse_StatusCode int32
const (
	// The response code is not known.
	NotificationResponse_UNKNOWN NotificationResponse_StatusCode = 0
	// The response code to notify that the number of requests are under limit.
	NotificationResponse_OK NotificationResponse_StatusCode = 1
	// The response code to notify that the number of requests are over limit.
	NotificationResponse_FAILED NotificationResponse_StatusCode = 2
)

func (NotificationResponse_StatusCode) Descriptor

func (NotificationResponse_StatusCode) Enum

func (NotificationResponse_StatusCode) EnumDescriptor deprecated

func (NotificationResponse_StatusCode) EnumDescriptor() ([]byte, []int)

Deprecated: Use NotificationResponse_StatusCode.Descriptor instead.

func (NotificationResponse_StatusCode) Number

func (NotificationResponse_StatusCode) String

func (NotificationResponse_StatusCode) Type

type NotificationServiceClient

type NotificationServiceClient interface {
	CreateApplication(ctx context.Context, in *Application, opts ...grpc.CallOption) (*NotificationResponse, error)
	UpdateApplication(ctx context.Context, in *Application, opts ...grpc.CallOption) (*NotificationResponse, error)
	DeleteApplication(ctx context.Context, in *Application, opts ...grpc.CallOption) (*NotificationResponse, error)
	CreateSubscription(ctx context.Context, in *Subscription, opts ...grpc.CallOption) (*NotificationResponse, error)
	UpdateSubscription(ctx context.Context, in *Subscription, opts ...grpc.CallOption) (*NotificationResponse, error)
	DeleteSubscription(ctx context.Context, in *Subscription, opts ...grpc.CallOption) (*NotificationResponse, error)
}

NotificationServiceClient is the client API for NotificationService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type NotificationServiceServer

type NotificationServiceServer interface {
	CreateApplication(context.Context, *Application) (*NotificationResponse, error)
	UpdateApplication(context.Context, *Application) (*NotificationResponse, error)
	DeleteApplication(context.Context, *Application) (*NotificationResponse, error)
	CreateSubscription(context.Context, *Subscription) (*NotificationResponse, error)
	UpdateSubscription(context.Context, *Subscription) (*NotificationResponse, error)
	DeleteSubscription(context.Context, *Subscription) (*NotificationResponse, error)
}

NotificationServiceServer is the server API for NotificationService service.

type Subscription

type Subscription struct {
	EventId        string `protobuf:"bytes,1,opt,name=eventId,proto3" json:"eventId,omitempty"`
	ApplicationRef string `protobuf:"bytes,2,opt,name=applicationRef,proto3" json:"applicationRef,omitempty"`
	ApiRef         string `protobuf:"bytes,3,opt,name=apiRef,proto3" json:"apiRef,omitempty"`
	PolicyId       string `protobuf:"bytes,4,opt,name=policyId,proto3" json:"policyId,omitempty"`
	SubStatus      string `protobuf:"bytes,5,opt,name=subStatus,proto3" json:"subStatus,omitempty"`
	Subscriber     string `protobuf:"bytes,6,opt,name=subscriber,proto3" json:"subscriber,omitempty"`
	Uuid           string `protobuf:"bytes,7,opt,name=uuid,proto3" json:"uuid,omitempty"`
	TimeStamp      string `protobuf:"bytes,8,opt,name=timeStamp,proto3" json:"timeStamp,omitempty"`
	Organization   string `protobuf:"bytes,9,opt,name=organization,proto3" json:"organization,omitempty"`
	// contains filtered or unexported fields
}

func (*Subscription) Descriptor deprecated

func (*Subscription) Descriptor() ([]byte, []int)

Deprecated: Use Subscription.ProtoReflect.Descriptor instead.

func (*Subscription) GetApiRef

func (x *Subscription) GetApiRef() string

func (*Subscription) GetApplicationRef

func (x *Subscription) GetApplicationRef() string

func (*Subscription) GetEventId

func (x *Subscription) GetEventId() string

func (*Subscription) GetOrganization

func (x *Subscription) GetOrganization() string

func (*Subscription) GetPolicyId

func (x *Subscription) GetPolicyId() string

func (*Subscription) GetSubStatus

func (x *Subscription) GetSubStatus() string

func (*Subscription) GetSubscriber

func (x *Subscription) GetSubscriber() string

func (*Subscription) GetTimeStamp

func (x *Subscription) GetTimeStamp() string

func (*Subscription) GetUuid

func (x *Subscription) GetUuid() string

func (*Subscription) ProtoMessage

func (*Subscription) ProtoMessage()

func (*Subscription) ProtoReflect

func (x *Subscription) ProtoReflect() protoreflect.Message

func (*Subscription) Reset

func (x *Subscription) Reset()

func (*Subscription) String

func (x *Subscription) String() string

type UnimplementedNotificationServiceServer

type UnimplementedNotificationServiceServer struct {
}

UnimplementedNotificationServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedNotificationServiceServer) CreateApplication

func (*UnimplementedNotificationServiceServer) CreateSubscription

func (*UnimplementedNotificationServiceServer) DeleteApplication

func (*UnimplementedNotificationServiceServer) DeleteSubscription

func (*UnimplementedNotificationServiceServer) UpdateApplication

func (*UnimplementedNotificationServiceServer) UpdateSubscription

Jump to

Keyboard shortcuts

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