pb

package
v0.0.0-...-419708b Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "messages.AuthService",
	HandlerType: (*AuthServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SignUp",
			Handler:    _AuthService_SignUp_Handler,
		},
		{
			MethodName: "SignIn",
			Handler:    _AuthService_SignIn_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _AuthService_GetUser_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _AuthService_DeleteUser_Handler,
		},
		{
			MethodName: "ChangeUserRole",
			Handler:    _AuthService_ChangeUserRole_Handler,
		},
		{
			MethodName: "GetUserRole",
			Handler:    _AuthService_GetUserRole_Handler,
		},
		{
			MethodName: "UpdateUserPassword",
			Handler:    _AuthService_UpdateUserPassword_Handler,
		},
		{
			MethodName: "UpdateUserEmail",
			Handler:    _AuthService_UpdateUserEmail_Handler,
		},
		{
			MethodName: "UpdateUserName",
			Handler:    _AuthService_UpdateUserName_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ListUsers",
			Handler:       _AuthService_ListUsers_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "auth.proto",
}

AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService 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 VulnService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "messages.VulnService",
	HandlerType: (*VulnServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddCVE",
			Handler:    _VulnService_AddCVE_Handler,
		},
		{
			MethodName: "DeleteCVE",
			Handler:    _VulnService_DeleteCVE_Handler,
		},
		{
			MethodName: "UpdateCVE",
			Handler:    _VulnService_UpdateCVE_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "SearchCVE",
			Handler:       _VulnService_SearchCVE_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "GetAllCVEs",
			Handler:       _VulnService_GetAllCVEs_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "FetchNVDFeeds",
			Handler:       _VulnService_FetchNVDFeeds_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "vuln.proto",
}

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

Functions

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)

func RegisterVulnServiceServer

func RegisterVulnServiceServer(s grpc.ServiceRegistrar, srv VulnServiceServer)

Types

type AddCVERequest

type AddCVERequest struct {
	CveId       string   `protobuf:"bytes,1,opt,name=cve_id,json=cveId,proto3" json:"cve_id,omitempty"`
	Description string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Severity    string   `protobuf:"bytes,3,opt,name=severity,proto3" json:"severity,omitempty"`
	Product     string   `protobuf:"bytes,4,opt,name=product,proto3" json:"product,omitempty"`
	Vendor      string   `protobuf:"bytes,5,opt,name=vendor,proto3" json:"vendor,omitempty"`
	Links       []string `protobuf:"bytes,6,rep,name=links,proto3" json:"links,omitempty"`
	Published   string   `protobuf:"bytes,7,opt,name=published,proto3" json:"published,omitempty"`
	Modified    string   `protobuf:"bytes,8,opt,name=modified,proto3" json:"modified,omitempty"`
	// contains filtered or unexported fields
}

func (*AddCVERequest) Descriptor deprecated

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

Deprecated: Use AddCVERequest.ProtoReflect.Descriptor instead.

func (*AddCVERequest) GetCveId

func (x *AddCVERequest) GetCveId() string

func (*AddCVERequest) GetDescription

func (x *AddCVERequest) GetDescription() string
func (x *AddCVERequest) GetLinks() []string

func (*AddCVERequest) GetModified

func (x *AddCVERequest) GetModified() string

func (*AddCVERequest) GetProduct

func (x *AddCVERequest) GetProduct() string

func (*AddCVERequest) GetPublished

func (x *AddCVERequest) GetPublished() string

func (*AddCVERequest) GetSeverity

func (x *AddCVERequest) GetSeverity() string

func (*AddCVERequest) GetVendor

func (x *AddCVERequest) GetVendor() string

func (*AddCVERequest) ProtoMessage

func (*AddCVERequest) ProtoMessage()

func (*AddCVERequest) ProtoReflect

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

func (*AddCVERequest) Reset

func (x *AddCVERequest) Reset()

func (*AddCVERequest) String

func (x *AddCVERequest) String() string

type AuthServiceClient

type AuthServiceClient interface {
	SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*User, error)
	SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*SignInResponse, error)
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error)
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error)
	ChangeUserRole(ctx context.Context, in *ChangeUserRoleRequest, opts ...grpc.CallOption) (*User, error)
	GetUserRole(ctx context.Context, in *GetUserRoleRequest, opts ...grpc.CallOption) (*GetUserRoleResponse, error)
	UpdateUserPassword(ctx context.Context, in *UpdateUserPasswordRequest, opts ...grpc.CallOption) (*User, error)
	UpdateUserEmail(ctx context.Context, in *UpdateUserEmailRequest, opts ...grpc.CallOption) (*User, error)
	UpdateUserName(ctx context.Context, in *UpdateUserNameRequest, opts ...grpc.CallOption) (*User, error)
	ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (AuthService_ListUsersClient, error)
}

AuthServiceClient is the client API for AuthService 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 AuthServiceServer

AuthServiceServer is the server API for AuthService service. All implementations should embed UnimplementedAuthServiceServer for forward compatibility

type AuthService_ListUsersClient

type AuthService_ListUsersClient interface {
	Recv() (*User, error)
	grpc.ClientStream
}

type AuthService_ListUsersServer

type AuthService_ListUsersServer interface {
	Send(*User) error
	grpc.ServerStream
}

type CVE

type CVE struct {
	Id          string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	CveId       string   `protobuf:"bytes,2,opt,name=cve_id,json=cveId,proto3" json:"cve_id,omitempty"`
	Description string   `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Severity    string   `protobuf:"bytes,4,opt,name=severity,proto3" json:"severity,omitempty"`
	Product     string   `protobuf:"bytes,5,opt,name=product,proto3" json:"product,omitempty"`
	Vendor      string   `protobuf:"bytes,6,opt,name=vendor,proto3" json:"vendor,omitempty"`
	Links       []string `protobuf:"bytes,7,rep,name=links,proto3" json:"links,omitempty"`
	Published   string   `protobuf:"bytes,8,opt,name=published,proto3" json:"published,omitempty"`
	Modified    string   `protobuf:"bytes,9,opt,name=modified,proto3" json:"modified,omitempty"`
	// contains filtered or unexported fields
}

func (*CVE) Descriptor deprecated

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

Deprecated: Use CVE.ProtoReflect.Descriptor instead.

func (*CVE) GetCveId

func (x *CVE) GetCveId() string

func (*CVE) GetDescription

func (x *CVE) GetDescription() string

func (*CVE) GetId

func (x *CVE) GetId() string
func (x *CVE) GetLinks() []string

func (*CVE) GetModified

func (x *CVE) GetModified() string

func (*CVE) GetProduct

func (x *CVE) GetProduct() string

func (*CVE) GetPublished

func (x *CVE) GetPublished() string

func (*CVE) GetSeverity

func (x *CVE) GetSeverity() string

func (*CVE) GetVendor

func (x *CVE) GetVendor() string

func (*CVE) ProtoMessage

func (*CVE) ProtoMessage()

func (*CVE) ProtoReflect

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

func (*CVE) Reset

func (x *CVE) Reset()

func (*CVE) String

func (x *CVE) String() string

type ChangeUserRoleRequest

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

func (*ChangeUserRoleRequest) Descriptor deprecated

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

Deprecated: Use ChangeUserRoleRequest.ProtoReflect.Descriptor instead.

func (*ChangeUserRoleRequest) GetEmail

func (x *ChangeUserRoleRequest) GetEmail() string

func (*ChangeUserRoleRequest) GetRole

func (x *ChangeUserRoleRequest) GetRole() string

func (*ChangeUserRoleRequest) ProtoMessage

func (*ChangeUserRoleRequest) ProtoMessage()

func (*ChangeUserRoleRequest) ProtoReflect

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

func (*ChangeUserRoleRequest) Reset

func (x *ChangeUserRoleRequest) Reset()

func (*ChangeUserRoleRequest) String

func (x *ChangeUserRoleRequest) String() string

type DeleteCVERequest

type DeleteCVERequest struct {
	CveId string `protobuf:"bytes,1,opt,name=cve_id,json=cveId,proto3" json:"cve_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteCVERequest) Descriptor deprecated

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

Deprecated: Use DeleteCVERequest.ProtoReflect.Descriptor instead.

func (*DeleteCVERequest) GetCveId

func (x *DeleteCVERequest) GetCveId() string

func (*DeleteCVERequest) ProtoMessage

func (*DeleteCVERequest) ProtoMessage()

func (*DeleteCVERequest) ProtoReflect

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

func (*DeleteCVERequest) Reset

func (x *DeleteCVERequest) Reset()

func (*DeleteCVERequest) String

func (x *DeleteCVERequest) String() string

type DeleteCVEResponse

type DeleteCVEResponse struct {
	CveId string `protobuf:"bytes,1,opt,name=cve_id,json=cveId,proto3" json:"cve_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteCVEResponse) Descriptor deprecated

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

Deprecated: Use DeleteCVEResponse.ProtoReflect.Descriptor instead.

func (*DeleteCVEResponse) GetCveId

func (x *DeleteCVEResponse) GetCveId() string

func (*DeleteCVEResponse) ProtoMessage

func (*DeleteCVEResponse) ProtoMessage()

func (*DeleteCVEResponse) ProtoReflect

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

func (*DeleteCVEResponse) Reset

func (x *DeleteCVEResponse) Reset()

func (*DeleteCVEResponse) String

func (x *DeleteCVEResponse) String() string

type DeleteUserRequest

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

func (*DeleteUserRequest) Descriptor deprecated

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

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetEmail

func (x *DeleteUserRequest) GetEmail() string

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

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

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) String() string

type DeleteUserResponse

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

func (*DeleteUserResponse) Descriptor deprecated

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

Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.

func (*DeleteUserResponse) GetEmail

func (x *DeleteUserResponse) GetEmail() string

func (*DeleteUserResponse) ProtoMessage

func (*DeleteUserResponse) ProtoMessage()

func (*DeleteUserResponse) ProtoReflect

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

func (*DeleteUserResponse) Reset

func (x *DeleteUserResponse) Reset()

func (*DeleteUserResponse) String

func (x *DeleteUserResponse) String() string

type FetchNVDFeedsRequest

type FetchNVDFeedsRequest struct {
	ApiKey string `protobuf:"bytes,1,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`
	// contains filtered or unexported fields
}

func (*FetchNVDFeedsRequest) Descriptor deprecated

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

Deprecated: Use FetchNVDFeedsRequest.ProtoReflect.Descriptor instead.

func (*FetchNVDFeedsRequest) GetApiKey

func (x *FetchNVDFeedsRequest) GetApiKey() string

func (*FetchNVDFeedsRequest) ProtoMessage

func (*FetchNVDFeedsRequest) ProtoMessage()

func (*FetchNVDFeedsRequest) ProtoReflect

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

func (*FetchNVDFeedsRequest) Reset

func (x *FetchNVDFeedsRequest) Reset()

func (*FetchNVDFeedsRequest) String

func (x *FetchNVDFeedsRequest) String() string

type GetAllCVEsRequest

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

func (*GetAllCVEsRequest) Descriptor deprecated

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

Deprecated: Use GetAllCVEsRequest.ProtoReflect.Descriptor instead.

func (*GetAllCVEsRequest) ProtoMessage

func (*GetAllCVEsRequest) ProtoMessage()

func (*GetAllCVEsRequest) ProtoReflect

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

func (*GetAllCVEsRequest) Reset

func (x *GetAllCVEsRequest) Reset()

func (*GetAllCVEsRequest) String

func (x *GetAllCVEsRequest) String() string

type GetUserRequest

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

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetEmail

func (x *GetUserRequest) GetEmail() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

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

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type GetUserRoleRequest

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

func (*GetUserRoleRequest) Descriptor deprecated

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

Deprecated: Use GetUserRoleRequest.ProtoReflect.Descriptor instead.

func (*GetUserRoleRequest) GetId

func (x *GetUserRoleRequest) GetId() string

func (*GetUserRoleRequest) ProtoMessage

func (*GetUserRoleRequest) ProtoMessage()

func (*GetUserRoleRequest) ProtoReflect

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

func (*GetUserRoleRequest) Reset

func (x *GetUserRoleRequest) Reset()

func (*GetUserRoleRequest) String

func (x *GetUserRoleRequest) String() string

type GetUserRoleResponse

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

func (*GetUserRoleResponse) Descriptor deprecated

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

Deprecated: Use GetUserRoleResponse.ProtoReflect.Descriptor instead.

func (*GetUserRoleResponse) GetRole

func (x *GetUserRoleResponse) GetRole() string

func (*GetUserRoleResponse) ProtoMessage

func (*GetUserRoleResponse) ProtoMessage()

func (*GetUserRoleResponse) ProtoReflect

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

func (*GetUserRoleResponse) Reset

func (x *GetUserRoleResponse) Reset()

func (*GetUserRoleResponse) String

func (x *GetUserRoleResponse) String() string

type ListUsersRequest

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

func (*ListUsersRequest) Descriptor deprecated

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

Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.

func (*ListUsersRequest) ProtoMessage

func (*ListUsersRequest) ProtoMessage()

func (*ListUsersRequest) ProtoReflect

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

func (*ListUsersRequest) Reset

func (x *ListUsersRequest) Reset()

func (*ListUsersRequest) String

func (x *ListUsersRequest) String() string

type SearchCVERequest

type SearchCVERequest struct {
	CveId     string `protobuf:"bytes,1,opt,name=cve_id,json=cveId,proto3" json:"cve_id,omitempty"`
	Severity  string `protobuf:"bytes,2,opt,name=severity,proto3" json:"severity,omitempty"`
	Product   string `protobuf:"bytes,3,opt,name=product,proto3" json:"product,omitempty"`
	Vendor    string `protobuf:"bytes,4,opt,name=vendor,proto3" json:"vendor,omitempty"`
	StartDate string `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
	EndDate   string `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchCVERequest) Descriptor deprecated

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

Deprecated: Use SearchCVERequest.ProtoReflect.Descriptor instead.

func (*SearchCVERequest) GetCveId

func (x *SearchCVERequest) GetCveId() string

func (*SearchCVERequest) GetEndDate

func (x *SearchCVERequest) GetEndDate() string

func (*SearchCVERequest) GetProduct

func (x *SearchCVERequest) GetProduct() string

func (*SearchCVERequest) GetSeverity

func (x *SearchCVERequest) GetSeverity() string

func (*SearchCVERequest) GetStartDate

func (x *SearchCVERequest) GetStartDate() string

func (*SearchCVERequest) GetVendor

func (x *SearchCVERequest) GetVendor() string

func (*SearchCVERequest) ProtoMessage

func (*SearchCVERequest) ProtoMessage()

func (*SearchCVERequest) ProtoReflect

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

func (*SearchCVERequest) Reset

func (x *SearchCVERequest) Reset()

func (*SearchCVERequest) String

func (x *SearchCVERequest) String() string

type SignInRequest

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

func (*SignInRequest) Descriptor deprecated

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

Deprecated: Use SignInRequest.ProtoReflect.Descriptor instead.

func (*SignInRequest) GetEmail

func (x *SignInRequest) GetEmail() string

func (*SignInRequest) GetPassword

func (x *SignInRequest) GetPassword() string

func (*SignInRequest) ProtoMessage

func (*SignInRequest) ProtoMessage()

func (*SignInRequest) ProtoReflect

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

func (*SignInRequest) Reset

func (x *SignInRequest) Reset()

func (*SignInRequest) String

func (x *SignInRequest) String() string

type SignInResponse

type SignInResponse struct {
	User  *User  `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*SignInResponse) Descriptor deprecated

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

Deprecated: Use SignInResponse.ProtoReflect.Descriptor instead.

func (*SignInResponse) GetToken

func (x *SignInResponse) GetToken() string

func (*SignInResponse) GetUser

func (x *SignInResponse) GetUser() *User

func (*SignInResponse) ProtoMessage

func (*SignInResponse) ProtoMessage()

func (*SignInResponse) ProtoReflect

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

func (*SignInResponse) Reset

func (x *SignInResponse) Reset()

func (*SignInResponse) String

func (x *SignInResponse) String() string

type SignUpRequest

type SignUpRequest struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Email    string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*SignUpRequest) Descriptor deprecated

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

Deprecated: Use SignUpRequest.ProtoReflect.Descriptor instead.

func (*SignUpRequest) GetEmail

func (x *SignUpRequest) GetEmail() string

func (*SignUpRequest) GetName

func (x *SignUpRequest) GetName() string

func (*SignUpRequest) GetPassword

func (x *SignUpRequest) GetPassword() string

func (*SignUpRequest) ProtoMessage

func (*SignUpRequest) ProtoMessage()

func (*SignUpRequest) ProtoReflect

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

func (*SignUpRequest) Reset

func (x *SignUpRequest) Reset()

func (*SignUpRequest) String

func (x *SignUpRequest) String() string

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedAuthServiceServer) ChangeUserRole

func (UnimplementedAuthServiceServer) DeleteUser

func (UnimplementedAuthServiceServer) GetUser

func (UnimplementedAuthServiceServer) GetUserRole

func (UnimplementedAuthServiceServer) ListUsers

func (UnimplementedAuthServiceServer) SignIn

func (UnimplementedAuthServiceServer) SignUp

func (UnimplementedAuthServiceServer) UpdateUserEmail

func (UnimplementedAuthServiceServer) UpdateUserName

func (UnimplementedAuthServiceServer) UpdateUserPassword

type UnimplementedVulnServiceServer

type UnimplementedVulnServiceServer struct {
}

UnimplementedVulnServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedVulnServiceServer) AddCVE

func (UnimplementedVulnServiceServer) DeleteCVE

func (UnimplementedVulnServiceServer) FetchNVDFeeds

func (UnimplementedVulnServiceServer) GetAllCVEs

func (UnimplementedVulnServiceServer) SearchCVE

func (UnimplementedVulnServiceServer) UpdateCVE

type UnsafeAuthServiceServer

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

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

type UnsafeVulnServiceServer

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

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

type UpdateCVERequest

type UpdateCVERequest struct {
	CveId       string   `protobuf:"bytes,1,opt,name=cve_id,json=cveId,proto3" json:"cve_id,omitempty"`
	Description string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Severity    string   `protobuf:"bytes,3,opt,name=severity,proto3" json:"severity,omitempty"`
	Product     string   `protobuf:"bytes,4,opt,name=product,proto3" json:"product,omitempty"`
	Vendor      string   `protobuf:"bytes,5,opt,name=vendor,proto3" json:"vendor,omitempty"`
	Links       []string `protobuf:"bytes,6,rep,name=links,proto3" json:"links,omitempty"`
	Published   string   `protobuf:"bytes,7,opt,name=published,proto3" json:"published,omitempty"`
	Modified    string   `protobuf:"bytes,8,opt,name=modified,proto3" json:"modified,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCVERequest) Descriptor deprecated

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

Deprecated: Use UpdateCVERequest.ProtoReflect.Descriptor instead.

func (*UpdateCVERequest) GetCveId

func (x *UpdateCVERequest) GetCveId() string

func (*UpdateCVERequest) GetDescription

func (x *UpdateCVERequest) GetDescription() string
func (x *UpdateCVERequest) GetLinks() []string

func (*UpdateCVERequest) GetModified

func (x *UpdateCVERequest) GetModified() string

func (*UpdateCVERequest) GetProduct

func (x *UpdateCVERequest) GetProduct() string

func (*UpdateCVERequest) GetPublished

func (x *UpdateCVERequest) GetPublished() string

func (*UpdateCVERequest) GetSeverity

func (x *UpdateCVERequest) GetSeverity() string

func (*UpdateCVERequest) GetVendor

func (x *UpdateCVERequest) GetVendor() string

func (*UpdateCVERequest) ProtoMessage

func (*UpdateCVERequest) ProtoMessage()

func (*UpdateCVERequest) ProtoReflect

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

func (*UpdateCVERequest) Reset

func (x *UpdateCVERequest) Reset()

func (*UpdateCVERequest) String

func (x *UpdateCVERequest) String() string

type UpdateUserEmailRequest

type UpdateUserEmailRequest struct {
	Email    string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	NewEmail string `protobuf:"bytes,2,opt,name=newEmail,proto3" json:"newEmail,omitempty"`
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserEmailRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserEmailRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserEmailRequest) GetEmail

func (x *UpdateUserEmailRequest) GetEmail() string

func (*UpdateUserEmailRequest) GetNewEmail

func (x *UpdateUserEmailRequest) GetNewEmail() string

func (*UpdateUserEmailRequest) GetPassword

func (x *UpdateUserEmailRequest) GetPassword() string

func (*UpdateUserEmailRequest) ProtoMessage

func (*UpdateUserEmailRequest) ProtoMessage()

func (*UpdateUserEmailRequest) ProtoReflect

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

func (*UpdateUserEmailRequest) Reset

func (x *UpdateUserEmailRequest) Reset()

func (*UpdateUserEmailRequest) String

func (x *UpdateUserEmailRequest) String() string

type UpdateUserNameRequest

type UpdateUserNameRequest struct {
	Email    string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserNameRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserNameRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserNameRequest) GetEmail

func (x *UpdateUserNameRequest) GetEmail() string

func (*UpdateUserNameRequest) GetName

func (x *UpdateUserNameRequest) GetName() string

func (*UpdateUserNameRequest) GetPassword

func (x *UpdateUserNameRequest) GetPassword() string

func (*UpdateUserNameRequest) ProtoMessage

func (*UpdateUserNameRequest) ProtoMessage()

func (*UpdateUserNameRequest) ProtoReflect

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

func (*UpdateUserNameRequest) Reset

func (x *UpdateUserNameRequest) Reset()

func (*UpdateUserNameRequest) String

func (x *UpdateUserNameRequest) String() string

type UpdateUserPasswordRequest

type UpdateUserPasswordRequest struct {
	Email       string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Password    string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	NewPassword string `protobuf:"bytes,3,opt,name=newPassword,proto3" json:"newPassword,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserPasswordRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserPasswordRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserPasswordRequest) GetEmail

func (x *UpdateUserPasswordRequest) GetEmail() string

func (*UpdateUserPasswordRequest) GetNewPassword

func (x *UpdateUserPasswordRequest) GetNewPassword() string

func (*UpdateUserPasswordRequest) GetPassword

func (x *UpdateUserPasswordRequest) GetPassword() string

func (*UpdateUserPasswordRequest) ProtoMessage

func (*UpdateUserPasswordRequest) ProtoMessage()

func (*UpdateUserPasswordRequest) ProtoReflect

func (*UpdateUserPasswordRequest) Reset

func (x *UpdateUserPasswordRequest) Reset()

func (*UpdateUserPasswordRequest) String

func (x *UpdateUserPasswordRequest) String() string

type User

type User struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name    string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,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"`
	Created string `protobuf:"bytes,5,opt,name=created,proto3" json:"created,omitempty"`
	Updated string `protobuf:"bytes,6,opt,name=updated,proto3" json:"updated,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCreated

func (x *User) GetCreated() string

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetRole

func (x *User) GetRole() string

func (*User) GetUpdated

func (x *User) GetUpdated() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type VulnServiceClient

type VulnServiceClient interface {
	AddCVE(ctx context.Context, in *AddCVERequest, opts ...grpc.CallOption) (*CVE, error)
	SearchCVE(ctx context.Context, in *SearchCVERequest, opts ...grpc.CallOption) (VulnService_SearchCVEClient, error)
	GetAllCVEs(ctx context.Context, in *GetAllCVEsRequest, opts ...grpc.CallOption) (VulnService_GetAllCVEsClient, error)
	DeleteCVE(ctx context.Context, in *DeleteCVERequest, opts ...grpc.CallOption) (*DeleteCVEResponse, error)
	UpdateCVE(ctx context.Context, in *UpdateCVERequest, opts ...grpc.CallOption) (*CVE, error)
	FetchNVDFeeds(ctx context.Context, in *FetchNVDFeedsRequest, opts ...grpc.CallOption) (VulnService_FetchNVDFeedsClient, error)
}

VulnServiceClient is the client API for VulnService 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 VulnServiceServer

VulnServiceServer is the server API for VulnService service. All implementations should embed UnimplementedVulnServiceServer for forward compatibility

type VulnService_FetchNVDFeedsClient

type VulnService_FetchNVDFeedsClient interface {
	Recv() (*CVE, error)
	grpc.ClientStream
}

type VulnService_FetchNVDFeedsServer

type VulnService_FetchNVDFeedsServer interface {
	Send(*CVE) error
	grpc.ServerStream
}

type VulnService_GetAllCVEsClient

type VulnService_GetAllCVEsClient interface {
	Recv() (*CVE, error)
	grpc.ClientStream
}

type VulnService_GetAllCVEsServer

type VulnService_GetAllCVEsServer interface {
	Send(*CVE) error
	grpc.ServerStream
}

type VulnService_SearchCVEClient

type VulnService_SearchCVEClient interface {
	Recv() (*CVE, error)
	grpc.ClientStream
}

type VulnService_SearchCVEServer

type VulnService_SearchCVEServer interface {
	Send(*CVE) error
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

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