v2

package
v0.0.0-...-7604373 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_v2_user_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CreateUserRequest

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

func (*CreateUserRequest) Descriptor deprecated

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

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetName

func (x *CreateUserRequest) GetName() string

func (*CreateUserRequest) GetPassword

func (x *CreateUserRequest) GetPassword() string

func (*CreateUserRequest) GetUsername

func (x *CreateUserRequest) GetUsername() string

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

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

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

func (*CreateUserRequest) Validate

func (m *CreateUserRequest) Validate() error

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

func (m *CreateUserRequest) ValidateAll() error

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

type CreateUserRequestMultiError

type CreateUserRequestMultiError []error

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

func (CreateUserRequestMultiError) AllErrors

func (m CreateUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateUserRequestMultiError) Error

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

type CreateUserRequestValidationError

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

CreateUserRequestValidationError is the validation error returned by CreateUserRequest.Validate if the designated constraints aren't met.

func (CreateUserRequestValidationError) Cause

Cause function returns cause value.

func (CreateUserRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateUserRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateUserRequestValidationError) Field

Field function returns field value.

func (CreateUserRequestValidationError) Key

Key function returns key value.

func (CreateUserRequestValidationError) Reason

Reason function returns reason value.

type GetUserResponse

type GetUserResponse struct {
	Id       int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Name     string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserResponse) Descriptor deprecated

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

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) GetId

func (x *GetUserResponse) GetId() int64

func (*GetUserResponse) GetName

func (x *GetUserResponse) GetName() string

func (*GetUserResponse) GetUsername

func (x *GetUserResponse) GetUsername() string

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 GetUsersResponse

type GetUsersResponse struct {
	Total int64       `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Items []*UserItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUsersResponse) Descriptor deprecated

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

Deprecated: Use GetUsersResponse.ProtoReflect.Descriptor instead.

func (*GetUsersResponse) GetItems

func (x *GetUsersResponse) GetItems() []*UserItem

func (*GetUsersResponse) GetTotal

func (x *GetUsersResponse) GetTotal() int64

func (*GetUsersResponse) ProtoMessage

func (*GetUsersResponse) ProtoMessage()

func (*GetUsersResponse) ProtoReflect

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

func (*GetUsersResponse) Reset

func (x *GetUsersResponse) Reset()

func (*GetUsersResponse) String

func (x *GetUsersResponse) String() string

func (*GetUsersResponse) Validate

func (m *GetUsersResponse) Validate() error

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

func (m *GetUsersResponse) ValidateAll() error

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

type GetUsersResponseMultiError

type GetUsersResponseMultiError []error

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

func (GetUsersResponseMultiError) AllErrors

func (m GetUsersResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUsersResponseMultiError) Error

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

type GetUsersResponseValidationError

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

GetUsersResponseValidationError is the validation error returned by GetUsersResponse.Validate if the designated constraints aren't met.

func (GetUsersResponseValidationError) Cause

Cause function returns cause value.

func (GetUsersResponseValidationError) Error

Error satisfies the builtin error interface

func (GetUsersResponseValidationError) ErrorName

ErrorName returns error name.

func (GetUsersResponseValidationError) Field

Field function returns field value.

func (GetUsersResponseValidationError) Key

Key function returns key value.

func (GetUsersResponseValidationError) Reason

Reason function returns reason value.

type UserItem

type UserItem struct {
	Id       int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Name     string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*UserItem) Descriptor deprecated

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

Deprecated: Use UserItem.ProtoReflect.Descriptor instead.

func (*UserItem) GetId

func (x *UserItem) GetId() int64

func (*UserItem) GetName

func (x *UserItem) GetName() string

func (*UserItem) GetUsername

func (x *UserItem) GetUsername() string

func (*UserItem) ProtoMessage

func (*UserItem) ProtoMessage()

func (*UserItem) ProtoReflect

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

func (*UserItem) Reset

func (x *UserItem) Reset()

func (*UserItem) String

func (x *UserItem) String() string

func (*UserItem) Validate

func (m *UserItem) Validate() error

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

func (m *UserItem) ValidateAll() error

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

type UserItemMultiError

type UserItemMultiError []error

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

func (UserItemMultiError) AllErrors

func (m UserItemMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserItemMultiError) Error

func (m UserItemMultiError) Error() string

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

type UserItemValidationError

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

UserItemValidationError is the validation error returned by UserItem.Validate if the designated constraints aren't met.

func (UserItemValidationError) Cause

func (e UserItemValidationError) Cause() error

Cause function returns cause value.

func (UserItemValidationError) Error

func (e UserItemValidationError) Error() string

Error satisfies the builtin error interface

func (UserItemValidationError) ErrorName

func (e UserItemValidationError) ErrorName() string

ErrorName returns error name.

func (UserItemValidationError) Field

func (e UserItemValidationError) Field() string

Field function returns field value.

func (UserItemValidationError) Key

func (e UserItemValidationError) Key() bool

Key function returns key value.

func (UserItemValidationError) Reason

func (e UserItemValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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