citizenstore

package
v0.8.20 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 49 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"
)

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,
		},
	},
	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"}
	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"}
	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)
}

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"}
	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"}
	SetUserProps(context.Context, *SetUserPropsRequest) (*SetUserPropsResponse, error)
	// @perm: Name=Any
	SetProfilePicture(context.Context, *SetProfilePictureRequest) (*SetProfilePictureResponse, 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"`
	// contains filtered or unexported fields
}

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

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"`
	// Search params
	SearchName              string  `protobuf:"bytes,2,opt,name=search_name,json=searchName,proto3" json:"search_name,omitempty"`
	Wanted                  *bool   `protobuf:"varint,3,opt,name=wanted,proto3,oneof" json:"wanted,omitempty"`
	PhoneNumber             *string `protobuf:"bytes,4,opt,name=phone_number,json=phoneNumber,proto3,oneof" json:"phone_number,omitempty"`
	TrafficInfractionPoints *uint32 `` /* 139-byte string literal not displayed */
	Dateofbirth             *string `protobuf:"bytes,6,opt,name=dateofbirth,proto3,oneof" json:"dateofbirth,omitempty"`
	OpenFines               *uint64 `protobuf:"varint,7,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 added in v0.7.3

func (x *ListCitizensRequest) GetDateofbirth() string

func (*ListCitizensRequest) GetOpenFines added in v0.7.3

func (x *ListCitizensRequest) GetOpenFines() uint64

func (*ListCitizensRequest) GetPagination

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

func (*ListCitizensRequest) GetPhoneNumber

func (x *ListCitizensRequest) GetPhoneNumber() string

func (*ListCitizensRequest) GetSearchName

func (x *ListCitizensRequest) GetSearchName() string

func (*ListCitizensRequest) GetTrafficInfractionPoints added in v0.8.12

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"`
	UserId     int32                       `protobuf:"varint,2,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 added in v0.7.3

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 added in v0.7.3

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 Params added in v0.8.20

type Params struct {
	fx.In

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

type Server

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

func NewServer

func NewServer(p Params) *Server

func (*Server) GetPermsRemap added in v0.8.20

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 added in v0.8.0

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

func (*Server) SetProfilePicture added in v0.8.20

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 added in v0.8.20

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 added in v0.8.20

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

Deprecated: Use SetProfilePictureRequest.ProtoReflect.Descriptor instead.

func (*SetProfilePictureRequest) GetAvatar added in v0.8.20

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

func (*SetProfilePictureRequest) ProtoMessage added in v0.8.20

func (*SetProfilePictureRequest) ProtoMessage()

func (*SetProfilePictureRequest) ProtoReflect added in v0.8.20

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

func (*SetProfilePictureRequest) Reset added in v0.8.20

func (x *SetProfilePictureRequest) Reset()

func (*SetProfilePictureRequest) String added in v0.8.20

func (x *SetProfilePictureRequest) String() string

func (*SetProfilePictureRequest) Validate added in v0.8.20

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 added in v0.8.20

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 added in v0.8.20

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 added in v0.8.20

func (m SetProfilePictureRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetProfilePictureRequestMultiError) Error added in v0.8.20

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

type SetProfilePictureRequestValidationError added in v0.8.20

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 added in v0.8.20

Cause function returns cause value.

func (SetProfilePictureRequestValidationError) Error added in v0.8.20

Error satisfies the builtin error interface

func (SetProfilePictureRequestValidationError) ErrorName added in v0.8.20

ErrorName returns error name.

func (SetProfilePictureRequestValidationError) Field added in v0.8.20

Field function returns field value.

func (SetProfilePictureRequestValidationError) Key added in v0.8.20

Key function returns key value.

func (SetProfilePictureRequestValidationError) Reason added in v0.8.20

Reason function returns reason value.

type SetProfilePictureResponse added in v0.8.20

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 added in v0.8.20

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

Deprecated: Use SetProfilePictureResponse.ProtoReflect.Descriptor instead.

func (*SetProfilePictureResponse) GetAvatar added in v0.8.20

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

func (*SetProfilePictureResponse) ProtoMessage added in v0.8.20

func (*SetProfilePictureResponse) ProtoMessage()

func (*SetProfilePictureResponse) ProtoReflect added in v0.8.20

func (*SetProfilePictureResponse) Reset added in v0.8.20

func (x *SetProfilePictureResponse) Reset()

func (*SetProfilePictureResponse) String added in v0.8.20

func (x *SetProfilePictureResponse) String() string

func (*SetProfilePictureResponse) Validate added in v0.8.20

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 added in v0.8.20

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 added in v0.8.20

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 added in v0.8.20

AllErrors returns a list of validation violation errors.

func (SetProfilePictureResponseMultiError) Error added in v0.8.20

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

type SetProfilePictureResponseValidationError added in v0.8.20

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 added in v0.8.20

Cause function returns cause value.

func (SetProfilePictureResponseValidationError) Error added in v0.8.20

Error satisfies the builtin error interface

func (SetProfilePictureResponseValidationError) ErrorName added in v0.8.20

ErrorName returns error name.

func (SetProfilePictureResponseValidationError) Field added in v0.8.20

Field function returns field value.

func (SetProfilePictureResponseValidationError) Key added in v0.8.20

Key function returns key value.

func (SetProfilePictureResponseValidationError) Reason added in v0.8.20

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 added in v0.8.1

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 added in v0.8.20

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