gen

package
v0.0.0-...-9e1cc8c Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MPL-2.0 Imports: 15 Imported by: 3

Documentation

Index

Constants

View Source
const (
	InvitationService_Add_FullMethodName                  = "/ukama.registry.invitation.v1.InvitationService/Add"
	InvitationService_Get_FullMethodName                  = "/ukama.registry.invitation.v1.InvitationService/Get"
	InvitationService_UpdateStatus_FullMethodName         = "/ukama.registry.invitation.v1.InvitationService/UpdateStatus"
	InvitationService_Delete_FullMethodName               = "/ukama.registry.invitation.v1.InvitationService/Delete"
	InvitationService_GetByOrg_FullMethodName             = "/ukama.registry.invitation.v1.InvitationService/GetByOrg"
	InvitationService_GetInvitationByEmail_FullMethodName = "/ukama.registry.invitation.v1.InvitationService/GetInvitationByEmail"
)

Variables

View Source
var (
	StatusType_name = map[int32]string{
		0: "Pending",
		1: "Accepted",
		2: "Declined",
		3: "Unknown",
	}
	StatusType_value = map[string]int32{
		"Pending":  0,
		"Accepted": 1,
		"Declined": 2,
		"Unknown":  3,
	}
)

Enum value maps for StatusType.

View Source
var (
	RoleType_name = map[int32]string{
		0: "OWNER",
		1: "ADMIN",
		2: "EMPLOYEE",
		3: "VENDOR",
		4: "USERS",
	}
	RoleType_value = map[string]int32{
		"OWNER":    0,
		"ADMIN":    1,
		"EMPLOYEE": 2,
		"VENDOR":   3,
		"USERS":    4,
	}
)

Enum value maps for RoleType.

View Source
var File_invitation_proto protoreflect.FileDescriptor
View Source
var InvitationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ukama.registry.invitation.v1.InvitationService",
	HandlerType: (*InvitationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Add",
			Handler:    _InvitationService_Add_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _InvitationService_Get_Handler,
		},
		{
			MethodName: "UpdateStatus",
			Handler:    _InvitationService_UpdateStatus_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _InvitationService_Delete_Handler,
		},
		{
			MethodName: "GetByOrg",
			Handler:    _InvitationService_GetByOrg_Handler,
		},
		{
			MethodName: "GetInvitationByEmail",
			Handler:    _InvitationService_GetInvitationByEmail_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "invitation.proto",
}

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

Functions

func RegisterInvitationServiceServer

func RegisterInvitationServiceServer(s grpc.ServiceRegistrar, srv InvitationServiceServer)

Types

type AddInvitationRequest

type AddInvitationRequest struct {
	Org      string                 `protobuf:"bytes,2,opt,name=org,proto3" json:"org,omitempty"`
	Name     string                 `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Email    string                 `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	Role     RoleType               `protobuf:"varint,5,opt,name=role,proto3,enum=ukama.registry.invitation.v1.RoleType" json:"role,omitempty"`
	ExpireAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=expire_at,json=expireAt,proto3" json:"expire_at,omitempty"`
	// contains filtered or unexported fields
}

func (*AddInvitationRequest) Descriptor deprecated

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

Deprecated: Use AddInvitationRequest.ProtoReflect.Descriptor instead.

func (*AddInvitationRequest) GetEmail

func (x *AddInvitationRequest) GetEmail() string

func (*AddInvitationRequest) GetExpireAt

func (x *AddInvitationRequest) GetExpireAt() *timestamppb.Timestamp

func (*AddInvitationRequest) GetName

func (x *AddInvitationRequest) GetName() string

func (*AddInvitationRequest) GetOrg

func (x *AddInvitationRequest) GetOrg() string

func (*AddInvitationRequest) GetRole

func (x *AddInvitationRequest) GetRole() RoleType

func (*AddInvitationRequest) ProtoMessage

func (*AddInvitationRequest) ProtoMessage()

func (*AddInvitationRequest) ProtoReflect

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

func (*AddInvitationRequest) Reset

func (x *AddInvitationRequest) Reset()

func (*AddInvitationRequest) String

func (x *AddInvitationRequest) String() string

func (*AddInvitationRequest) Validate

func (this *AddInvitationRequest) Validate() error

type AddInvitationResponse

type AddInvitationResponse struct {
	Invitation *Invitation `protobuf:"bytes,1,opt,name=invitation,proto3" json:"invitation,omitempty"`
	// contains filtered or unexported fields
}

func (*AddInvitationResponse) Descriptor deprecated

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

Deprecated: Use AddInvitationResponse.ProtoReflect.Descriptor instead.

func (*AddInvitationResponse) GetInvitation

func (x *AddInvitationResponse) GetInvitation() *Invitation

func (*AddInvitationResponse) ProtoMessage

func (*AddInvitationResponse) ProtoMessage()

func (*AddInvitationResponse) ProtoReflect

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

func (*AddInvitationResponse) Reset

func (x *AddInvitationResponse) Reset()

func (*AddInvitationResponse) String

func (x *AddInvitationResponse) String() string

func (*AddInvitationResponse) Validate

func (this *AddInvitationResponse) Validate() error

type DeleteInvitationRequest

type DeleteInvitationRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteInvitationRequest) Descriptor deprecated

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

Deprecated: Use DeleteInvitationRequest.ProtoReflect.Descriptor instead.

func (*DeleteInvitationRequest) GetId

func (x *DeleteInvitationRequest) GetId() string

func (*DeleteInvitationRequest) ProtoMessage

func (*DeleteInvitationRequest) ProtoMessage()

func (*DeleteInvitationRequest) ProtoReflect

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

func (*DeleteInvitationRequest) Reset

func (x *DeleteInvitationRequest) Reset()

func (*DeleteInvitationRequest) String

func (x *DeleteInvitationRequest) String() string

func (*DeleteInvitationRequest) Validate

func (this *DeleteInvitationRequest) Validate() error

type DeleteInvitationResponse

type DeleteInvitationResponse struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteInvitationResponse) Descriptor deprecated

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

Deprecated: Use DeleteInvitationResponse.ProtoReflect.Descriptor instead.

func (*DeleteInvitationResponse) GetId

func (x *DeleteInvitationResponse) GetId() string

func (*DeleteInvitationResponse) ProtoMessage

func (*DeleteInvitationResponse) ProtoMessage()

func (*DeleteInvitationResponse) ProtoReflect

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

func (*DeleteInvitationResponse) Reset

func (x *DeleteInvitationResponse) Reset()

func (*DeleteInvitationResponse) String

func (x *DeleteInvitationResponse) String() string

func (*DeleteInvitationResponse) Validate

func (this *DeleteInvitationResponse) Validate() error

type GetInvitationByEmailRequest

type GetInvitationByEmailRequest struct {
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInvitationByEmailRequest) Descriptor deprecated

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

Deprecated: Use GetInvitationByEmailRequest.ProtoReflect.Descriptor instead.

func (*GetInvitationByEmailRequest) GetEmail

func (x *GetInvitationByEmailRequest) GetEmail() string

func (*GetInvitationByEmailRequest) ProtoMessage

func (*GetInvitationByEmailRequest) ProtoMessage()

func (*GetInvitationByEmailRequest) ProtoReflect

func (*GetInvitationByEmailRequest) Reset

func (x *GetInvitationByEmailRequest) Reset()

func (*GetInvitationByEmailRequest) String

func (x *GetInvitationByEmailRequest) String() string

func (*GetInvitationByEmailRequest) Validate

func (this *GetInvitationByEmailRequest) Validate() error

type GetInvitationByEmailResponse

type GetInvitationByEmailResponse struct {
	Invitation *Invitation `protobuf:"bytes,1,opt,name=invitation,proto3" json:"invitation,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInvitationByEmailResponse) Descriptor deprecated

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

Deprecated: Use GetInvitationByEmailResponse.ProtoReflect.Descriptor instead.

func (*GetInvitationByEmailResponse) GetInvitation

func (x *GetInvitationByEmailResponse) GetInvitation() *Invitation

func (*GetInvitationByEmailResponse) ProtoMessage

func (*GetInvitationByEmailResponse) ProtoMessage()

func (*GetInvitationByEmailResponse) ProtoReflect

func (*GetInvitationByEmailResponse) Reset

func (x *GetInvitationByEmailResponse) Reset()

func (*GetInvitationByEmailResponse) String

func (*GetInvitationByEmailResponse) Validate

func (this *GetInvitationByEmailResponse) Validate() error

type GetInvitationByOrgRequest

type GetInvitationByOrgRequest struct {
	Org string `protobuf:"bytes,1,opt,name=org,proto3" json:"org,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInvitationByOrgRequest) Descriptor deprecated

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

Deprecated: Use GetInvitationByOrgRequest.ProtoReflect.Descriptor instead.

func (*GetInvitationByOrgRequest) GetOrg

func (x *GetInvitationByOrgRequest) GetOrg() string

func (*GetInvitationByOrgRequest) ProtoMessage

func (*GetInvitationByOrgRequest) ProtoMessage()

func (*GetInvitationByOrgRequest) ProtoReflect

func (*GetInvitationByOrgRequest) Reset

func (x *GetInvitationByOrgRequest) Reset()

func (*GetInvitationByOrgRequest) String

func (x *GetInvitationByOrgRequest) String() string

func (*GetInvitationByOrgRequest) Validate

func (this *GetInvitationByOrgRequest) Validate() error

type GetInvitationByOrgResponse

type GetInvitationByOrgResponse struct {
	Invitations []*Invitation `protobuf:"bytes,1,rep,name=invitations,proto3" json:"invitations,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInvitationByOrgResponse) Descriptor deprecated

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

Deprecated: Use GetInvitationByOrgResponse.ProtoReflect.Descriptor instead.

func (*GetInvitationByOrgResponse) GetInvitations

func (x *GetInvitationByOrgResponse) GetInvitations() []*Invitation

func (*GetInvitationByOrgResponse) ProtoMessage

func (*GetInvitationByOrgResponse) ProtoMessage()

func (*GetInvitationByOrgResponse) ProtoReflect

func (*GetInvitationByOrgResponse) Reset

func (x *GetInvitationByOrgResponse) Reset()

func (*GetInvitationByOrgResponse) String

func (x *GetInvitationByOrgResponse) String() string

func (*GetInvitationByOrgResponse) Validate

func (this *GetInvitationByOrgResponse) Validate() error

type GetInvitationRequest

type GetInvitationRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInvitationRequest) Descriptor deprecated

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

Deprecated: Use GetInvitationRequest.ProtoReflect.Descriptor instead.

func (*GetInvitationRequest) GetId

func (x *GetInvitationRequest) GetId() string

func (*GetInvitationRequest) ProtoMessage

func (*GetInvitationRequest) ProtoMessage()

func (*GetInvitationRequest) ProtoReflect

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

func (*GetInvitationRequest) Reset

func (x *GetInvitationRequest) Reset()

func (*GetInvitationRequest) String

func (x *GetInvitationRequest) String() string

func (*GetInvitationRequest) Validate

func (this *GetInvitationRequest) Validate() error

type GetInvitationResponse

type GetInvitationResponse struct {
	Invitation *Invitation `protobuf:"bytes,1,opt,name=invitation,proto3" json:"invitation,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInvitationResponse) Descriptor deprecated

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

Deprecated: Use GetInvitationResponse.ProtoReflect.Descriptor instead.

func (*GetInvitationResponse) GetInvitation

func (x *GetInvitationResponse) GetInvitation() *Invitation

func (*GetInvitationResponse) ProtoMessage

func (*GetInvitationResponse) ProtoMessage()

func (*GetInvitationResponse) ProtoReflect

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

func (*GetInvitationResponse) Reset

func (x *GetInvitationResponse) Reset()

func (*GetInvitationResponse) String

func (x *GetInvitationResponse) String() string

func (*GetInvitationResponse) Validate

func (this *GetInvitationResponse) Validate() error

type Invitation

type Invitation struct {
	Id       string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Org      string                 `protobuf:"bytes,2,opt,name=org,proto3" json:"org,omitempty"`
	Link     string                 `protobuf:"bytes,3,opt,name=link,proto3" json:"link,omitempty"`
	Name     string                 `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Email    string                 `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
	Role     RoleType               `protobuf:"varint,6,opt,name=role,proto3,enum=ukama.registry.invitation.v1.RoleType" json:"role,omitempty"`
	Status   StatusType             `protobuf:"varint,7,opt,name=status,proto3,enum=ukama.registry.invitation.v1.StatusType" json:"status,omitempty"`
	UserId   string                 `protobuf:"bytes,8,opt,name=userId,proto3" json:"userId,omitempty"`
	ExpireAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=expire_at,json=expireAt,proto3" json:"expire_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Invitation) Descriptor deprecated

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

Deprecated: Use Invitation.ProtoReflect.Descriptor instead.

func (*Invitation) GetEmail

func (x *Invitation) GetEmail() string

func (*Invitation) GetExpireAt

func (x *Invitation) GetExpireAt() *timestamppb.Timestamp

func (*Invitation) GetId

func (x *Invitation) GetId() string
func (x *Invitation) GetLink() string

func (*Invitation) GetName

func (x *Invitation) GetName() string

func (*Invitation) GetOrg

func (x *Invitation) GetOrg() string

func (*Invitation) GetRole

func (x *Invitation) GetRole() RoleType

func (*Invitation) GetStatus

func (x *Invitation) GetStatus() StatusType

func (*Invitation) GetUserId

func (x *Invitation) GetUserId() string

func (*Invitation) ProtoMessage

func (*Invitation) ProtoMessage()

func (*Invitation) ProtoReflect

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

func (*Invitation) Reset

func (x *Invitation) Reset()

func (*Invitation) String

func (x *Invitation) String() string

func (*Invitation) Validate

func (this *Invitation) Validate() error

type InvitationServiceClient

InvitationServiceClient is the client API for InvitationService 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 InvitationServiceServer

InvitationServiceServer is the server API for InvitationService service. All implementations must embed UnimplementedInvitationServiceServer for forward compatibility

type RoleType

type RoleType int32
const (
	RoleType_OWNER    RoleType = 0
	RoleType_ADMIN    RoleType = 1
	RoleType_EMPLOYEE RoleType = 2
	RoleType_VENDOR   RoleType = 3
	RoleType_USERS    RoleType = 4
)

func (RoleType) Descriptor

func (RoleType) Descriptor() protoreflect.EnumDescriptor

func (RoleType) Enum

func (x RoleType) Enum() *RoleType

func (RoleType) EnumDescriptor deprecated

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

Deprecated: Use RoleType.Descriptor instead.

func (RoleType) Number

func (x RoleType) Number() protoreflect.EnumNumber

func (RoleType) String

func (x RoleType) String() string

func (RoleType) Type

type StatusType

type StatusType int32
const (
	StatusType_Pending  StatusType = 0
	StatusType_Accepted StatusType = 1
	StatusType_Declined StatusType = 2
	StatusType_Unknown  StatusType = 3
)

func (StatusType) Descriptor

func (StatusType) Descriptor() protoreflect.EnumDescriptor

func (StatusType) Enum

func (x StatusType) Enum() *StatusType

func (StatusType) EnumDescriptor deprecated

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

Deprecated: Use StatusType.Descriptor instead.

func (StatusType) Number

func (x StatusType) Number() protoreflect.EnumNumber

func (StatusType) String

func (x StatusType) String() string

func (StatusType) Type

type UnimplementedInvitationServiceServer

type UnimplementedInvitationServiceServer struct {
}

UnimplementedInvitationServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedInvitationServiceServer) Add

func (UnimplementedInvitationServiceServer) Delete

func (UnimplementedInvitationServiceServer) Get

func (UnimplementedInvitationServiceServer) GetInvitationByEmail

type UnsafeInvitationServiceServer

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

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

type UpdateInvitationStatusRequest

type UpdateInvitationStatusRequest struct {
	Id     string     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Status StatusType `protobuf:"varint,2,opt,name=status,proto3,enum=ukama.registry.invitation.v1.StatusType" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateInvitationStatusRequest) Descriptor deprecated

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

Deprecated: Use UpdateInvitationStatusRequest.ProtoReflect.Descriptor instead.

func (*UpdateInvitationStatusRequest) GetId

func (*UpdateInvitationStatusRequest) GetStatus

func (*UpdateInvitationStatusRequest) ProtoMessage

func (*UpdateInvitationStatusRequest) ProtoMessage()

func (*UpdateInvitationStatusRequest) ProtoReflect

func (*UpdateInvitationStatusRequest) Reset

func (x *UpdateInvitationStatusRequest) Reset()

func (*UpdateInvitationStatusRequest) String

func (*UpdateInvitationStatusRequest) Validate

func (this *UpdateInvitationStatusRequest) Validate() error

type UpdateInvitationStatusResponse

type UpdateInvitationStatusResponse struct {
	Id     string     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Status StatusType `protobuf:"varint,2,opt,name=status,proto3,enum=ukama.registry.invitation.v1.StatusType" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateInvitationStatusResponse) Descriptor deprecated

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

Deprecated: Use UpdateInvitationStatusResponse.ProtoReflect.Descriptor instead.

func (*UpdateInvitationStatusResponse) GetId

func (*UpdateInvitationStatusResponse) GetStatus

func (*UpdateInvitationStatusResponse) ProtoMessage

func (*UpdateInvitationStatusResponse) ProtoMessage()

func (*UpdateInvitationStatusResponse) ProtoReflect

func (*UpdateInvitationStatusResponse) Reset

func (x *UpdateInvitationStatusResponse) Reset()

func (*UpdateInvitationStatusResponse) String

func (*UpdateInvitationStatusResponse) Validate

func (this *UpdateInvitationStatusResponse) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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