v1

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConsentEventService_StreamConsentChangeEvents_FullMethodName = "/wgtwo.consents.v1.ConsentEventService/StreamConsentChangeEvents"
	ConsentEventService_AckConsentChangeEvent_FullMethodName     = "/wgtwo.consents.v1.ConsentEventService/AckConsentChangeEvent"
)

Variables

View Source
var ConsentEventService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "wgtwo.consents.v1.ConsentEventService",
	HandlerType: (*ConsentEventServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AckConsentChangeEvent",
			Handler:    _ConsentEventService_AckConsentChangeEvent_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "StreamConsentChangeEvents",
			Handler:       _ConsentEventService_StreamConsentChangeEvents_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "wgtwo/consents/v1/consent_events.proto",
}

ConsentEventService_ServiceDesc is the grpc.ServiceDesc for ConsentEventService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_wgtwo_consents_v1_consent_events_proto protoreflect.FileDescriptor

Functions

func RegisterConsentEventServiceServer

func RegisterConsentEventServiceServer(s grpc.ServiceRegistrar, srv ConsentEventServiceServer)

Types

type AckConsentChangeEventRequest

type AckConsentChangeEventRequest struct {
	AckInfo *v1.AckInfo `protobuf:"bytes,1,opt,name=ack_info,json=ackInfo,proto3" json:"ack_info,omitempty"`
	// contains filtered or unexported fields
}

func (*AckConsentChangeEventRequest) Descriptor deprecated

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

Deprecated: Use AckConsentChangeEventRequest.ProtoReflect.Descriptor instead.

func (*AckConsentChangeEventRequest) GetAckInfo

func (x *AckConsentChangeEventRequest) GetAckInfo() *v1.AckInfo

func (*AckConsentChangeEventRequest) ProtoMessage

func (*AckConsentChangeEventRequest) ProtoMessage()

func (*AckConsentChangeEventRequest) ProtoReflect

func (*AckConsentChangeEventRequest) Reset

func (x *AckConsentChangeEventRequest) Reset()

func (*AckConsentChangeEventRequest) String

type AckConsentChangeEventResponse

type AckConsentChangeEventResponse struct {
	AckStatus *v1.AckStatus `protobuf:"bytes,1,opt,name=ack_status,json=ackStatus,proto3" json:"ack_status,omitempty"`
	// contains filtered or unexported fields
}

func (*AckConsentChangeEventResponse) Descriptor deprecated

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

Deprecated: Use AckConsentChangeEventResponse.ProtoReflect.Descriptor instead.

func (*AckConsentChangeEventResponse) GetAckStatus

func (x *AckConsentChangeEventResponse) GetAckStatus() *v1.AckStatus

func (*AckConsentChangeEventResponse) ProtoMessage

func (*AckConsentChangeEventResponse) ProtoMessage()

func (*AckConsentChangeEventResponse) ProtoReflect

func (*AckConsentChangeEventResponse) Reset

func (x *AckConsentChangeEventResponse) Reset()

func (*AckConsentChangeEventResponse) String

type ConsentAdded

type ConsentAdded struct {
	Scopes []string `protobuf:"bytes,1,rep,name=scopes,proto3" json:"scopes,omitempty"`
	// contains filtered or unexported fields
}

func (*ConsentAdded) Descriptor deprecated

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

Deprecated: Use ConsentAdded.ProtoReflect.Descriptor instead.

func (*ConsentAdded) GetScopes

func (x *ConsentAdded) GetScopes() []string

func (*ConsentAdded) ProtoMessage

func (*ConsentAdded) ProtoMessage()

func (*ConsentAdded) ProtoReflect

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

func (*ConsentAdded) Reset

func (x *ConsentAdded) Reset()

func (*ConsentAdded) String

func (x *ConsentAdded) String() string

type ConsentChangeEvent

type ConsentChangeEvent struct {

	// Types that are assignable to Type:
	//
	//	*ConsentChangeEvent_Added
	//	*ConsentChangeEvent_Updated
	//	*ConsentChangeEvent_Revoked
	Type isConsentChangeEvent_Type `protobuf_oneof:"type"`
	// Types that are assignable to Target:
	//
	//	*ConsentChangeEvent_Number
	//	*ConsentChangeEvent_Tenant
	Target isConsentChangeEvent_Target `protobuf_oneof:"target"`
	// contains filtered or unexported fields
}

func (*ConsentChangeEvent) Descriptor deprecated

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

Deprecated: Use ConsentChangeEvent.ProtoReflect.Descriptor instead.

func (*ConsentChangeEvent) GetAdded

func (x *ConsentChangeEvent) GetAdded() *ConsentAdded

func (*ConsentChangeEvent) GetNumber

func (x *ConsentChangeEvent) GetNumber() *v11.E164

func (*ConsentChangeEvent) GetRevoked

func (x *ConsentChangeEvent) GetRevoked() *ConsentRevoked

func (*ConsentChangeEvent) GetTarget

func (m *ConsentChangeEvent) GetTarget() isConsentChangeEvent_Target

func (*ConsentChangeEvent) GetTenant

func (x *ConsentChangeEvent) GetTenant() string

func (*ConsentChangeEvent) GetType

func (m *ConsentChangeEvent) GetType() isConsentChangeEvent_Type

func (*ConsentChangeEvent) GetUpdated

func (x *ConsentChangeEvent) GetUpdated() *ConsentUpdated

func (*ConsentChangeEvent) ProtoMessage

func (*ConsentChangeEvent) ProtoMessage()

func (*ConsentChangeEvent) ProtoReflect

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

func (*ConsentChangeEvent) Reset

func (x *ConsentChangeEvent) Reset()

func (*ConsentChangeEvent) String

func (x *ConsentChangeEvent) String() string

type ConsentChangeEvent_Added

type ConsentChangeEvent_Added struct {
	Added *ConsentAdded `protobuf:"bytes,1,opt,name=added,proto3,oneof"`
}

type ConsentChangeEvent_Number

type ConsentChangeEvent_Number struct {
	// The international number of the subscriber.
	Number *v11.E164 `protobuf:"bytes,4,opt,name=number,proto3,oneof"`
}

type ConsentChangeEvent_Revoked

type ConsentChangeEvent_Revoked struct {
	Revoked *ConsentRevoked `protobuf:"bytes,3,opt,name=revoked,proto3,oneof"`
}

type ConsentChangeEvent_Tenant

type ConsentChangeEvent_Tenant struct {
	Tenant string `protobuf:"bytes,5,opt,name=tenant,proto3,oneof"`
}

type ConsentChangeEvent_Updated

type ConsentChangeEvent_Updated struct {
	Updated *ConsentUpdated `protobuf:"bytes,2,opt,name=updated,proto3,oneof"`
}

type ConsentEventServiceClient

type ConsentEventServiceClient interface {
	StreamConsentChangeEvents(ctx context.Context, in *StreamConsentChangeEventsRequest, opts ...grpc.CallOption) (ConsentEventService_StreamConsentChangeEventsClient, error)
	AckConsentChangeEvent(ctx context.Context, in *AckConsentChangeEventRequest, opts ...grpc.CallOption) (*AckConsentChangeEventResponse, error)
}

ConsentEventServiceClient is the client API for ConsentEventService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ConsentEventServiceServer

type ConsentEventServiceServer interface {
	StreamConsentChangeEvents(*StreamConsentChangeEventsRequest, ConsentEventService_StreamConsentChangeEventsServer) error
	AckConsentChangeEvent(context.Context, *AckConsentChangeEventRequest) (*AckConsentChangeEventResponse, error)
}

ConsentEventServiceServer is the server API for ConsentEventService service. All implementations should embed UnimplementedConsentEventServiceServer for forward compatibility

type ConsentEventService_StreamConsentChangeEventsClient

type ConsentEventService_StreamConsentChangeEventsClient interface {
	Recv() (*StreamConsentChangeEventsResponse, error)
	grpc.ClientStream
}

type ConsentEventService_StreamConsentChangeEventsServer

type ConsentEventService_StreamConsentChangeEventsServer interface {
	Send(*StreamConsentChangeEventsResponse) error
	grpc.ServerStream
}

type ConsentRevoked

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

func (*ConsentRevoked) Descriptor deprecated

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

Deprecated: Use ConsentRevoked.ProtoReflect.Descriptor instead.

func (*ConsentRevoked) ProtoMessage

func (*ConsentRevoked) ProtoMessage()

func (*ConsentRevoked) ProtoReflect

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

func (*ConsentRevoked) Reset

func (x *ConsentRevoked) Reset()

func (*ConsentRevoked) String

func (x *ConsentRevoked) String() string

type ConsentUpdated

type ConsentUpdated struct {
	Scopes []string `protobuf:"bytes,1,rep,name=scopes,proto3" json:"scopes,omitempty"`
	// contains filtered or unexported fields
}

func (*ConsentUpdated) Descriptor deprecated

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

Deprecated: Use ConsentUpdated.ProtoReflect.Descriptor instead.

func (*ConsentUpdated) GetScopes

func (x *ConsentUpdated) GetScopes() []string

func (*ConsentUpdated) ProtoMessage

func (*ConsentUpdated) ProtoMessage()

func (*ConsentUpdated) ProtoReflect

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

func (*ConsentUpdated) Reset

func (x *ConsentUpdated) Reset()

func (*ConsentUpdated) String

func (x *ConsentUpdated) String() string

type StreamConsentChangeEventsRequest

type StreamConsentChangeEventsRequest struct {
	StreamConfiguration *v1.StreamConfiguration `protobuf:"bytes,1,opt,name=stream_configuration,json=streamConfiguration,proto3" json:"stream_configuration,omitempty"`
	// contains filtered or unexported fields
}

func (*StreamConsentChangeEventsRequest) Descriptor deprecated

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

Deprecated: Use StreamConsentChangeEventsRequest.ProtoReflect.Descriptor instead.

func (*StreamConsentChangeEventsRequest) GetStreamConfiguration

func (x *StreamConsentChangeEventsRequest) GetStreamConfiguration() *v1.StreamConfiguration

func (*StreamConsentChangeEventsRequest) ProtoMessage

func (*StreamConsentChangeEventsRequest) ProtoMessage()

func (*StreamConsentChangeEventsRequest) ProtoReflect

func (*StreamConsentChangeEventsRequest) Reset

func (*StreamConsentChangeEventsRequest) String

type StreamConsentChangeEventsResponse

type StreamConsentChangeEventsResponse struct {
	Metadata           *v1.Metadata        `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	ConsentChangeEvent *ConsentChangeEvent `protobuf:"bytes,2,opt,name=consent_change_event,json=consentChangeEvent,proto3" json:"consent_change_event,omitempty"`
	// contains filtered or unexported fields
}

func (*StreamConsentChangeEventsResponse) Descriptor deprecated

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

Deprecated: Use StreamConsentChangeEventsResponse.ProtoReflect.Descriptor instead.

func (*StreamConsentChangeEventsResponse) GetConsentChangeEvent

func (x *StreamConsentChangeEventsResponse) GetConsentChangeEvent() *ConsentChangeEvent

func (*StreamConsentChangeEventsResponse) GetMetadata

func (x *StreamConsentChangeEventsResponse) GetMetadata() *v1.Metadata

func (*StreamConsentChangeEventsResponse) ProtoMessage

func (*StreamConsentChangeEventsResponse) ProtoMessage()

func (*StreamConsentChangeEventsResponse) ProtoReflect

func (*StreamConsentChangeEventsResponse) Reset

func (*StreamConsentChangeEventsResponse) String

type UnimplementedConsentEventServiceServer

type UnimplementedConsentEventServiceServer struct {
}

UnimplementedConsentEventServiceServer should be embedded to have forward compatible implementations.

type UnsafeConsentEventServiceServer

type UnsafeConsentEventServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeConsentEventServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ConsentEventServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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