protocol

package
v0.0.0-...-86240e4 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: BSD-2-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserRank_name = map[int32]string{
		0: "regular",
		1: "trusted",
		2: "admin",
	}
	UserRank_value = map[string]int32{
		"regular": 0,
		"trusted": 1,
		"admin":   2,
	}
)

Enum value maps for UserRank.

View Source
var File_userservice_proto protoreflect.FileDescriptor
View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "EmailValidation",
			Handler:    _UserService_EmailValidation_Handler,
		},
		{
			MethodName: "Register",
			Handler:    _UserService_Register_Handler,
		},
		{
			MethodName: "Login",
			Handler:    _UserService_Login_Handler,
		},
		{
			MethodName: "ValidateJWT",
			Handler:    _UserService_ValidateJWT_Handler,
		},
		{
			MethodName: "GetUserFromID",
			Handler:    _UserService_GetUserFromID_Handler,
		},
		{
			MethodName: "GetUserForForeignUID",
			Handler:    _UserService_GetUserForForeignUID_Handler,
		},
		{
			MethodName: "GetUserIDsForUsername",
			Handler:    _UserService_GetUserIDsForUsername_Handler,
		},
		{
			MethodName: "BanUser",
			Handler:    _UserService_BanUser_Handler,
		},
		{
			MethodName: "SetUserRank",
			Handler:    _UserService_SetUserRank_Handler,
		},
		{
			MethodName: "ResetPassword",
			Handler:    _UserService_ResetPassword_Handler,
		},
		{
			MethodName: "AddAuditEvent",
			Handler:    _UserService_AddAuditEvent_Handler,
		},
		{
			MethodName: "GetAuditEvents",
			Handler:    _UserService_GetAuditEvents_Handler,
		},
		{
			MethodName: "GetFollowers",
			Handler:    _UserService_GetFollowers_Handler,
		},
		{
			MethodName: "AddFolllower",
			Handler:    _UserService_AddFolllower_Handler,
		},
		{
			MethodName: "SetProfile",
			Handler:    _UserService_SetProfile_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "userservice.proto",
}

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

Functions

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type AddFollowReq

type AddFollowReq struct {
	FollowingId int64 `protobuf:"varint,1,opt,name=following_id,json=followingId,proto3" json:"following_id,omitempty"`
	FollowedId  int64 `protobuf:"varint,2,opt,name=followed_id,json=followedId,proto3" json:"followed_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AddFollowReq) Descriptor deprecated

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

Deprecated: Use AddFollowReq.ProtoReflect.Descriptor instead.

func (*AddFollowReq) GetFollowedId

func (x *AddFollowReq) GetFollowedId() int64

func (*AddFollowReq) GetFollowingId

func (x *AddFollowReq) GetFollowingId() int64

func (*AddFollowReq) ProtoMessage

func (*AddFollowReq) ProtoMessage()

func (*AddFollowReq) ProtoReflect

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

func (*AddFollowReq) Reset

func (x *AddFollowReq) Reset()

func (*AddFollowReq) String

func (x *AddFollowReq) String() string

func (*AddFollowReq) Validate

func (m *AddFollowReq) Validate() error

Validate checks the field values on AddFollowReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AddFollowReq) ValidateAll

func (m *AddFollowReq) ValidateAll() error

ValidateAll checks the field values on AddFollowReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AddFollowReqMultiError, or nil if none found.

type AddFollowReqMultiError

type AddFollowReqMultiError []error

AddFollowReqMultiError is an error wrapping multiple validation errors returned by AddFollowReq.ValidateAll() if the designated constraints aren't met.

func (AddFollowReqMultiError) AllErrors

func (m AddFollowReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddFollowReqMultiError) Error

func (m AddFollowReqMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AddFollowReqValidationError

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

AddFollowReqValidationError is the validation error returned by AddFollowReq.Validate if the designated constraints aren't met.

func (AddFollowReqValidationError) Cause

Cause function returns cause value.

func (AddFollowReqValidationError) Error

Error satisfies the builtin error interface

func (AddFollowReqValidationError) ErrorName

func (e AddFollowReqValidationError) ErrorName() string

ErrorName returns error name.

func (AddFollowReqValidationError) Field

Field function returns field value.

func (AddFollowReqValidationError) Key

Key function returns key value.

func (AddFollowReqValidationError) Reason

Reason function returns reason value.

type AuditEvent

type AuditEvent struct {
	Id        int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	User_ID   int64  `protobuf:"varint,2,opt,name=user_ID,json=userID,proto3" json:"user_ID,omitempty"`
	Message   string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	Timestamp string `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*AuditEvent) Descriptor deprecated

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

Deprecated: Use AuditEvent.ProtoReflect.Descriptor instead.

func (*AuditEvent) GetId

func (x *AuditEvent) GetId() int64

func (*AuditEvent) GetMessage

func (x *AuditEvent) GetMessage() string

func (*AuditEvent) GetTimestamp

func (x *AuditEvent) GetTimestamp() string

func (*AuditEvent) GetUser_ID

func (x *AuditEvent) GetUser_ID() int64

func (*AuditEvent) ProtoMessage

func (*AuditEvent) ProtoMessage()

func (*AuditEvent) ProtoReflect

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

func (*AuditEvent) Reset

func (x *AuditEvent) Reset()

func (*AuditEvent) String

func (x *AuditEvent) String() string

func (*AuditEvent) Validate

func (m *AuditEvent) Validate() error

Validate checks the field values on AuditEvent with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AuditEvent) ValidateAll

func (m *AuditEvent) ValidateAll() error

ValidateAll checks the field values on AuditEvent with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AuditEventMultiError, or nil if none found.

type AuditEventMultiError

type AuditEventMultiError []error

AuditEventMultiError is an error wrapping multiple validation errors returned by AuditEvent.ValidateAll() if the designated constraints aren't met.

func (AuditEventMultiError) AllErrors

func (m AuditEventMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AuditEventMultiError) Error

func (m AuditEventMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AuditEventValidationError

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

AuditEventValidationError is the validation error returned by AuditEvent.Validate if the designated constraints aren't met.

func (AuditEventValidationError) Cause

func (e AuditEventValidationError) Cause() error

Cause function returns cause value.

func (AuditEventValidationError) Error

Error satisfies the builtin error interface

func (AuditEventValidationError) ErrorName

func (e AuditEventValidationError) ErrorName() string

ErrorName returns error name.

func (AuditEventValidationError) Field

Field function returns field value.

func (AuditEventValidationError) Key

Key function returns key value.

func (AuditEventValidationError) Reason

func (e AuditEventValidationError) Reason() string

Reason function returns reason value.

type AuditEventsListRequest

type AuditEventsListRequest struct {
	Page   int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // -1 if all users
	// contains filtered or unexported fields
}

func (*AuditEventsListRequest) Descriptor deprecated

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

Deprecated: Use AuditEventsListRequest.ProtoReflect.Descriptor instead.

func (*AuditEventsListRequest) GetPage

func (x *AuditEventsListRequest) GetPage() int64

func (*AuditEventsListRequest) GetUserId

func (x *AuditEventsListRequest) GetUserId() int64

func (*AuditEventsListRequest) ProtoMessage

func (*AuditEventsListRequest) ProtoMessage()

func (*AuditEventsListRequest) ProtoReflect

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

func (*AuditEventsListRequest) Reset

func (x *AuditEventsListRequest) Reset()

func (*AuditEventsListRequest) String

func (x *AuditEventsListRequest) String() string

func (*AuditEventsListRequest) Validate

func (m *AuditEventsListRequest) Validate() error

Validate checks the field values on AuditEventsListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AuditEventsListRequest) ValidateAll

func (m *AuditEventsListRequest) ValidateAll() error

ValidateAll checks the field values on AuditEventsListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AuditEventsListRequestMultiError, or nil if none found.

type AuditEventsListRequestMultiError

type AuditEventsListRequestMultiError []error

AuditEventsListRequestMultiError is an error wrapping multiple validation errors returned by AuditEventsListRequest.ValidateAll() if the designated constraints aren't met.

func (AuditEventsListRequestMultiError) AllErrors

func (m AuditEventsListRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AuditEventsListRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AuditEventsListRequestValidationError

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

AuditEventsListRequestValidationError is the validation error returned by AuditEventsListRequest.Validate if the designated constraints aren't met.

func (AuditEventsListRequestValidationError) Cause

Cause function returns cause value.

func (AuditEventsListRequestValidationError) Error

Error satisfies the builtin error interface

func (AuditEventsListRequestValidationError) ErrorName

ErrorName returns error name.

func (AuditEventsListRequestValidationError) Field

Field function returns field value.

func (AuditEventsListRequestValidationError) Key

Key function returns key value.

func (AuditEventsListRequestValidationError) Reason

Reason function returns reason value.

type AuditListResponse

type AuditListResponse struct {
	Events    []*AuditEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
	NumEvents int64         `protobuf:"varint,2,opt,name=NumEvents,proto3" json:"NumEvents,omitempty"`
	// contains filtered or unexported fields
}

func (*AuditListResponse) Descriptor deprecated

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

Deprecated: Use AuditListResponse.ProtoReflect.Descriptor instead.

func (*AuditListResponse) GetEvents

func (x *AuditListResponse) GetEvents() []*AuditEvent

func (*AuditListResponse) GetNumEvents

func (x *AuditListResponse) GetNumEvents() int64

func (*AuditListResponse) ProtoMessage

func (*AuditListResponse) ProtoMessage()

func (*AuditListResponse) ProtoReflect

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

func (*AuditListResponse) Reset

func (x *AuditListResponse) Reset()

func (*AuditListResponse) String

func (x *AuditListResponse) String() string

func (*AuditListResponse) Validate

func (m *AuditListResponse) Validate() error

Validate checks the field values on AuditListResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AuditListResponse) ValidateAll

func (m *AuditListResponse) ValidateAll() error

ValidateAll checks the field values on AuditListResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AuditListResponseMultiError, or nil if none found.

type AuditListResponseMultiError

type AuditListResponseMultiError []error

AuditListResponseMultiError is an error wrapping multiple validation errors returned by AuditListResponse.ValidateAll() if the designated constraints aren't met.

func (AuditListResponseMultiError) AllErrors

func (m AuditListResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AuditListResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AuditListResponseValidationError

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

AuditListResponseValidationError is the validation error returned by AuditListResponse.Validate if the designated constraints aren't met.

func (AuditListResponseValidationError) Cause

Cause function returns cause value.

func (AuditListResponseValidationError) Error

Error satisfies the builtin error interface

func (AuditListResponseValidationError) ErrorName

ErrorName returns error name.

func (AuditListResponseValidationError) Field

Field function returns field value.

func (AuditListResponseValidationError) Key

Key function returns key value.

func (AuditListResponseValidationError) Reason

Reason function returns reason value.

type BanUserRequest

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

func (*BanUserRequest) Descriptor deprecated

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

Deprecated: Use BanUserRequest.ProtoReflect.Descriptor instead.

func (*BanUserRequest) GetUserID

func (x *BanUserRequest) GetUserID() int64

func (*BanUserRequest) ProtoMessage

func (*BanUserRequest) ProtoMessage()

func (*BanUserRequest) ProtoReflect

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

func (*BanUserRequest) Reset

func (x *BanUserRequest) Reset()

func (*BanUserRequest) String

func (x *BanUserRequest) String() string

func (*BanUserRequest) Validate

func (m *BanUserRequest) Validate() error

Validate checks the field values on BanUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*BanUserRequest) ValidateAll

func (m *BanUserRequest) ValidateAll() error

ValidateAll checks the field values on BanUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BanUserRequestMultiError, or nil if none found.

type BanUserRequestMultiError

type BanUserRequestMultiError []error

BanUserRequestMultiError is an error wrapping multiple validation errors returned by BanUserRequest.ValidateAll() if the designated constraints aren't met.

func (BanUserRequestMultiError) AllErrors

func (m BanUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BanUserRequestMultiError) Error

func (m BanUserRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type BanUserRequestValidationError

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

BanUserRequestValidationError is the validation error returned by BanUserRequest.Validate if the designated constraints aren't met.

func (BanUserRequestValidationError) Cause

Cause function returns cause value.

func (BanUserRequestValidationError) Error

Error satisfies the builtin error interface

func (BanUserRequestValidationError) ErrorName

func (e BanUserRequestValidationError) ErrorName() string

ErrorName returns error name.

func (BanUserRequestValidationError) Field

Field function returns field value.

func (BanUserRequestValidationError) Key

Key function returns key value.

func (BanUserRequestValidationError) Reason

Reason function returns reason value.

type BanUserResponse

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

func (*BanUserResponse) Descriptor deprecated

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

Deprecated: Use BanUserResponse.ProtoReflect.Descriptor instead.

func (*BanUserResponse) ProtoMessage

func (*BanUserResponse) ProtoMessage()

func (*BanUserResponse) ProtoReflect

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

func (*BanUserResponse) Reset

func (x *BanUserResponse) Reset()

func (*BanUserResponse) String

func (x *BanUserResponse) String() string

func (*BanUserResponse) Validate

func (m *BanUserResponse) Validate() error

Validate checks the field values on BanUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*BanUserResponse) ValidateAll

func (m *BanUserResponse) ValidateAll() error

ValidateAll checks the field values on BanUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BanUserResponseMultiError, or nil if none found.

type BanUserResponseMultiError

type BanUserResponseMultiError []error

BanUserResponseMultiError is an error wrapping multiple validation errors returned by BanUserResponse.ValidateAll() if the designated constraints aren't met.

func (BanUserResponseMultiError) AllErrors

func (m BanUserResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BanUserResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type BanUserResponseValidationError

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

BanUserResponseValidationError is the validation error returned by BanUserResponse.Validate if the designated constraints aren't met.

func (BanUserResponseValidationError) Cause

Cause function returns cause value.

func (BanUserResponseValidationError) Error

Error satisfies the builtin error interface

func (BanUserResponseValidationError) ErrorName

func (e BanUserResponseValidationError) ErrorName() string

ErrorName returns error name.

func (BanUserResponseValidationError) Field

Field function returns field value.

func (BanUserResponseValidationError) Key

Key function returns key value.

func (BanUserResponseValidationError) Reason

Reason function returns reason value.

type FollowerReq

type FollowerReq struct {
	User_ID int64 `protobuf:"varint,1,opt,name=user_ID,json=userID,proto3" json:"user_ID,omitempty"`
	// contains filtered or unexported fields
}

func (*FollowerReq) Descriptor deprecated

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

Deprecated: Use FollowerReq.ProtoReflect.Descriptor instead.

func (*FollowerReq) GetUser_ID

func (x *FollowerReq) GetUser_ID() int64

func (*FollowerReq) ProtoMessage

func (*FollowerReq) ProtoMessage()

func (*FollowerReq) ProtoReflect

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

func (*FollowerReq) Reset

func (x *FollowerReq) Reset()

func (*FollowerReq) String

func (x *FollowerReq) String() string

func (*FollowerReq) Validate

func (m *FollowerReq) Validate() error

Validate checks the field values on FollowerReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FollowerReq) ValidateAll

func (m *FollowerReq) ValidateAll() error

ValidateAll checks the field values on FollowerReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FollowerReqMultiError, or nil if none found.

type FollowerReqMultiError

type FollowerReqMultiError []error

FollowerReqMultiError is an error wrapping multiple validation errors returned by FollowerReq.ValidateAll() if the designated constraints aren't met.

func (FollowerReqMultiError) AllErrors

func (m FollowerReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FollowerReqMultiError) Error

func (m FollowerReqMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type FollowerReqValidationError

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

FollowerReqValidationError is the validation error returned by FollowerReq.Validate if the designated constraints aren't met.

func (FollowerReqValidationError) Cause

Cause function returns cause value.

func (FollowerReqValidationError) Error

Error satisfies the builtin error interface

func (FollowerReqValidationError) ErrorName

func (e FollowerReqValidationError) ErrorName() string

ErrorName returns error name.

func (FollowerReqValidationError) Field

Field function returns field value.

func (FollowerReqValidationError) Key

Key function returns key value.

func (FollowerReqValidationError) Reason

Reason function returns reason value.

type FollowerResp

type FollowerResp struct {
	Users []int64 `protobuf:"varint,1,rep,packed,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*FollowerResp) Descriptor deprecated

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

Deprecated: Use FollowerResp.ProtoReflect.Descriptor instead.

func (*FollowerResp) GetUsers

func (x *FollowerResp) GetUsers() []int64

func (*FollowerResp) ProtoMessage

func (*FollowerResp) ProtoMessage()

func (*FollowerResp) ProtoReflect

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

func (*FollowerResp) Reset

func (x *FollowerResp) Reset()

func (*FollowerResp) String

func (x *FollowerResp) String() string

func (*FollowerResp) Validate

func (m *FollowerResp) Validate() error

Validate checks the field values on FollowerResp with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FollowerResp) ValidateAll

func (m *FollowerResp) ValidateAll() error

ValidateAll checks the field values on FollowerResp with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FollowerRespMultiError, or nil if none found.

type FollowerRespMultiError

type FollowerRespMultiError []error

FollowerRespMultiError is an error wrapping multiple validation errors returned by FollowerResp.ValidateAll() if the designated constraints aren't met.

func (FollowerRespMultiError) AllErrors

func (m FollowerRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FollowerRespMultiError) Error

func (m FollowerRespMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type FollowerRespValidationError

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

FollowerRespValidationError is the validation error returned by FollowerResp.Validate if the designated constraints aren't met.

func (FollowerRespValidationError) Cause

Cause function returns cause value.

func (FollowerRespValidationError) Error

Error satisfies the builtin error interface

func (FollowerRespValidationError) ErrorName

func (e FollowerRespValidationError) ErrorName() string

ErrorName returns error name.

func (FollowerRespValidationError) Field

Field function returns field value.

func (FollowerRespValidationError) Key

Key function returns key value.

func (FollowerRespValidationError) Reason

Reason function returns reason value.

type GetForeignUserRequest

type GetForeignUserRequest struct {
	OriginalWebsite string `protobuf:"bytes,1,opt,name=originalWebsite,proto3" json:"originalWebsite,omitempty"`
	ForeignUserID   string `protobuf:"bytes,2,opt,name=foreignUserID,proto3" json:"foreignUserID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetForeignUserRequest) Descriptor deprecated

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

Deprecated: Use GetForeignUserRequest.ProtoReflect.Descriptor instead.

func (*GetForeignUserRequest) GetForeignUserID

func (x *GetForeignUserRequest) GetForeignUserID() string

func (*GetForeignUserRequest) GetOriginalWebsite

func (x *GetForeignUserRequest) GetOriginalWebsite() string

func (*GetForeignUserRequest) ProtoMessage

func (*GetForeignUserRequest) ProtoMessage()

func (*GetForeignUserRequest) ProtoReflect

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

func (*GetForeignUserRequest) Reset

func (x *GetForeignUserRequest) Reset()

func (*GetForeignUserRequest) String

func (x *GetForeignUserRequest) String() string

func (*GetForeignUserRequest) Validate

func (m *GetForeignUserRequest) Validate() error

Validate checks the field values on GetForeignUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetForeignUserRequest) ValidateAll

func (m *GetForeignUserRequest) ValidateAll() error

ValidateAll checks the field values on GetForeignUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetForeignUserRequestMultiError, or nil if none found.

type GetForeignUserRequestMultiError

type GetForeignUserRequestMultiError []error

GetForeignUserRequestMultiError is an error wrapping multiple validation errors returned by GetForeignUserRequest.ValidateAll() if the designated constraints aren't met.

func (GetForeignUserRequestMultiError) AllErrors

func (m GetForeignUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetForeignUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetForeignUserRequestValidationError

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

GetForeignUserRequestValidationError is the validation error returned by GetForeignUserRequest.Validate if the designated constraints aren't met.

func (GetForeignUserRequestValidationError) Cause

Cause function returns cause value.

func (GetForeignUserRequestValidationError) Error

Error satisfies the builtin error interface

func (GetForeignUserRequestValidationError) ErrorName

ErrorName returns error name.

func (GetForeignUserRequestValidationError) Field

Field function returns field value.

func (GetForeignUserRequestValidationError) Key

Key function returns key value.

func (GetForeignUserRequestValidationError) Reason

Reason function returns reason value.

type GetForeignUserResponse

type GetForeignUserResponse struct {
	NewUID int64 `protobuf:"varint,1,opt,name=newUID,proto3" json:"newUID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetForeignUserResponse) Descriptor deprecated

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

Deprecated: Use GetForeignUserResponse.ProtoReflect.Descriptor instead.

func (*GetForeignUserResponse) GetNewUID

func (x *GetForeignUserResponse) GetNewUID() int64

func (*GetForeignUserResponse) ProtoMessage

func (*GetForeignUserResponse) ProtoMessage()

func (*GetForeignUserResponse) ProtoReflect

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

func (*GetForeignUserResponse) Reset

func (x *GetForeignUserResponse) Reset()

func (*GetForeignUserResponse) String

func (x *GetForeignUserResponse) String() string

func (*GetForeignUserResponse) Validate

func (m *GetForeignUserResponse) Validate() error

Validate checks the field values on GetForeignUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetForeignUserResponse) ValidateAll

func (m *GetForeignUserResponse) ValidateAll() error

ValidateAll checks the field values on GetForeignUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetForeignUserResponseMultiError, or nil if none found.

type GetForeignUserResponseMultiError

type GetForeignUserResponseMultiError []error

GetForeignUserResponseMultiError is an error wrapping multiple validation errors returned by GetForeignUserResponse.ValidateAll() if the designated constraints aren't met.

func (GetForeignUserResponseMultiError) AllErrors

func (m GetForeignUserResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetForeignUserResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetForeignUserResponseValidationError

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

GetForeignUserResponseValidationError is the validation error returned by GetForeignUserResponse.Validate if the designated constraints aren't met.

func (GetForeignUserResponseValidationError) Cause

Cause function returns cause value.

func (GetForeignUserResponseValidationError) Error

Error satisfies the builtin error interface

func (GetForeignUserResponseValidationError) ErrorName

ErrorName returns error name.

func (GetForeignUserResponseValidationError) Field

Field function returns field value.

func (GetForeignUserResponseValidationError) Key

Key function returns key value.

func (GetForeignUserResponseValidationError) Reason

Reason function returns reason value.

type GetUserFromIDRequest

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

func (*GetUserFromIDRequest) Descriptor deprecated

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

Deprecated: Use GetUserFromIDRequest.ProtoReflect.Descriptor instead.

func (*GetUserFromIDRequest) GetUserID

func (x *GetUserFromIDRequest) GetUserID() int64

func (*GetUserFromIDRequest) ProtoMessage

func (*GetUserFromIDRequest) ProtoMessage()

func (*GetUserFromIDRequest) ProtoReflect

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

func (*GetUserFromIDRequest) Reset

func (x *GetUserFromIDRequest) Reset()

func (*GetUserFromIDRequest) String

func (x *GetUserFromIDRequest) String() string

func (*GetUserFromIDRequest) Validate

func (m *GetUserFromIDRequest) Validate() error

Validate checks the field values on GetUserFromIDRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetUserFromIDRequest) ValidateAll

func (m *GetUserFromIDRequest) ValidateAll() error

ValidateAll checks the field values on GetUserFromIDRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserFromIDRequestMultiError, or nil if none found.

type GetUserFromIDRequestMultiError

type GetUserFromIDRequestMultiError []error

GetUserFromIDRequestMultiError is an error wrapping multiple validation errors returned by GetUserFromIDRequest.ValidateAll() if the designated constraints aren't met.

func (GetUserFromIDRequestMultiError) AllErrors

func (m GetUserFromIDRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserFromIDRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetUserFromIDRequestValidationError

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

GetUserFromIDRequestValidationError is the validation error returned by GetUserFromIDRequest.Validate if the designated constraints aren't met.

func (GetUserFromIDRequestValidationError) Cause

Cause function returns cause value.

func (GetUserFromIDRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserFromIDRequestValidationError) ErrorName

ErrorName returns error name.

func (GetUserFromIDRequestValidationError) Field

Field function returns field value.

func (GetUserFromIDRequestValidationError) Key

Key function returns key value.

func (GetUserFromIDRequestValidationError) Reason

Reason function returns reason value.

type GetUserIDsForUsernameRequest

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

func (*GetUserIDsForUsernameRequest) Descriptor deprecated

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

Deprecated: Use GetUserIDsForUsernameRequest.ProtoReflect.Descriptor instead.

func (*GetUserIDsForUsernameRequest) GetUsername

func (x *GetUserIDsForUsernameRequest) GetUsername() string

func (*GetUserIDsForUsernameRequest) ProtoMessage

func (*GetUserIDsForUsernameRequest) ProtoMessage()

func (*GetUserIDsForUsernameRequest) ProtoReflect

func (*GetUserIDsForUsernameRequest) Reset

func (x *GetUserIDsForUsernameRequest) Reset()

func (*GetUserIDsForUsernameRequest) String

func (*GetUserIDsForUsernameRequest) Validate

func (m *GetUserIDsForUsernameRequest) Validate() error

Validate checks the field values on GetUserIDsForUsernameRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetUserIDsForUsernameRequest) ValidateAll

func (m *GetUserIDsForUsernameRequest) ValidateAll() error

ValidateAll checks the field values on GetUserIDsForUsernameRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserIDsForUsernameRequestMultiError, or nil if none found.

type GetUserIDsForUsernameRequestMultiError

type GetUserIDsForUsernameRequestMultiError []error

GetUserIDsForUsernameRequestMultiError is an error wrapping multiple validation errors returned by GetUserIDsForUsernameRequest.ValidateAll() if the designated constraints aren't met.

func (GetUserIDsForUsernameRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetUserIDsForUsernameRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetUserIDsForUsernameRequestValidationError

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

GetUserIDsForUsernameRequestValidationError is the validation error returned by GetUserIDsForUsernameRequest.Validate if the designated constraints aren't met.

func (GetUserIDsForUsernameRequestValidationError) Cause

Cause function returns cause value.

func (GetUserIDsForUsernameRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserIDsForUsernameRequestValidationError) ErrorName

ErrorName returns error name.

func (GetUserIDsForUsernameRequestValidationError) Field

Field function returns field value.

func (GetUserIDsForUsernameRequestValidationError) Key

Key function returns key value.

func (GetUserIDsForUsernameRequestValidationError) Reason

Reason function returns reason value.

type GetUserIDsForUsernameResponse

type GetUserIDsForUsernameResponse struct {
	UserIDs []int64 `protobuf:"varint,1,rep,packed,name=userIDs,proto3" json:"userIDs,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserIDsForUsernameResponse) Descriptor deprecated

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

Deprecated: Use GetUserIDsForUsernameResponse.ProtoReflect.Descriptor instead.

func (*GetUserIDsForUsernameResponse) GetUserIDs

func (x *GetUserIDsForUsernameResponse) GetUserIDs() []int64

func (*GetUserIDsForUsernameResponse) ProtoMessage

func (*GetUserIDsForUsernameResponse) ProtoMessage()

func (*GetUserIDsForUsernameResponse) ProtoReflect

func (*GetUserIDsForUsernameResponse) Reset

func (x *GetUserIDsForUsernameResponse) Reset()

func (*GetUserIDsForUsernameResponse) String

func (*GetUserIDsForUsernameResponse) Validate

func (m *GetUserIDsForUsernameResponse) Validate() error

Validate checks the field values on GetUserIDsForUsernameResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetUserIDsForUsernameResponse) ValidateAll

func (m *GetUserIDsForUsernameResponse) ValidateAll() error

ValidateAll checks the field values on GetUserIDsForUsernameResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserIDsForUsernameResponseMultiError, or nil if none found.

type GetUserIDsForUsernameResponseMultiError

type GetUserIDsForUsernameResponseMultiError []error

GetUserIDsForUsernameResponseMultiError is an error wrapping multiple validation errors returned by GetUserIDsForUsernameResponse.ValidateAll() if the designated constraints aren't met.

func (GetUserIDsForUsernameResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetUserIDsForUsernameResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetUserIDsForUsernameResponseValidationError

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

GetUserIDsForUsernameResponseValidationError is the validation error returned by GetUserIDsForUsernameResponse.Validate if the designated constraints aren't met.

func (GetUserIDsForUsernameResponseValidationError) Cause

Cause function returns cause value.

func (GetUserIDsForUsernameResponseValidationError) Error

Error satisfies the builtin error interface

func (GetUserIDsForUsernameResponseValidationError) ErrorName

ErrorName returns error name.

func (GetUserIDsForUsernameResponseValidationError) Field

Field function returns field value.

func (GetUserIDsForUsernameResponseValidationError) Key

Key function returns key value.

func (GetUserIDsForUsernameResponseValidationError) Reason

Reason function returns reason value.

type LoginRequest

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

func (*LoginRequest) Descriptor deprecated

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

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) GetUsername

func (x *LoginRequest) GetUsername() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

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

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

func (*LoginRequest) Validate

func (m *LoginRequest) Validate() error

Validate checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginRequest) ValidateAll

func (m *LoginRequest) ValidateAll() error

ValidateAll checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginRequestMultiError, or nil if none found.

type LoginRequestMultiError

type LoginRequestMultiError []error

LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.

func (LoginRequestMultiError) AllErrors

func (m LoginRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginRequestMultiError) Error

func (m LoginRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginRequestValidationError

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

LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.

func (LoginRequestValidationError) Cause

Cause function returns cause value.

func (LoginRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginRequestValidationError) ErrorName

func (e LoginRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LoginRequestValidationError) Field

Field function returns field value.

func (LoginRequestValidationError) Key

Key function returns key value.

func (LoginRequestValidationError) Reason

Reason function returns reason value.

type LoginResponse

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

func (*LoginResponse) Descriptor deprecated

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

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetJwt

func (x *LoginResponse) GetJwt() string

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

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

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

func (*LoginResponse) Validate

func (m *LoginResponse) Validate() error

Validate checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginResponse) ValidateAll

func (m *LoginResponse) ValidateAll() error

ValidateAll checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginResponseMultiError, or nil if none found.

type LoginResponseMultiError

type LoginResponseMultiError []error

LoginResponseMultiError is an error wrapping multiple validation errors returned by LoginResponse.ValidateAll() if the designated constraints aren't met.

func (LoginResponseMultiError) AllErrors

func (m LoginResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginResponseMultiError) Error

func (m LoginResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginResponseValidationError

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

LoginResponseValidationError is the validation error returned by LoginResponse.Validate if the designated constraints aren't met.

func (LoginResponseValidationError) Cause

Cause function returns cause value.

func (LoginResponseValidationError) Error

Error satisfies the builtin error interface

func (LoginResponseValidationError) ErrorName

func (e LoginResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LoginResponseValidationError) Field

Field function returns field value.

func (LoginResponseValidationError) Key

Key function returns key value.

func (LoginResponseValidationError) Reason

Reason function returns reason value.

type NewAuditEventRequest

type NewAuditEventRequest struct {
	User_ID int64  `protobuf:"varint,1,opt,name=user_ID,json=userID,proto3" json:"user_ID,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*NewAuditEventRequest) Descriptor deprecated

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

Deprecated: Use NewAuditEventRequest.ProtoReflect.Descriptor instead.

func (*NewAuditEventRequest) GetMessage

func (x *NewAuditEventRequest) GetMessage() string

func (*NewAuditEventRequest) GetUser_ID

func (x *NewAuditEventRequest) GetUser_ID() int64

func (*NewAuditEventRequest) ProtoMessage

func (*NewAuditEventRequest) ProtoMessage()

func (*NewAuditEventRequest) ProtoReflect

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

func (*NewAuditEventRequest) Reset

func (x *NewAuditEventRequest) Reset()

func (*NewAuditEventRequest) String

func (x *NewAuditEventRequest) String() string

func (*NewAuditEventRequest) Validate

func (m *NewAuditEventRequest) Validate() error

Validate checks the field values on NewAuditEventRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*NewAuditEventRequest) ValidateAll

func (m *NewAuditEventRequest) ValidateAll() error

ValidateAll checks the field values on NewAuditEventRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in NewAuditEventRequestMultiError, or nil if none found.

type NewAuditEventRequestMultiError

type NewAuditEventRequestMultiError []error

NewAuditEventRequestMultiError is an error wrapping multiple validation errors returned by NewAuditEventRequest.ValidateAll() if the designated constraints aren't met.

func (NewAuditEventRequestMultiError) AllErrors

func (m NewAuditEventRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NewAuditEventRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type NewAuditEventRequestValidationError

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

NewAuditEventRequestValidationError is the validation error returned by NewAuditEventRequest.Validate if the designated constraints aren't met.

func (NewAuditEventRequestValidationError) Cause

Cause function returns cause value.

func (NewAuditEventRequestValidationError) Error

Error satisfies the builtin error interface

func (NewAuditEventRequestValidationError) ErrorName

ErrorName returns error name.

func (NewAuditEventRequestValidationError) Field

Field function returns field value.

func (NewAuditEventRequestValidationError) Key

Key function returns key value.

func (NewAuditEventRequestValidationError) Reason

Reason function returns reason value.

type None

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

func (*None) Descriptor deprecated

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

Deprecated: Use None.ProtoReflect.Descriptor instead.

func (*None) ProtoMessage

func (*None) ProtoMessage()

func (*None) ProtoReflect

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

func (*None) Reset

func (x *None) Reset()

func (*None) String

func (x *None) String() string

func (*None) Validate

func (m *None) Validate() error

Validate checks the field values on None with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*None) ValidateAll

func (m *None) ValidateAll() error

ValidateAll checks the field values on None with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in NoneMultiError, or nil if none found.

type NoneMultiError

type NoneMultiError []error

NoneMultiError is an error wrapping multiple validation errors returned by None.ValidateAll() if the designated constraints aren't met.

func (NoneMultiError) AllErrors

func (m NoneMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NoneMultiError) Error

func (m NoneMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type NoneValidationError

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

NoneValidationError is the validation error returned by None.Validate if the designated constraints aren't met.

func (NoneValidationError) Cause

func (e NoneValidationError) Cause() error

Cause function returns cause value.

func (NoneValidationError) Error

func (e NoneValidationError) Error() string

Error satisfies the builtin error interface

func (NoneValidationError) ErrorName

func (e NoneValidationError) ErrorName() string

ErrorName returns error name.

func (NoneValidationError) Field

func (e NoneValidationError) Field() string

Field function returns field value.

func (NoneValidationError) Key

func (e NoneValidationError) Key() bool

Key function returns key value.

func (NoneValidationError) Reason

func (e NoneValidationError) Reason() string

Reason function returns reason value.

type ProfileReq

type ProfileReq struct {
	User_ID   int64  `protobuf:"varint,1,opt,name=user_ID,json=userID,proto3" json:"user_ID,omitempty"`
	Bio       string `protobuf:"bytes,2,opt,name=bio,proto3" json:"bio,omitempty"`
	Username  string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	Birthdate string `protobuf:"bytes,4,opt,name=birthdate,proto3" json:"birthdate,omitempty"`
	Gender    string `protobuf:"bytes,5,opt,name=gender,proto3" json:"gender,omitempty"`
	// contains filtered or unexported fields
}

func (*ProfileReq) Descriptor deprecated

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

Deprecated: Use ProfileReq.ProtoReflect.Descriptor instead.

func (*ProfileReq) GetBio

func (x *ProfileReq) GetBio() string

func (*ProfileReq) GetBirthdate

func (x *ProfileReq) GetBirthdate() string

func (*ProfileReq) GetGender

func (x *ProfileReq) GetGender() string

func (*ProfileReq) GetUser_ID

func (x *ProfileReq) GetUser_ID() int64

func (*ProfileReq) GetUsername

func (x *ProfileReq) GetUsername() string

func (*ProfileReq) ProtoMessage

func (*ProfileReq) ProtoMessage()

func (*ProfileReq) ProtoReflect

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

func (*ProfileReq) Reset

func (x *ProfileReq) Reset()

func (*ProfileReq) String

func (x *ProfileReq) String() string

func (*ProfileReq) Validate

func (m *ProfileReq) Validate() error

Validate checks the field values on ProfileReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ProfileReq) ValidateAll

func (m *ProfileReq) ValidateAll() error

ValidateAll checks the field values on ProfileReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ProfileReqMultiError, or nil if none found.

type ProfileReqMultiError

type ProfileReqMultiError []error

ProfileReqMultiError is an error wrapping multiple validation errors returned by ProfileReq.ValidateAll() if the designated constraints aren't met.

func (ProfileReqMultiError) AllErrors

func (m ProfileReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ProfileReqMultiError) Error

func (m ProfileReqMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ProfileReqValidationError

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

ProfileReqValidationError is the validation error returned by ProfileReq.Validate if the designated constraints aren't met.

func (ProfileReqValidationError) Cause

func (e ProfileReqValidationError) Cause() error

Cause function returns cause value.

func (ProfileReqValidationError) Error

Error satisfies the builtin error interface

func (ProfileReqValidationError) ErrorName

func (e ProfileReqValidationError) ErrorName() string

ErrorName returns error name.

func (ProfileReqValidationError) Field

Field function returns field value.

func (ProfileReqValidationError) Key

Key function returns key value.

func (ProfileReqValidationError) Reason

func (e ProfileReqValidationError) Reason() string

Reason function returns reason value.

type RegisterRequest

type RegisterRequest struct {
	Email       string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Username    string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Password    string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	ForeignUser bool   `protobuf:"varint,4,opt,name=foreignUser,proto3" json:"foreignUser,omitempty"` // If true, indicates that the user was created due to archival from another website, in which case
	// the password field will not be used
	ForeignUserID    string `protobuf:"bytes,5,opt,name=foreignUserID,proto3" json:"foreignUserID,omitempty"`
	ForeignWebsite   string `protobuf:"bytes,6,opt,name=foreignWebsite,proto3" json:"foreignWebsite,omitempty"`
	VerificationCode int64  `protobuf:"varint,7,opt,name=verificationCode,proto3" json:"verificationCode,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterRequest) Descriptor deprecated

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

Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.

func (*RegisterRequest) GetEmail

func (x *RegisterRequest) GetEmail() string

func (*RegisterRequest) GetForeignUser

func (x *RegisterRequest) GetForeignUser() bool

func (*RegisterRequest) GetForeignUserID

func (x *RegisterRequest) GetForeignUserID() string

func (*RegisterRequest) GetForeignWebsite

func (x *RegisterRequest) GetForeignWebsite() string

func (*RegisterRequest) GetPassword

func (x *RegisterRequest) GetPassword() string

func (*RegisterRequest) GetUsername

func (x *RegisterRequest) GetUsername() string

func (*RegisterRequest) GetVerificationCode

func (x *RegisterRequest) GetVerificationCode() int64

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) ProtoReflect

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

func (*RegisterRequest) Reset

func (x *RegisterRequest) Reset()

func (*RegisterRequest) String

func (x *RegisterRequest) String() string

func (*RegisterRequest) Validate

func (m *RegisterRequest) Validate() error

Validate checks the field values on RegisterRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RegisterRequest) ValidateAll

func (m *RegisterRequest) ValidateAll() error

ValidateAll checks the field values on RegisterRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegisterRequestMultiError, or nil if none found.

type RegisterRequestMultiError

type RegisterRequestMultiError []error

RegisterRequestMultiError is an error wrapping multiple validation errors returned by RegisterRequest.ValidateAll() if the designated constraints aren't met.

func (RegisterRequestMultiError) AllErrors

func (m RegisterRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RegisterRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RegisterRequestValidationError

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

RegisterRequestValidationError is the validation error returned by RegisterRequest.Validate if the designated constraints aren't met.

func (RegisterRequestValidationError) Cause

Cause function returns cause value.

func (RegisterRequestValidationError) Error

Error satisfies the builtin error interface

func (RegisterRequestValidationError) ErrorName

func (e RegisterRequestValidationError) ErrorName() string

ErrorName returns error name.

func (RegisterRequestValidationError) Field

Field function returns field value.

func (RegisterRequestValidationError) Key

Key function returns key value.

func (RegisterRequestValidationError) Reason

Reason function returns reason value.

type RegisterResponse

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

func (*RegisterResponse) Descriptor deprecated

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

Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.

func (*RegisterResponse) GetJwt

func (x *RegisterResponse) GetJwt() string

func (*RegisterResponse) ProtoMessage

func (*RegisterResponse) ProtoMessage()

func (*RegisterResponse) ProtoReflect

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

func (*RegisterResponse) Reset

func (x *RegisterResponse) Reset()

func (*RegisterResponse) String

func (x *RegisterResponse) String() string

func (*RegisterResponse) Validate

func (m *RegisterResponse) Validate() error

Validate checks the field values on RegisterResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RegisterResponse) ValidateAll

func (m *RegisterResponse) ValidateAll() error

ValidateAll checks the field values on RegisterResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegisterResponseMultiError, or nil if none found.

type RegisterResponseMultiError

type RegisterResponseMultiError []error

RegisterResponseMultiError is an error wrapping multiple validation errors returned by RegisterResponse.ValidateAll() if the designated constraints aren't met.

func (RegisterResponseMultiError) AllErrors

func (m RegisterResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RegisterResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RegisterResponseValidationError

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

RegisterResponseValidationError is the validation error returned by RegisterResponse.Validate if the designated constraints aren't met.

func (RegisterResponseValidationError) Cause

Cause function returns cause value.

func (RegisterResponseValidationError) Error

Error satisfies the builtin error interface

func (RegisterResponseValidationError) ErrorName

ErrorName returns error name.

func (RegisterResponseValidationError) Field

Field function returns field value.

func (RegisterResponseValidationError) Key

Key function returns key value.

func (RegisterResponseValidationError) Reason

Reason function returns reason value.

type ResetPasswordRequest

type ResetPasswordRequest struct {
	UserID      int64  `protobuf:"varint,1,opt,name=UserID,proto3" json:"UserID,omitempty"`
	OldPassword string `protobuf:"bytes,2,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"`
	NewPassword string `protobuf:"bytes,3,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
	// contains filtered or unexported fields
}

func (*ResetPasswordRequest) Descriptor deprecated

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

Deprecated: Use ResetPasswordRequest.ProtoReflect.Descriptor instead.

func (*ResetPasswordRequest) GetNewPassword

func (x *ResetPasswordRequest) GetNewPassword() string

func (*ResetPasswordRequest) GetOldPassword

func (x *ResetPasswordRequest) GetOldPassword() string

func (*ResetPasswordRequest) GetUserID

func (x *ResetPasswordRequest) GetUserID() int64

func (*ResetPasswordRequest) ProtoMessage

func (*ResetPasswordRequest) ProtoMessage()

func (*ResetPasswordRequest) ProtoReflect

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

func (*ResetPasswordRequest) Reset

func (x *ResetPasswordRequest) Reset()

func (*ResetPasswordRequest) String

func (x *ResetPasswordRequest) String() string

func (*ResetPasswordRequest) Validate

func (m *ResetPasswordRequest) Validate() error

Validate checks the field values on ResetPasswordRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ResetPasswordRequest) ValidateAll

func (m *ResetPasswordRequest) ValidateAll() error

ValidateAll checks the field values on ResetPasswordRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ResetPasswordRequestMultiError, or nil if none found.

type ResetPasswordRequestMultiError

type ResetPasswordRequestMultiError []error

ResetPasswordRequestMultiError is an error wrapping multiple validation errors returned by ResetPasswordRequest.ValidateAll() if the designated constraints aren't met.

func (ResetPasswordRequestMultiError) AllErrors

func (m ResetPasswordRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResetPasswordRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ResetPasswordRequestValidationError

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

ResetPasswordRequestValidationError is the validation error returned by ResetPasswordRequest.Validate if the designated constraints aren't met.

func (ResetPasswordRequestValidationError) Cause

Cause function returns cause value.

func (ResetPasswordRequestValidationError) Error

Error satisfies the builtin error interface

func (ResetPasswordRequestValidationError) ErrorName

ErrorName returns error name.

func (ResetPasswordRequestValidationError) Field

Field function returns field value.

func (ResetPasswordRequestValidationError) Key

Key function returns key value.

func (ResetPasswordRequestValidationError) Reason

Reason function returns reason value.

type SetRankRequest

type SetRankRequest struct {
	UserID int64    `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"`
	Rank   UserRank `protobuf:"varint,2,opt,name=rank,proto3,enum=proto.UserRank" json:"rank,omitempty"`
	// contains filtered or unexported fields
}

func (*SetRankRequest) Descriptor deprecated

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

Deprecated: Use SetRankRequest.ProtoReflect.Descriptor instead.

func (*SetRankRequest) GetRank

func (x *SetRankRequest) GetRank() UserRank

func (*SetRankRequest) GetUserID

func (x *SetRankRequest) GetUserID() int64

func (*SetRankRequest) ProtoMessage

func (*SetRankRequest) ProtoMessage()

func (*SetRankRequest) ProtoReflect

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

func (*SetRankRequest) Reset

func (x *SetRankRequest) Reset()

func (*SetRankRequest) String

func (x *SetRankRequest) String() string

func (*SetRankRequest) Validate

func (m *SetRankRequest) Validate() error

Validate checks the field values on SetRankRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SetRankRequest) ValidateAll

func (m *SetRankRequest) ValidateAll() error

ValidateAll checks the field values on SetRankRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SetRankRequestMultiError, or nil if none found.

type SetRankRequestMultiError

type SetRankRequestMultiError []error

SetRankRequestMultiError is an error wrapping multiple validation errors returned by SetRankRequest.ValidateAll() if the designated constraints aren't met.

func (SetRankRequestMultiError) AllErrors

func (m SetRankRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetRankRequestMultiError) Error

func (m SetRankRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SetRankRequestValidationError

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

SetRankRequestValidationError is the validation error returned by SetRankRequest.Validate if the designated constraints aren't met.

func (SetRankRequestValidationError) Cause

Cause function returns cause value.

func (SetRankRequestValidationError) Error

Error satisfies the builtin error interface

func (SetRankRequestValidationError) ErrorName

func (e SetRankRequestValidationError) ErrorName() string

ErrorName returns error name.

func (SetRankRequestValidationError) Field

Field function returns field value.

func (SetRankRequestValidationError) Key

Key function returns key value.

func (SetRankRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) AddAuditEvent

func (UnimplementedUserServiceServer) AddFolllower

func (UnimplementedUserServiceServer) BanUser

func (UnimplementedUserServiceServer) EmailValidation

func (UnimplementedUserServiceServer) GetAuditEvents

func (UnimplementedUserServiceServer) GetFollowers

func (UnimplementedUserServiceServer) GetUserForForeignUID

func (UnimplementedUserServiceServer) GetUserFromID

func (UnimplementedUserServiceServer) Login

func (UnimplementedUserServiceServer) Register

func (UnimplementedUserServiceServer) ResetPassword

func (UnimplementedUserServiceServer) SetProfile

func (UnimplementedUserServiceServer) SetUserRank

func (UnimplementedUserServiceServer) ValidateJWT

type UnsafeUserServiceServer

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

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

type UserRank

type UserRank int32
const (
	UserRank_regular UserRank = 0
	UserRank_trusted UserRank = 1
	UserRank_admin   UserRank = 2
)

func (UserRank) Descriptor

func (UserRank) Descriptor() protoreflect.EnumDescriptor

func (UserRank) Enum

func (x UserRank) Enum() *UserRank

func (UserRank) EnumDescriptor deprecated

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

Deprecated: Use UserRank.Descriptor instead.

func (UserRank) Number

func (x UserRank) Number() protoreflect.EnumNumber

func (UserRank) String

func (x UserRank) String() string

func (UserRank) Type

type UserResponse

type UserResponse struct {
	Username string   `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Email    string   `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Rank     UserRank `protobuf:"varint,3,opt,name=rank,proto3,enum=proto.UserRank" json:"rank,omitempty"`
	Banned   bool     `protobuf:"varint,4,opt,name=banned,proto3" json:"banned,omitempty"`
	// Optional profile stuff
	Bio       string `protobuf:"bytes,5,opt,name=bio,proto3" json:"bio,omitempty"`
	Birthdate string `protobuf:"bytes,6,opt,name=birthdate,proto3" json:"birthdate,omitempty"`
	Gender    string `protobuf:"bytes,7,opt,name=gender,proto3" json:"gender,omitempty"`
	JoinDate  string `protobuf:"bytes,8,opt,name=join_date,json=joinDate,proto3" json:"join_date,omitempty"`
	// contains filtered or unexported fields
}

func (*UserResponse) Descriptor deprecated

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

Deprecated: Use UserResponse.ProtoReflect.Descriptor instead.

func (*UserResponse) GetBanned

func (x *UserResponse) GetBanned() bool

func (*UserResponse) GetBio

func (x *UserResponse) GetBio() string

func (*UserResponse) GetBirthdate

func (x *UserResponse) GetBirthdate() string

func (*UserResponse) GetEmail

func (x *UserResponse) GetEmail() string

func (*UserResponse) GetGender

func (x *UserResponse) GetGender() string

func (*UserResponse) GetJoinDate

func (x *UserResponse) GetJoinDate() string

func (*UserResponse) GetRank

func (x *UserResponse) GetRank() UserRank

func (*UserResponse) GetUsername

func (x *UserResponse) GetUsername() string

func (*UserResponse) ProtoMessage

func (*UserResponse) ProtoMessage()

func (*UserResponse) ProtoReflect

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

func (*UserResponse) Reset

func (x *UserResponse) Reset()

func (*UserResponse) String

func (x *UserResponse) String() string

func (*UserResponse) Validate

func (m *UserResponse) Validate() error

Validate checks the field values on UserResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UserResponse) ValidateAll

func (m *UserResponse) ValidateAll() error

ValidateAll checks the field values on UserResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserResponseMultiError, or nil if none found.

type UserResponseMultiError

type UserResponseMultiError []error

UserResponseMultiError is an error wrapping multiple validation errors returned by UserResponse.ValidateAll() if the designated constraints aren't met.

func (UserResponseMultiError) AllErrors

func (m UserResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserResponseMultiError) Error

func (m UserResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserResponseValidationError

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

UserResponseValidationError is the validation error returned by UserResponse.Validate if the designated constraints aren't met.

func (UserResponseValidationError) Cause

Cause function returns cause value.

func (UserResponseValidationError) Error

Error satisfies the builtin error interface

func (UserResponseValidationError) ErrorName

func (e UserResponseValidationError) ErrorName() string

ErrorName returns error name.

func (UserResponseValidationError) Field

Field function returns field value.

func (UserResponseValidationError) Key

Key function returns key value.

func (UserResponseValidationError) Reason

Reason function returns reason value.

type UserServiceClient

type UserServiceClient interface {
	EmailValidation(ctx context.Context, in *ValidationRequest, opts ...grpc.CallOption) (*None, error)
	Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
	ValidateJWT(ctx context.Context, in *ValidateJWTRequest, opts ...grpc.CallOption) (*ValidateJWTResponse, error)
	GetUserFromID(ctx context.Context, in *GetUserFromIDRequest, opts ...grpc.CallOption) (*UserResponse, error)
	GetUserForForeignUID(ctx context.Context, in *GetForeignUserRequest, opts ...grpc.CallOption) (*GetForeignUserResponse, error)
	GetUserIDsForUsername(ctx context.Context, in *GetUserIDsForUsernameRequest, opts ...grpc.CallOption) (*GetUserIDsForUsernameResponse, error)
	BanUser(ctx context.Context, in *BanUserRequest, opts ...grpc.CallOption) (*BanUserResponse, error)
	SetUserRank(ctx context.Context, in *SetRankRequest, opts ...grpc.CallOption) (*None, error)
	ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*None, error)
	AddAuditEvent(ctx context.Context, in *NewAuditEventRequest, opts ...grpc.CallOption) (*None, error)
	GetAuditEvents(ctx context.Context, in *AuditEventsListRequest, opts ...grpc.CallOption) (*AuditListResponse, error)
	GetFollowers(ctx context.Context, in *FollowerReq, opts ...grpc.CallOption) (*FollowerResp, error)
	AddFolllower(ctx context.Context, in *AddFollowReq, opts ...grpc.CallOption) (*None, error)
	SetProfile(ctx context.Context, in *ProfileReq, opts ...grpc.CallOption) (*None, error)
}

UserServiceClient is the client API for UserService 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 UserServiceServer

UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility

type ValidateJWTRequest

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

func (*ValidateJWTRequest) Descriptor deprecated

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

Deprecated: Use ValidateJWTRequest.ProtoReflect.Descriptor instead.

func (*ValidateJWTRequest) GetJwt

func (x *ValidateJWTRequest) GetJwt() string

func (*ValidateJWTRequest) ProtoMessage

func (*ValidateJWTRequest) ProtoMessage()

func (*ValidateJWTRequest) ProtoReflect

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

func (*ValidateJWTRequest) Reset

func (x *ValidateJWTRequest) Reset()

func (*ValidateJWTRequest) String

func (x *ValidateJWTRequest) String() string

func (*ValidateJWTRequest) Validate

func (m *ValidateJWTRequest) Validate() error

Validate checks the field values on ValidateJWTRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ValidateJWTRequest) ValidateAll

func (m *ValidateJWTRequest) ValidateAll() error

ValidateAll checks the field values on ValidateJWTRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ValidateJWTRequestMultiError, or nil if none found.

type ValidateJWTRequestMultiError

type ValidateJWTRequestMultiError []error

ValidateJWTRequestMultiError is an error wrapping multiple validation errors returned by ValidateJWTRequest.ValidateAll() if the designated constraints aren't met.

func (ValidateJWTRequestMultiError) AllErrors

func (m ValidateJWTRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ValidateJWTRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ValidateJWTRequestValidationError

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

ValidateJWTRequestValidationError is the validation error returned by ValidateJWTRequest.Validate if the designated constraints aren't met.

func (ValidateJWTRequestValidationError) Cause

Cause function returns cause value.

func (ValidateJWTRequestValidationError) Error

Error satisfies the builtin error interface

func (ValidateJWTRequestValidationError) ErrorName

ErrorName returns error name.

func (ValidateJWTRequestValidationError) Field

Field function returns field value.

func (ValidateJWTRequestValidationError) Key

Key function returns key value.

func (ValidateJWTRequestValidationError) Reason

Reason function returns reason value.

type ValidateJWTResponse

type ValidateJWTResponse struct {
	IsValid bool  `protobuf:"varint,1,opt,name=isValid,proto3" json:"isValid,omitempty"`
	Uid     int64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateJWTResponse) Descriptor deprecated

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

Deprecated: Use ValidateJWTResponse.ProtoReflect.Descriptor instead.

func (*ValidateJWTResponse) GetIsValid

func (x *ValidateJWTResponse) GetIsValid() bool

func (*ValidateJWTResponse) GetUid

func (x *ValidateJWTResponse) GetUid() int64

func (*ValidateJWTResponse) ProtoMessage

func (*ValidateJWTResponse) ProtoMessage()

func (*ValidateJWTResponse) ProtoReflect

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

func (*ValidateJWTResponse) Reset

func (x *ValidateJWTResponse) Reset()

func (*ValidateJWTResponse) String

func (x *ValidateJWTResponse) String() string

func (*ValidateJWTResponse) Validate

func (m *ValidateJWTResponse) Validate() error

Validate checks the field values on ValidateJWTResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ValidateJWTResponse) ValidateAll

func (m *ValidateJWTResponse) ValidateAll() error

ValidateAll checks the field values on ValidateJWTResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ValidateJWTResponseMultiError, or nil if none found.

type ValidateJWTResponseMultiError

type ValidateJWTResponseMultiError []error

ValidateJWTResponseMultiError is an error wrapping multiple validation errors returned by ValidateJWTResponse.ValidateAll() if the designated constraints aren't met.

func (ValidateJWTResponseMultiError) AllErrors

func (m ValidateJWTResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ValidateJWTResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ValidateJWTResponseValidationError

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

ValidateJWTResponseValidationError is the validation error returned by ValidateJWTResponse.Validate if the designated constraints aren't met.

func (ValidateJWTResponseValidationError) Cause

Cause function returns cause value.

func (ValidateJWTResponseValidationError) Error

Error satisfies the builtin error interface

func (ValidateJWTResponseValidationError) ErrorName

ErrorName returns error name.

func (ValidateJWTResponseValidationError) Field

Field function returns field value.

func (ValidateJWTResponseValidationError) Key

Key function returns key value.

func (ValidateJWTResponseValidationError) Reason

Reason function returns reason value.

type ValidationRequest

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

func (*ValidationRequest) Descriptor deprecated

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

Deprecated: Use ValidationRequest.ProtoReflect.Descriptor instead.

func (*ValidationRequest) GetEmail

func (x *ValidationRequest) GetEmail() 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

func (*ValidationRequest) Validate

func (m *ValidationRequest) Validate() error

Validate checks the field values on ValidationRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ValidationRequest) ValidateAll

func (m *ValidationRequest) ValidateAll() error

ValidateAll checks the field values on ValidationRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ValidationRequestMultiError, or nil if none found.

type ValidationRequestMultiError

type ValidationRequestMultiError []error

ValidationRequestMultiError is an error wrapping multiple validation errors returned by ValidationRequest.ValidateAll() if the designated constraints aren't met.

func (ValidationRequestMultiError) AllErrors

func (m ValidationRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ValidationRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ValidationRequestValidationError

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

ValidationRequestValidationError is the validation error returned by ValidationRequest.Validate if the designated constraints aren't met.

func (ValidationRequestValidationError) Cause

Cause function returns cause value.

func (ValidationRequestValidationError) Error

Error satisfies the builtin error interface

func (ValidationRequestValidationError) ErrorName

ErrorName returns error name.

func (ValidationRequestValidationError) Field

Field function returns field value.

func (ValidationRequestValidationError) Key

Key function returns key value.

func (ValidationRequestValidationError) Reason

Reason function returns reason value.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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