citizenstore

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CitizenStoreServicePerm perms.Category = "CitizenStoreService"

	CitizenStoreServiceGetUserPerm                     perms.Name = "GetUser"
	CitizenStoreServiceGetUserJobsPermField            perms.Key  = "Jobs"
	CitizenStoreServiceListCitizensPerm                perms.Name = "ListCitizens"
	CitizenStoreServiceListCitizensFieldsPermField     perms.Key  = "Fields"
	CitizenStoreServiceListUserActivityPerm            perms.Name = "ListUserActivity"
	CitizenStoreServiceListUserActivityFieldsPermField perms.Key  = "Fields"
	CitizenStoreServiceSetUserPropsPerm                perms.Name = "SetUserProps"
	CitizenStoreServiceSetUserPropsFieldsPermField     perms.Key  = "Fields"
)

Variables

View Source
var (
	FailedQueryErr          = status.Error(codes.Internal, "Failed to list/get citizen(s) data!")
	JobGradeNoPermissionErr = status.Error(codes.NotFound, "No permission to access this citizen (based on the citizen's job)")
)
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,
		},
	},
	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

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"}
	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"}
	ListUserActivity(ctx context.Context, in *ListUserActivityRequest, opts ...grpc.CallOption) (*ListUserActivityResponse, error)
	// @perm: Attrs=Fields/StringList:[]string{"Wanted", "Job"}
	SetUserProps(ctx context.Context, in *SetUserPropsRequest, opts ...grpc.CallOption) (*SetUserPropsResponse, 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"}
	ListCitizens(context.Context, *ListCitizensRequest) (*ListCitizensResponse, error)
	// @perm: Attrs=Jobs/JobGradeList
	GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
	// @perm: Attrs=Fields/StringList:[]string{"SourceUser"}
	ListUserActivity(context.Context, *ListUserActivityRequest) (*ListUserActivityResponse, error)
	// @perm: Attrs=Fields/StringList:[]string{"Wanted", "Job"}
	SetUserProps(context.Context, *SetUserPropsRequest) (*SetUserPropsResponse, 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" json:"wanted,omitempty"`
	PhoneNumber string `protobuf:"bytes,4,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCitizensRequest) Descriptor deprecated

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

Deprecated: Use ListCitizensRequest.ProtoReflect.Descriptor instead.

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) 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 {
	UserId int32 `protobuf:"varint,1,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) 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 {
	Activity []*users.UserActivity `protobuf:"bytes,1,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) 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 Server

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

func NewServer

func NewServer(db *sql.DB, p perms.Permissions, c *mstlystcdata.Enricher, aud audit.IAuditer) *Server

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) SetUserProps

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

type SetUserPropsRequest

type SetUserPropsRequest struct {
	Props  *users.UserProps `protobuf:"bytes,1,opt,name=props,proto3" json:"props,omitempty"`
	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) 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) 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.

Jump to

Keyboard shortcuts

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