citizenstore

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 56 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CitizenStoreService_ListCitizens_FullMethodName            = "/services.citizenstore.CitizenStoreService/ListCitizens"
	CitizenStoreService_GetUser_FullMethodName                 = "/services.citizenstore.CitizenStoreService/GetUser"
	CitizenStoreService_ListUserActivity_FullMethodName        = "/services.citizenstore.CitizenStoreService/ListUserActivity"
	CitizenStoreService_SetUserProps_FullMethodName            = "/services.citizenstore.CitizenStoreService/SetUserProps"
	CitizenStoreService_SetProfilePicture_FullMethodName       = "/services.citizenstore.CitizenStoreService/SetProfilePicture"
	CitizenStoreService_ManageCitizenAttributes_FullMethodName = "/services.citizenstore.CitizenStoreService/ManageCitizenAttributes"
)

Variables

View Source
var CitizenStoreService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "services.citizenstore.CitizenStoreService",
	HandlerType: (*CitizenStoreServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListCitizens",
			Handler:    _CitizenStoreService_ListCitizens_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _CitizenStoreService_GetUser_Handler,
		},
		{
			MethodName: "ListUserActivity",
			Handler:    _CitizenStoreService_ListUserActivity_Handler,
		},
		{
			MethodName: "SetUserProps",
			Handler:    _CitizenStoreService_SetUserProps_Handler,
		},
		{
			MethodName: "SetProfilePicture",
			Handler:    _CitizenStoreService_SetProfilePicture_Handler,
		},
		{
			MethodName: "ManageCitizenAttributes",
			Handler:    _CitizenStoreService_ManageCitizenAttributes_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "services/citizenstore/citizenstore.proto",
}

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

View Source
var File_services_citizenstore_citizenstore_proto protoreflect.FileDescriptor
View Source
var PermsRemap = map[string]string{

	"CitizenStoreService/SetProfilePicture": "Any",
}
View Source
var ZeroTrafficInfractionPoints uint32 = 0

Functions

func RegisterCitizenStoreServiceServer

func RegisterCitizenStoreServiceServer(s grpc.ServiceRegistrar, srv CitizenStoreServiceServer)

Types

type CitizenStoreServiceClient

type CitizenStoreServiceClient interface {
	// @perm: Attrs=Fields/StringList:[]string{"PhoneNumber", "Licenses", "UserProps.Wanted", "UserProps.Job", "UserProps.TrafficInfractionPoints", "UserProps.OpenFines", "UserProps.BloodType", "UserProps.MugShot", "UserProps.Attributes"}
	ListCitizens(ctx context.Context, in *ListCitizensRequest, opts ...grpc.CallOption) (*ListCitizensResponse, error)
	// @perm: Attrs=Jobs/JobGradeList
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
	// @perm: Attrs=Fields/StringList:[]string{"SourceUser", "Own"}
	ListUserActivity(ctx context.Context, in *ListUserActivityRequest, opts ...grpc.CallOption) (*ListUserActivityResponse, error)
	// @perm: Attrs=Fields/StringList:[]string{"Wanted", "Job", "TrafficInfractionPoints", "MugShot", "Attributes"}
	SetUserProps(ctx context.Context, in *SetUserPropsRequest, opts ...grpc.CallOption) (*SetUserPropsResponse, error)
	// @perm: Name=Any
	SetProfilePicture(ctx context.Context, in *SetProfilePictureRequest, opts ...grpc.CallOption) (*SetProfilePictureResponse, error)
	// @perm
	ManageCitizenAttributes(ctx context.Context, in *ManageCitizenAttributesRequest, opts ...grpc.CallOption) (*ManageCitizenAttributesResponse, error)
}

CitizenStoreServiceClient is the client API for CitizenStoreService 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 CitizenStoreServiceServer

type CitizenStoreServiceServer interface {
	// @perm: Attrs=Fields/StringList:[]string{"PhoneNumber", "Licenses", "UserProps.Wanted", "UserProps.Job", "UserProps.TrafficInfractionPoints", "UserProps.OpenFines", "UserProps.BloodType", "UserProps.MugShot", "UserProps.Attributes"}
	ListCitizens(context.Context, *ListCitizensRequest) (*ListCitizensResponse, error)
	// @perm: Attrs=Jobs/JobGradeList
	GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
	// @perm: Attrs=Fields/StringList:[]string{"SourceUser", "Own"}
	ListUserActivity(context.Context, *ListUserActivityRequest) (*ListUserActivityResponse, error)
	// @perm: Attrs=Fields/StringList:[]string{"Wanted", "Job", "TrafficInfractionPoints", "MugShot", "Attributes"}
	SetUserProps(context.Context, *SetUserPropsRequest) (*SetUserPropsResponse, error)
	// @perm: Name=Any
	SetProfilePicture(context.Context, *SetProfilePictureRequest) (*SetProfilePictureResponse, error)
	// @perm
	ManageCitizenAttributes(context.Context, *ManageCitizenAttributesRequest) (*ManageCitizenAttributesResponse, error)
	// contains filtered or unexported methods
}

CitizenStoreServiceServer is the server API for CitizenStoreService service. All implementations must embed UnimplementedCitizenStoreServiceServer for forward compatibility

type GetUserRequest

type GetUserRequest struct {
	UserId   int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	InfoOnly *bool `protobuf:"varint,2,opt,name=info_only,json=infoOnly,proto3,oneof" json:"info_only,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetInfoOnly

func (x *GetUserRequest) GetInfoOnly() bool

func (*GetUserRequest) GetUserId

func (x *GetUserRequest) GetUserId() int32

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

func (*GetUserRequest) Validate

func (m *GetUserRequest) Validate() error

Validate checks the field values on GetUserRequest 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 (*GetUserRequest) ValidateAll

func (m *GetUserRequest) ValidateAll() error

ValidateAll checks the field values on GetUserRequest 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 GetUserRequestMultiError, or nil if none found.

type GetUserRequestMultiError

type GetUserRequestMultiError []error

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

func (GetUserRequestMultiError) AllErrors

func (m GetUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserRequestMultiError) Error

func (m GetUserRequestMultiError) Error() string

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

type GetUserRequestValidationError

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

GetUserRequestValidationError is the validation error returned by GetUserRequest.Validate if the designated constraints aren't met.

func (GetUserRequestValidationError) Cause

Cause function returns cause value.

func (GetUserRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserRequestValidationError) ErrorName

func (e GetUserRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserRequestValidationError) Field

Field function returns field value.

func (GetUserRequestValidationError) Key

Key function returns key value.

func (GetUserRequestValidationError) Reason

Reason function returns reason value.

type GetUserResponse

type GetUserResponse struct {
	User *users.User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserResponse) Descriptor deprecated

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

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) GetUser

func (x *GetUserResponse) GetUser() *users.User

func (*GetUserResponse) ProtoMessage

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) ProtoReflect

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

func (*GetUserResponse) Reset

func (x *GetUserResponse) Reset()

func (*GetUserResponse) String

func (x *GetUserResponse) String() string

func (*GetUserResponse) Validate

func (m *GetUserResponse) Validate() error

Validate checks the field values on GetUserResponse 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 (*GetUserResponse) ValidateAll

func (m *GetUserResponse) ValidateAll() error

ValidateAll checks the field values on GetUserResponse 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 GetUserResponseMultiError, or nil if none found.

type GetUserResponseMultiError

type GetUserResponseMultiError []error

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

func (GetUserResponseMultiError) AllErrors

func (m GetUserResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserResponseMultiError) Error

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

type GetUserResponseValidationError

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

GetUserResponseValidationError is the validation error returned by GetUserResponse.Validate if the designated constraints aren't met.

func (GetUserResponseValidationError) Cause

Cause function returns cause value.

func (GetUserResponseValidationError) Error

Error satisfies the builtin error interface

func (GetUserResponseValidationError) ErrorName

func (e GetUserResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserResponseValidationError) Field

Field function returns field value.

func (GetUserResponseValidationError) Key

Key function returns key value.

func (GetUserResponseValidationError) Reason

Reason function returns reason value.

type ListCitizensRequest

type ListCitizensRequest struct {
	Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Sort       *database.Sort              `protobuf:"bytes,2,opt,name=sort,proto3,oneof" json:"sort,omitempty"`
	// Search params
	Search                  string  `protobuf:"bytes,3,opt,name=search,proto3" json:"search,omitempty"`
	Wanted                  *bool   `protobuf:"varint,4,opt,name=wanted,proto3,oneof" json:"wanted,omitempty"`
	PhoneNumber             *string `protobuf:"bytes,5,opt,name=phone_number,json=phoneNumber,proto3,oneof" json:"phone_number,omitempty"`
	TrafficInfractionPoints *uint32 `` /* 139-byte string literal not displayed */
	Dateofbirth             *string `protobuf:"bytes,7,opt,name=dateofbirth,proto3,oneof" json:"dateofbirth,omitempty"`
	OpenFines               *uint64 `protobuf:"varint,8,opt,name=open_fines,json=openFines,proto3,oneof" json:"open_fines,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCitizensRequest) Descriptor deprecated

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

Deprecated: Use ListCitizensRequest.ProtoReflect.Descriptor instead.

func (*ListCitizensRequest) GetDateofbirth

func (x *ListCitizensRequest) GetDateofbirth() string

func (*ListCitizensRequest) GetOpenFines

func (x *ListCitizensRequest) GetOpenFines() uint64

func (*ListCitizensRequest) GetPagination

func (x *ListCitizensRequest) GetPagination() *database.PaginationRequest

func (*ListCitizensRequest) GetPhoneNumber

func (x *ListCitizensRequest) GetPhoneNumber() string

func (*ListCitizensRequest) GetSearch

func (x *ListCitizensRequest) GetSearch() string

func (*ListCitizensRequest) GetSort added in v0.9.3

func (x *ListCitizensRequest) GetSort() *database.Sort

func (*ListCitizensRequest) GetTrafficInfractionPoints

func (x *ListCitizensRequest) GetTrafficInfractionPoints() uint32

func (*ListCitizensRequest) GetWanted

func (x *ListCitizensRequest) GetWanted() bool

func (*ListCitizensRequest) ProtoMessage

func (*ListCitizensRequest) ProtoMessage()

func (*ListCitizensRequest) ProtoReflect

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

func (*ListCitizensRequest) Reset

func (x *ListCitizensRequest) Reset()

func (*ListCitizensRequest) String

func (x *ListCitizensRequest) String() string

func (*ListCitizensRequest) Validate

func (m *ListCitizensRequest) Validate() error

Validate checks the field values on ListCitizensRequest 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 (*ListCitizensRequest) ValidateAll

func (m *ListCitizensRequest) ValidateAll() error

ValidateAll checks the field values on ListCitizensRequest 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 ListCitizensRequestMultiError, or nil if none found.

type ListCitizensRequestMultiError

type ListCitizensRequestMultiError []error

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

func (ListCitizensRequestMultiError) AllErrors

func (m ListCitizensRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListCitizensRequestMultiError) Error

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

type ListCitizensRequestValidationError

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

ListCitizensRequestValidationError is the validation error returned by ListCitizensRequest.Validate if the designated constraints aren't met.

func (ListCitizensRequestValidationError) Cause

Cause function returns cause value.

func (ListCitizensRequestValidationError) Error

Error satisfies the builtin error interface

func (ListCitizensRequestValidationError) ErrorName

ErrorName returns error name.

func (ListCitizensRequestValidationError) Field

Field function returns field value.

func (ListCitizensRequestValidationError) Key

Key function returns key value.

func (ListCitizensRequestValidationError) Reason

Reason function returns reason value.

type ListCitizensResponse

type ListCitizensResponse struct {
	Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Users      []*users.User                `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCitizensResponse) Descriptor deprecated

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

Deprecated: Use ListCitizensResponse.ProtoReflect.Descriptor instead.

func (*ListCitizensResponse) GetPagination

func (x *ListCitizensResponse) GetPagination() *database.PaginationResponse

func (*ListCitizensResponse) GetUsers

func (x *ListCitizensResponse) GetUsers() []*users.User

func (*ListCitizensResponse) ProtoMessage

func (*ListCitizensResponse) ProtoMessage()

func (*ListCitizensResponse) ProtoReflect

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

func (*ListCitizensResponse) Reset

func (x *ListCitizensResponse) Reset()

func (*ListCitizensResponse) String

func (x *ListCitizensResponse) String() string

func (*ListCitizensResponse) Validate

func (m *ListCitizensResponse) Validate() error

Validate checks the field values on ListCitizensResponse 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 (*ListCitizensResponse) ValidateAll

func (m *ListCitizensResponse) ValidateAll() error

ValidateAll checks the field values on ListCitizensResponse 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 ListCitizensResponseMultiError, or nil if none found.

type ListCitizensResponseMultiError

type ListCitizensResponseMultiError []error

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

func (ListCitizensResponseMultiError) AllErrors

func (m ListCitizensResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListCitizensResponseMultiError) Error

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

type ListCitizensResponseValidationError

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

ListCitizensResponseValidationError is the validation error returned by ListCitizensResponse.Validate if the designated constraints aren't met.

func (ListCitizensResponseValidationError) Cause

Cause function returns cause value.

func (ListCitizensResponseValidationError) Error

Error satisfies the builtin error interface

func (ListCitizensResponseValidationError) ErrorName

ErrorName returns error name.

func (ListCitizensResponseValidationError) Field

Field function returns field value.

func (ListCitizensResponseValidationError) Key

Key function returns key value.

func (ListCitizensResponseValidationError) Reason

Reason function returns reason value.

type ListUserActivityRequest

type ListUserActivityRequest struct {
	Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Sort       *database.Sort              `protobuf:"bytes,2,opt,name=sort,proto3,oneof" json:"sort,omitempty"`
	UserId     int32                       `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserActivityRequest) Descriptor deprecated

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

Deprecated: Use ListUserActivityRequest.ProtoReflect.Descriptor instead.

func (*ListUserActivityRequest) GetPagination

func (*ListUserActivityRequest) GetSort added in v0.9.3

func (x *ListUserActivityRequest) GetSort() *database.Sort

func (*ListUserActivityRequest) GetUserId

func (x *ListUserActivityRequest) GetUserId() int32

func (*ListUserActivityRequest) ProtoMessage

func (*ListUserActivityRequest) ProtoMessage()

func (*ListUserActivityRequest) ProtoReflect

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

func (*ListUserActivityRequest) Reset

func (x *ListUserActivityRequest) Reset()

func (*ListUserActivityRequest) String

func (x *ListUserActivityRequest) String() string

func (*ListUserActivityRequest) Validate

func (m *ListUserActivityRequest) Validate() error

Validate checks the field values on ListUserActivityRequest 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 (*ListUserActivityRequest) ValidateAll

func (m *ListUserActivityRequest) ValidateAll() error

ValidateAll checks the field values on ListUserActivityRequest 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 ListUserActivityRequestMultiError, or nil if none found.

type ListUserActivityRequestMultiError

type ListUserActivityRequestMultiError []error

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

func (ListUserActivityRequestMultiError) AllErrors

func (m ListUserActivityRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUserActivityRequestMultiError) Error

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

type ListUserActivityRequestValidationError

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

ListUserActivityRequestValidationError is the validation error returned by ListUserActivityRequest.Validate if the designated constraints aren't met.

func (ListUserActivityRequestValidationError) Cause

Cause function returns cause value.

func (ListUserActivityRequestValidationError) Error

Error satisfies the builtin error interface

func (ListUserActivityRequestValidationError) ErrorName

ErrorName returns error name.

func (ListUserActivityRequestValidationError) Field

Field function returns field value.

func (ListUserActivityRequestValidationError) Key

Key function returns key value.

func (ListUserActivityRequestValidationError) Reason

Reason function returns reason value.

type ListUserActivityResponse

type ListUserActivityResponse struct {
	Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Activity   []*users.UserActivity        `protobuf:"bytes,2,rep,name=activity,proto3" json:"activity,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserActivityResponse) Descriptor deprecated

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

Deprecated: Use ListUserActivityResponse.ProtoReflect.Descriptor instead.

func (*ListUserActivityResponse) GetActivity

func (x *ListUserActivityResponse) GetActivity() []*users.UserActivity

func (*ListUserActivityResponse) GetPagination

func (*ListUserActivityResponse) ProtoMessage

func (*ListUserActivityResponse) ProtoMessage()

func (*ListUserActivityResponse) ProtoReflect

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

func (*ListUserActivityResponse) Reset

func (x *ListUserActivityResponse) Reset()

func (*ListUserActivityResponse) String

func (x *ListUserActivityResponse) String() string

func (*ListUserActivityResponse) Validate

func (m *ListUserActivityResponse) Validate() error

Validate checks the field values on ListUserActivityResponse 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 (*ListUserActivityResponse) ValidateAll

func (m *ListUserActivityResponse) ValidateAll() error

ValidateAll checks the field values on ListUserActivityResponse 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 ListUserActivityResponseMultiError, or nil if none found.

type ListUserActivityResponseMultiError

type ListUserActivityResponseMultiError []error

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

func (ListUserActivityResponseMultiError) AllErrors

func (m ListUserActivityResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUserActivityResponseMultiError) Error

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

type ListUserActivityResponseValidationError

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

ListUserActivityResponseValidationError is the validation error returned by ListUserActivityResponse.Validate if the designated constraints aren't met.

func (ListUserActivityResponseValidationError) Cause

Cause function returns cause value.

func (ListUserActivityResponseValidationError) Error

Error satisfies the builtin error interface

func (ListUserActivityResponseValidationError) ErrorName

ErrorName returns error name.

func (ListUserActivityResponseValidationError) Field

Field function returns field value.

func (ListUserActivityResponseValidationError) Key

Key function returns key value.

func (ListUserActivityResponseValidationError) Reason

Reason function returns reason value.

type ManageCitizenAttributesRequest

type ManageCitizenAttributesRequest struct {
	Attributes []*users.CitizenAttribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"`
	// contains filtered or unexported fields
}

func (*ManageCitizenAttributesRequest) Descriptor deprecated

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

Deprecated: Use ManageCitizenAttributesRequest.ProtoReflect.Descriptor instead.

func (*ManageCitizenAttributesRequest) GetAttributes

func (*ManageCitizenAttributesRequest) ProtoMessage

func (*ManageCitizenAttributesRequest) ProtoMessage()

func (*ManageCitizenAttributesRequest) ProtoReflect

func (*ManageCitizenAttributesRequest) Reset

func (x *ManageCitizenAttributesRequest) Reset()

func (*ManageCitizenAttributesRequest) String

func (*ManageCitizenAttributesRequest) Validate

func (m *ManageCitizenAttributesRequest) Validate() error

Validate checks the field values on ManageCitizenAttributesRequest 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 (*ManageCitizenAttributesRequest) ValidateAll

func (m *ManageCitizenAttributesRequest) ValidateAll() error

ValidateAll checks the field values on ManageCitizenAttributesRequest 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 ManageCitizenAttributesRequestMultiError, or nil if none found.

type ManageCitizenAttributesRequestMultiError

type ManageCitizenAttributesRequestMultiError []error

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

func (ManageCitizenAttributesRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ManageCitizenAttributesRequestMultiError) Error

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

type ManageCitizenAttributesRequestValidationError

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

ManageCitizenAttributesRequestValidationError is the validation error returned by ManageCitizenAttributesRequest.Validate if the designated constraints aren't met.

func (ManageCitizenAttributesRequestValidationError) Cause

Cause function returns cause value.

func (ManageCitizenAttributesRequestValidationError) Error

Error satisfies the builtin error interface

func (ManageCitizenAttributesRequestValidationError) ErrorName

ErrorName returns error name.

func (ManageCitizenAttributesRequestValidationError) Field

Field function returns field value.

func (ManageCitizenAttributesRequestValidationError) Key

Key function returns key value.

func (ManageCitizenAttributesRequestValidationError) Reason

Reason function returns reason value.

type ManageCitizenAttributesResponse

type ManageCitizenAttributesResponse struct {
	Attributes []*users.CitizenAttribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"`
	// contains filtered or unexported fields
}

func (*ManageCitizenAttributesResponse) Descriptor deprecated

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

Deprecated: Use ManageCitizenAttributesResponse.ProtoReflect.Descriptor instead.

func (*ManageCitizenAttributesResponse) GetAttributes

func (*ManageCitizenAttributesResponse) ProtoMessage

func (*ManageCitizenAttributesResponse) ProtoMessage()

func (*ManageCitizenAttributesResponse) ProtoReflect

func (*ManageCitizenAttributesResponse) Reset

func (*ManageCitizenAttributesResponse) String

func (*ManageCitizenAttributesResponse) Validate

func (m *ManageCitizenAttributesResponse) Validate() error

Validate checks the field values on ManageCitizenAttributesResponse 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 (*ManageCitizenAttributesResponse) ValidateAll

func (m *ManageCitizenAttributesResponse) ValidateAll() error

ValidateAll checks the field values on ManageCitizenAttributesResponse 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 ManageCitizenAttributesResponseMultiError, or nil if none found.

type ManageCitizenAttributesResponseMultiError

type ManageCitizenAttributesResponseMultiError []error

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

func (ManageCitizenAttributesResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ManageCitizenAttributesResponseMultiError) Error

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

type ManageCitizenAttributesResponseValidationError

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

ManageCitizenAttributesResponseValidationError is the validation error returned by ManageCitizenAttributesResponse.Validate if the designated constraints aren't met.

func (ManageCitizenAttributesResponseValidationError) Cause

Cause function returns cause value.

func (ManageCitizenAttributesResponseValidationError) Error

Error satisfies the builtin error interface

func (ManageCitizenAttributesResponseValidationError) ErrorName

ErrorName returns error name.

func (ManageCitizenAttributesResponseValidationError) Field

Field function returns field value.

func (ManageCitizenAttributesResponseValidationError) Key

Key function returns key value.

func (ManageCitizenAttributesResponseValidationError) Reason

Reason function returns reason value.

type Params

type Params struct {
	fx.In

	DB        *sql.DB
	P         perms.Permissions
	Enricher  *mstlystcdata.UserAwareEnricher
	Aud       audit.IAuditer
	Config    *config.Config
	Storage   storage.IStorage
	AppConfig appconfig.IConfig
}

type Server

type Server struct {
	CitizenStoreServiceServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(p Params) *Server

func (*Server) GetPermsRemap

func (s *Server) GetPermsRemap() map[string]string

func (*Server) GetUser

func (s *Server) GetUser(ctx context.Context, req *GetUserRequest) (*GetUserResponse, error)

func (*Server) ListCitizens

func (s *Server) ListCitizens(ctx context.Context, req *ListCitizensRequest) (*ListCitizensResponse, error)

func (*Server) ListUserActivity

func (s *Server) ListUserActivity(ctx context.Context, req *ListUserActivityRequest) (*ListUserActivityResponse, error)

func (*Server) RegisterServer

func (s *Server) RegisterServer(srv *grpc.Server)

func (*Server) SetProfilePicture

func (s *Server) SetProfilePicture(ctx context.Context, req *SetProfilePictureRequest) (*SetProfilePictureResponse, error)

func (*Server) SetUserProps

func (s *Server) SetUserProps(ctx context.Context, req *SetUserPropsRequest) (*SetUserPropsResponse, error)

type SetProfilePictureRequest

type SetProfilePictureRequest struct {
	Avatar *filestore.File `protobuf:"bytes,1,opt,name=avatar,proto3" json:"avatar,omitempty"`
	// contains filtered or unexported fields
}

func (*SetProfilePictureRequest) Descriptor deprecated

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

Deprecated: Use SetProfilePictureRequest.ProtoReflect.Descriptor instead.

func (*SetProfilePictureRequest) GetAvatar

func (x *SetProfilePictureRequest) GetAvatar() *filestore.File

func (*SetProfilePictureRequest) ProtoMessage

func (*SetProfilePictureRequest) ProtoMessage()

func (*SetProfilePictureRequest) ProtoReflect

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

func (*SetProfilePictureRequest) Reset

func (x *SetProfilePictureRequest) Reset()

func (*SetProfilePictureRequest) String

func (x *SetProfilePictureRequest) String() string

func (*SetProfilePictureRequest) Validate

func (m *SetProfilePictureRequest) Validate() error

Validate checks the field values on SetProfilePictureRequest 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 (*SetProfilePictureRequest) ValidateAll

func (m *SetProfilePictureRequest) ValidateAll() error

ValidateAll checks the field values on SetProfilePictureRequest 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 SetProfilePictureRequestMultiError, or nil if none found.

type SetProfilePictureRequestMultiError

type SetProfilePictureRequestMultiError []error

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

func (SetProfilePictureRequestMultiError) AllErrors

func (m SetProfilePictureRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetProfilePictureRequestMultiError) Error

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

type SetProfilePictureRequestValidationError

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

SetProfilePictureRequestValidationError is the validation error returned by SetProfilePictureRequest.Validate if the designated constraints aren't met.

func (SetProfilePictureRequestValidationError) Cause

Cause function returns cause value.

func (SetProfilePictureRequestValidationError) Error

Error satisfies the builtin error interface

func (SetProfilePictureRequestValidationError) ErrorName

ErrorName returns error name.

func (SetProfilePictureRequestValidationError) Field

Field function returns field value.

func (SetProfilePictureRequestValidationError) Key

Key function returns key value.

func (SetProfilePictureRequestValidationError) Reason

Reason function returns reason value.

type SetProfilePictureResponse

type SetProfilePictureResponse struct {
	Avatar *filestore.File `protobuf:"bytes,1,opt,name=avatar,proto3" json:"avatar,omitempty"`
	// contains filtered or unexported fields
}

func (*SetProfilePictureResponse) Descriptor deprecated

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

Deprecated: Use SetProfilePictureResponse.ProtoReflect.Descriptor instead.

func (*SetProfilePictureResponse) GetAvatar

func (x *SetProfilePictureResponse) GetAvatar() *filestore.File

func (*SetProfilePictureResponse) ProtoMessage

func (*SetProfilePictureResponse) ProtoMessage()

func (*SetProfilePictureResponse) ProtoReflect

func (*SetProfilePictureResponse) Reset

func (x *SetProfilePictureResponse) Reset()

func (*SetProfilePictureResponse) String

func (x *SetProfilePictureResponse) String() string

func (*SetProfilePictureResponse) Validate

func (m *SetProfilePictureResponse) Validate() error

Validate checks the field values on SetProfilePictureResponse 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 (*SetProfilePictureResponse) ValidateAll

func (m *SetProfilePictureResponse) ValidateAll() error

ValidateAll checks the field values on SetProfilePictureResponse 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 SetProfilePictureResponseMultiError, or nil if none found.

type SetProfilePictureResponseMultiError

type SetProfilePictureResponseMultiError []error

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

func (SetProfilePictureResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (SetProfilePictureResponseMultiError) Error

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

type SetProfilePictureResponseValidationError

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

SetProfilePictureResponseValidationError is the validation error returned by SetProfilePictureResponse.Validate if the designated constraints aren't met.

func (SetProfilePictureResponseValidationError) Cause

Cause function returns cause value.

func (SetProfilePictureResponseValidationError) Error

Error satisfies the builtin error interface

func (SetProfilePictureResponseValidationError) ErrorName

ErrorName returns error name.

func (SetProfilePictureResponseValidationError) Field

Field function returns field value.

func (SetProfilePictureResponseValidationError) Key

Key function returns key value.

func (SetProfilePictureResponseValidationError) Reason

Reason function returns reason value.

type SetUserPropsRequest

type SetUserPropsRequest struct {
	Props *users.UserProps `protobuf:"bytes,1,opt,name=props,proto3" json:"props,omitempty"`
	// @sanitize
	Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

func (*SetUserPropsRequest) Descriptor deprecated

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

Deprecated: Use SetUserPropsRequest.ProtoReflect.Descriptor instead.

func (*SetUserPropsRequest) GetProps

func (x *SetUserPropsRequest) GetProps() *users.UserProps

func (*SetUserPropsRequest) GetReason

func (x *SetUserPropsRequest) GetReason() string

func (*SetUserPropsRequest) ProtoMessage

func (*SetUserPropsRequest) ProtoMessage()

func (*SetUserPropsRequest) ProtoReflect

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

func (*SetUserPropsRequest) Reset

func (x *SetUserPropsRequest) Reset()

func (*SetUserPropsRequest) Sanitize

func (m *SetUserPropsRequest) Sanitize() error

func (*SetUserPropsRequest) String

func (x *SetUserPropsRequest) String() string

func (*SetUserPropsRequest) Validate

func (m *SetUserPropsRequest) Validate() error

Validate checks the field values on SetUserPropsRequest 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 (*SetUserPropsRequest) ValidateAll

func (m *SetUserPropsRequest) ValidateAll() error

ValidateAll checks the field values on SetUserPropsRequest 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 SetUserPropsRequestMultiError, or nil if none found.

type SetUserPropsRequestMultiError

type SetUserPropsRequestMultiError []error

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

func (SetUserPropsRequestMultiError) AllErrors

func (m SetUserPropsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetUserPropsRequestMultiError) Error

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

type SetUserPropsRequestValidationError

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

SetUserPropsRequestValidationError is the validation error returned by SetUserPropsRequest.Validate if the designated constraints aren't met.

func (SetUserPropsRequestValidationError) Cause

Cause function returns cause value.

func (SetUserPropsRequestValidationError) Error

Error satisfies the builtin error interface

func (SetUserPropsRequestValidationError) ErrorName

ErrorName returns error name.

func (SetUserPropsRequestValidationError) Field

Field function returns field value.

func (SetUserPropsRequestValidationError) Key

Key function returns key value.

func (SetUserPropsRequestValidationError) Reason

Reason function returns reason value.

type SetUserPropsResponse

type SetUserPropsResponse struct {
	Props *users.UserProps `protobuf:"bytes,1,opt,name=props,proto3" json:"props,omitempty"`
	// contains filtered or unexported fields
}

func (*SetUserPropsResponse) Descriptor deprecated

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

Deprecated: Use SetUserPropsResponse.ProtoReflect.Descriptor instead.

func (*SetUserPropsResponse) GetProps

func (x *SetUserPropsResponse) GetProps() *users.UserProps

func (*SetUserPropsResponse) ProtoMessage

func (*SetUserPropsResponse) ProtoMessage()

func (*SetUserPropsResponse) ProtoReflect

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

func (*SetUserPropsResponse) Reset

func (x *SetUserPropsResponse) Reset()

func (*SetUserPropsResponse) String

func (x *SetUserPropsResponse) String() string

func (*SetUserPropsResponse) Validate

func (m *SetUserPropsResponse) Validate() error

Validate checks the field values on SetUserPropsResponse 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 (*SetUserPropsResponse) ValidateAll

func (m *SetUserPropsResponse) ValidateAll() error

ValidateAll checks the field values on SetUserPropsResponse 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 SetUserPropsResponseMultiError, or nil if none found.

type SetUserPropsResponseMultiError

type SetUserPropsResponseMultiError []error

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

func (SetUserPropsResponseMultiError) AllErrors

func (m SetUserPropsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetUserPropsResponseMultiError) Error

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

type SetUserPropsResponseValidationError

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

SetUserPropsResponseValidationError is the validation error returned by SetUserPropsResponse.Validate if the designated constraints aren't met.

func (SetUserPropsResponseValidationError) Cause

Cause function returns cause value.

func (SetUserPropsResponseValidationError) Error

Error satisfies the builtin error interface

func (SetUserPropsResponseValidationError) ErrorName

ErrorName returns error name.

func (SetUserPropsResponseValidationError) Field

Field function returns field value.

func (SetUserPropsResponseValidationError) Key

Key function returns key value.

func (SetUserPropsResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedCitizenStoreServiceServer

type UnimplementedCitizenStoreServiceServer struct {
}

UnimplementedCitizenStoreServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCitizenStoreServiceServer) GetUser

func (UnimplementedCitizenStoreServiceServer) ListCitizens

func (UnimplementedCitizenStoreServiceServer) ListUserActivity

func (UnimplementedCitizenStoreServiceServer) SetProfilePicture

func (UnimplementedCitizenStoreServiceServer) SetUserProps

type UnsafeCitizenStoreServiceServer

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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