protos

package
v0.0.0-...-839d650 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	AuthRpcService_ValidateRequest_FullMethodName = "/protos.authRpcService/ValidateRequest"
	AuthRpcService_GetProjectById_FullMethodName  = "/protos.authRpcService/GetProjectById"
	AuthRpcService_GetUserById_FullMethodName     = "/protos.authRpcService/GetUserById"
)

Variables

View Source
var AuthRpcService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "protos.authRpcService",
	HandlerType: (*AuthRpcServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ValidateRequest",
			Handler:    _AuthRpcService_ValidateRequest_Handler,
		},
		{
			MethodName: "GetProjectById",
			Handler:    _AuthRpcService_GetProjectById_Handler,
		},
		{
			MethodName: "GetUserById",
			Handler:    _AuthRpcService_GetUserById_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "authentication.proto",
}

AuthRpcService_ServiceDesc is the grpc.ServiceDesc for AuthRpcService 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_authentication_proto protoreflect.FileDescriptor
View Source
var File_project_proto protoreflect.FileDescriptor
View Source
var Project_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "protos.Project",
	HandlerType: (*ProjectServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "InitializeProject",
			Handler:    _Project_InitializeProject_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "project.proto",
}

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

Functions

func RegisterAuthRpcServiceServer

func RegisterAuthRpcServiceServer(s grpc.ServiceRegistrar, srv AuthRpcServiceServer)

func RegisterProjectServer

func RegisterProjectServer(s grpc.ServiceRegistrar, srv ProjectServer)

Types

type AuthRpcServiceClient

type AuthRpcServiceClient interface {
	ValidateRequest(ctx context.Context, in *ValidationRequest, opts ...grpc.CallOption) (*ValidationResponse, error)
	GetProjectById(ctx context.Context, in *GetProjectByIdRequest, opts ...grpc.CallOption) (*GetProjectByIdResponse, error)
	GetUserById(ctx context.Context, in *GetUserByIdRequest, opts ...grpc.CallOption) (*GetUserByIdResponse, error)
}

AuthRpcServiceClient is the client API for AuthRpcService 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 AuthRpcServiceServer

type AuthRpcServiceServer interface {
	ValidateRequest(context.Context, *ValidationRequest) (*ValidationResponse, error)
	GetProjectById(context.Context, *GetProjectByIdRequest) (*GetProjectByIdResponse, error)
	GetUserById(context.Context, *GetUserByIdRequest) (*GetUserByIdResponse, error)
	// contains filtered or unexported methods
}

AuthRpcServiceServer is the server API for AuthRpcService service. All implementations must embed UnimplementedAuthRpcServiceServer for forward compatibility

type GetProjectByIdRequest

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

GetProjectByIdRequest is the message struct for requesting project details by ID

func (*GetProjectByIdRequest) Descriptor deprecated

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

Deprecated: Use GetProjectByIdRequest.ProtoReflect.Descriptor instead.

func (*GetProjectByIdRequest) GetProjectID

func (x *GetProjectByIdRequest) GetProjectID() string

func (*GetProjectByIdRequest) ProtoMessage

func (*GetProjectByIdRequest) ProtoMessage()

func (*GetProjectByIdRequest) ProtoReflect

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

func (*GetProjectByIdRequest) Reset

func (x *GetProjectByIdRequest) Reset()

func (*GetProjectByIdRequest) String

func (x *GetProjectByIdRequest) String() string

type GetProjectByIdResponse

type GetProjectByIdResponse struct {
	Id        string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Uid       string            `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
	Name      string            `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Members   []*ProjectMembers `protobuf:"bytes,4,rep,name=members,proto3" json:"members,omitempty"`
	State     string            `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"`
	CreatedAt string            `protobuf:"bytes,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt string            `protobuf:"bytes,7,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	RemovedAt string            `protobuf:"bytes,8,opt,name=removedAt,proto3" json:"removedAt,omitempty"`
	// contains filtered or unexported fields
}

GetProjectByIdRequest is the message struct for response of project details by ID

func (*GetProjectByIdResponse) Descriptor deprecated

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

Deprecated: Use GetProjectByIdResponse.ProtoReflect.Descriptor instead.

func (*GetProjectByIdResponse) GetCreatedAt

func (x *GetProjectByIdResponse) GetCreatedAt() string

func (*GetProjectByIdResponse) GetId

func (x *GetProjectByIdResponse) GetId() string

func (*GetProjectByIdResponse) GetMembers

func (x *GetProjectByIdResponse) GetMembers() []*ProjectMembers

func (*GetProjectByIdResponse) GetName

func (x *GetProjectByIdResponse) GetName() string

func (*GetProjectByIdResponse) GetRemovedAt

func (x *GetProjectByIdResponse) GetRemovedAt() string

func (*GetProjectByIdResponse) GetState

func (x *GetProjectByIdResponse) GetState() string

func (*GetProjectByIdResponse) GetUid

func (x *GetProjectByIdResponse) GetUid() string

func (*GetProjectByIdResponse) GetUpdatedAt

func (x *GetProjectByIdResponse) GetUpdatedAt() string

func (*GetProjectByIdResponse) ProtoMessage

func (*GetProjectByIdResponse) ProtoMessage()

func (*GetProjectByIdResponse) ProtoReflect

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

func (*GetProjectByIdResponse) Reset

func (x *GetProjectByIdResponse) Reset()

func (*GetProjectByIdResponse) String

func (x *GetProjectByIdResponse) String() string

type GetUserByIdRequest

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

GetUserByIdRequest is the message struct for requesting user details by ID

func (*GetUserByIdRequest) Descriptor deprecated

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

Deprecated: Use GetUserByIdRequest.ProtoReflect.Descriptor instead.

func (*GetUserByIdRequest) GetUserID

func (x *GetUserByIdRequest) GetUserID() string

func (*GetUserByIdRequest) ProtoMessage

func (*GetUserByIdRequest) ProtoMessage()

func (*GetUserByIdRequest) ProtoReflect

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

func (*GetUserByIdRequest) Reset

func (x *GetUserByIdRequest) Reset()

func (*GetUserByIdRequest) String

func (x *GetUserByIdRequest) String() string

type GetUserByIdResponse

type GetUserByIdResponse struct {
	Id            string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Username      string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Email         string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Role          string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"`
	Name          string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	CreatedAt     string `protobuf:"bytes,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt     string `protobuf:"bytes,7,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	DeactivatedAt string `protobuf:"bytes,8,opt,name=deactivatedAt,proto3" json:"deactivatedAt,omitempty"`
	// contains filtered or unexported fields
}

GetUserByIdResponse is the message struct for response of user details by ID

func (*GetUserByIdResponse) Descriptor deprecated

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

Deprecated: Use GetUserByIdResponse.ProtoReflect.Descriptor instead.

func (*GetUserByIdResponse) GetCreatedAt

func (x *GetUserByIdResponse) GetCreatedAt() string

func (*GetUserByIdResponse) GetDeactivatedAt

func (x *GetUserByIdResponse) GetDeactivatedAt() string

func (*GetUserByIdResponse) GetEmail

func (x *GetUserByIdResponse) GetEmail() string

func (*GetUserByIdResponse) GetId

func (x *GetUserByIdResponse) GetId() string

func (*GetUserByIdResponse) GetName

func (x *GetUserByIdResponse) GetName() string

func (*GetUserByIdResponse) GetRole

func (x *GetUserByIdResponse) GetRole() string

func (*GetUserByIdResponse) GetUpdatedAt

func (x *GetUserByIdResponse) GetUpdatedAt() string

func (*GetUserByIdResponse) GetUsername

func (x *GetUserByIdResponse) GetUsername() string

func (*GetUserByIdResponse) ProtoMessage

func (*GetUserByIdResponse) ProtoMessage()

func (*GetUserByIdResponse) ProtoReflect

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

func (*GetUserByIdResponse) Reset

func (x *GetUserByIdResponse) Reset()

func (*GetUserByIdResponse) String

func (x *GetUserByIdResponse) String() string

type ProjectClient

type ProjectClient interface {
	// Initialize project by adding instances for the required db collections
	InitializeProject(ctx context.Context, in *ProjectInitializationRequest, opts ...grpc.CallOption) (*wrappers.BoolValue, error)
}

ProjectClient is the client API for Project 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.

func NewProjectClient

func NewProjectClient(cc grpc.ClientConnInterface) ProjectClient

type ProjectInitializationRequest

type ProjectInitializationRequest struct {
	ProjectID string `protobuf:"bytes,1,opt,name=projectID,proto3" json:"projectID,omitempty"`
	Role      string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

The request message containing the projectID

func (*ProjectInitializationRequest) Descriptor deprecated

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

Deprecated: Use ProjectInitializationRequest.ProtoReflect.Descriptor instead.

func (*ProjectInitializationRequest) GetProjectID

func (x *ProjectInitializationRequest) GetProjectID() string

func (*ProjectInitializationRequest) GetRole

func (x *ProjectInitializationRequest) GetRole() string

func (*ProjectInitializationRequest) ProtoMessage

func (*ProjectInitializationRequest) ProtoMessage()

func (*ProjectInitializationRequest) ProtoReflect

func (*ProjectInitializationRequest) Reset

func (x *ProjectInitializationRequest) Reset()

func (*ProjectInitializationRequest) String

type ProjectMembers

type ProjectMembers struct {
	Uid        string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
	Username   string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"`
	Role       string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"`
	Email      string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	Invitation string `protobuf:"bytes,5,opt,name=invitation,proto3" json:"invitation,omitempty"`
	JoinedAt   string `protobuf:"bytes,6,opt,name=joinedAt,proto3" json:"joinedAt,omitempty"`
	// contains filtered or unexported fields
}

ProjectMembers is the message struct that holds the details about the project members

func (*ProjectMembers) Descriptor deprecated

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

Deprecated: Use ProjectMembers.ProtoReflect.Descriptor instead.

func (*ProjectMembers) GetEmail

func (x *ProjectMembers) GetEmail() string

func (*ProjectMembers) GetInvitation

func (x *ProjectMembers) GetInvitation() string

func (*ProjectMembers) GetJoinedAt

func (x *ProjectMembers) GetJoinedAt() string

func (*ProjectMembers) GetRole

func (x *ProjectMembers) GetRole() string

func (*ProjectMembers) GetUid

func (x *ProjectMembers) GetUid() string

func (*ProjectMembers) GetUsername

func (x *ProjectMembers) GetUsername() string

func (*ProjectMembers) ProtoMessage

func (*ProjectMembers) ProtoMessage()

func (*ProjectMembers) ProtoReflect

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

func (*ProjectMembers) Reset

func (x *ProjectMembers) Reset()

func (*ProjectMembers) String

func (x *ProjectMembers) String() string

type ProjectServer

type ProjectServer interface {
	// Initialize project by adding instances for the required db collections
	InitializeProject(context.Context, *ProjectInitializationRequest) (*wrappers.BoolValue, error)
	// contains filtered or unexported methods
}

ProjectServer is the server API for Project service. All implementations must embed UnimplementedProjectServer for forward compatibility

type UnimplementedAuthRpcServiceServer

type UnimplementedAuthRpcServiceServer struct {
}

UnimplementedAuthRpcServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthRpcServiceServer) GetProjectById

func (UnimplementedAuthRpcServiceServer) GetUserById

func (UnimplementedAuthRpcServiceServer) ValidateRequest

type UnimplementedProjectServer

type UnimplementedProjectServer struct {
}

UnimplementedProjectServer must be embedded to have forward compatible implementations.

func (UnimplementedProjectServer) InitializeProject

type UnsafeAuthRpcServiceServer

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

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

type UnsafeProjectServer

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

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

type ValidationRequest

type ValidationRequest struct {
	Jwt           string   `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"`
	ProjectId     string   `protobuf:"bytes,2,opt,name=projectId,proto3" json:"projectId,omitempty"`
	RequiredRoles []string `protobuf:"bytes,3,rep,name=requiredRoles,proto3" json:"requiredRoles,omitempty"`
	Invitation    string   `protobuf:"bytes,4,opt,name=invitation,proto3" json:"invitation,omitempty"`
	// contains filtered or unexported fields
}

The validation function that checks if the user has the required permission over the project

func (*ValidationRequest) Descriptor deprecated

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

Deprecated: Use ValidationRequest.ProtoReflect.Descriptor instead.

func (*ValidationRequest) GetInvitation

func (x *ValidationRequest) GetInvitation() string

func (*ValidationRequest) GetJwt

func (x *ValidationRequest) GetJwt() string

func (*ValidationRequest) GetProjectId

func (x *ValidationRequest) GetProjectId() string

func (*ValidationRequest) GetRequiredRoles

func (x *ValidationRequest) GetRequiredRoles() []string

func (*ValidationRequest) ProtoMessage

func (*ValidationRequest) ProtoMessage()

func (*ValidationRequest) ProtoReflect

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

func (*ValidationRequest) Reset

func (x *ValidationRequest) Reset()

func (*ValidationRequest) String

func (x *ValidationRequest) String() string

type ValidationResponse

type ValidationResponse struct {
	Error   string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	IsValid bool   `protobuf:"varint,2,opt,name=isValid,proto3" json:"isValid,omitempty"`
	// contains filtered or unexported fields
}

The validation response that will contain the results of the validation request

func (*ValidationResponse) Descriptor deprecated

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

Deprecated: Use ValidationResponse.ProtoReflect.Descriptor instead.

func (*ValidationResponse) GetError

func (x *ValidationResponse) GetError() string

func (*ValidationResponse) GetIsValid

func (x *ValidationResponse) GetIsValid() bool

func (*ValidationResponse) ProtoMessage

func (*ValidationResponse) ProtoMessage()

func (*ValidationResponse) ProtoReflect

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

func (*ValidationResponse) Reset

func (x *ValidationResponse) Reset()

func (*ValidationResponse) String

func (x *ValidationResponse) String() string

Jump to

Keyboard shortcuts

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