v1

package
v0.0.0-...-2e4a3c2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 30 Imported by: 0

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	UserService_ListUsers_FullMethodName  = "/user.v1.UserService/ListUsers"
	UserService_CreateUser_FullMethodName = "/user.v1.UserService/CreateUser"
	UserService_GetUser_FullMethodName    = "/user.v1.UserService/GetUser"
	UserService_UpdateUser_FullMethodName = "/user.v1.UserService/UpdateUser"
	UserService_DeleteUser_FullMethodName = "/user.v1.UserService/DeleteUser"
)

Variables

View Source
var File_user_v1_user_proto protoreflect.FileDescriptor
View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "user.v1.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListUsers",
			Handler:    _UserService_ListUsers_Handler,
		},
		{
			MethodName: "CreateUser",
			Handler:    _UserService_CreateUser_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _UserService_GetUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _UserService_UpdateUser_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _UserService_DeleteUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "user/v1/user.proto",
}

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

Functions

func RegisterUserServiceHandler

func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterUserServiceHandler registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterUserServiceHandlerClient

func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error

RegisterUserServiceHandlerClient registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserServiceClient" to call the correct interceptors.

func RegisterUserServiceHandlerFromEndpoint

func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterUserServiceHandlerFromEndpoint is same as RegisterUserServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterUserServiceHandlerServer

func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error

RegisterUserServiceHandlerServer registers the http handlers for service UserService to "mux". UnaryRPC :call UserServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserServiceHandlerFromEndpoint instead.

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type CreateUserCall

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

func (*CreateUserCall) Descriptor deprecated

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

Deprecated: Use CreateUserCall.ProtoReflect.Descriptor instead.

func (*CreateUserCall) ProtoMessage

func (*CreateUserCall) ProtoMessage()

func (*CreateUserCall) ProtoReflect

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

func (*CreateUserCall) Reset

func (x *CreateUserCall) Reset()

func (*CreateUserCall) String

func (x *CreateUserCall) String() string

func (*CreateUserCall) Validate

func (m *CreateUserCall) Validate() error

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

func (m *CreateUserCall) ValidateAll() error

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

type CreateUserCallMultiError

type CreateUserCallMultiError []error

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

func (CreateUserCallMultiError) AllErrors

func (m CreateUserCallMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateUserCallMultiError) Error

func (m CreateUserCallMultiError) Error() string

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

type CreateUserCallValidationError

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

CreateUserCallValidationError is the validation error returned by CreateUserCall.Validate if the designated constraints aren't met.

func (CreateUserCallValidationError) Cause

Cause function returns cause value.

func (CreateUserCallValidationError) Error

Error satisfies the builtin error interface

func (CreateUserCallValidationError) ErrorName

func (e CreateUserCallValidationError) ErrorName() string

ErrorName returns error name.

func (CreateUserCallValidationError) Field

Field function returns field value.

func (CreateUserCallValidationError) Key

Key function returns key value.

func (CreateUserCallValidationError) Reason

Reason function returns reason value.

type CreateUserCall_Request

type CreateUserCall_Request struct {
	Email     string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	FirstName string `protobuf:"bytes,2,opt,name=first_name,proto3" json:"first_name,omitempty"`
	LastName  string `protobuf:"bytes,3,opt,name=last_name,proto3" json:"last_name,omitempty"`
	Password  string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserCall_Request) Descriptor deprecated

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

Deprecated: Use CreateUserCall_Request.ProtoReflect.Descriptor instead.

func (*CreateUserCall_Request) GetEmail

func (x *CreateUserCall_Request) GetEmail() string

func (*CreateUserCall_Request) GetFirstName

func (x *CreateUserCall_Request) GetFirstName() string

func (*CreateUserCall_Request) GetLastName

func (x *CreateUserCall_Request) GetLastName() string

func (*CreateUserCall_Request) GetPassword

func (x *CreateUserCall_Request) GetPassword() string

func (*CreateUserCall_Request) ProtoMessage

func (*CreateUserCall_Request) ProtoMessage()

func (*CreateUserCall_Request) ProtoReflect

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

func (*CreateUserCall_Request) Reset

func (x *CreateUserCall_Request) Reset()

func (*CreateUserCall_Request) String

func (x *CreateUserCall_Request) String() string

func (*CreateUserCall_Request) Validate

func (m *CreateUserCall_Request) Validate() error

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

func (m *CreateUserCall_Request) ValidateAll() error

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

type CreateUserCall_RequestMultiError

type CreateUserCall_RequestMultiError []error

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

func (CreateUserCall_RequestMultiError) AllErrors

func (m CreateUserCall_RequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateUserCall_RequestMultiError) Error

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

type CreateUserCall_RequestValidationError

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

CreateUserCall_RequestValidationError is the validation error returned by CreateUserCall_Request.Validate if the designated constraints aren't met.

func (CreateUserCall_RequestValidationError) Cause

Cause function returns cause value.

func (CreateUserCall_RequestValidationError) Error

Error satisfies the builtin error interface

func (CreateUserCall_RequestValidationError) ErrorName

ErrorName returns error name.

func (CreateUserCall_RequestValidationError) Field

Field function returns field value.

func (CreateUserCall_RequestValidationError) Key

Key function returns key value.

func (CreateUserCall_RequestValidationError) Reason

Reason function returns reason value.

type CreateUserCall_Response

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

func (*CreateUserCall_Response) Descriptor deprecated

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

Deprecated: Use CreateUserCall_Response.ProtoReflect.Descriptor instead.

func (*CreateUserCall_Response) GetUser

func (x *CreateUserCall_Response) GetUser() *User

func (*CreateUserCall_Response) ProtoMessage

func (*CreateUserCall_Response) ProtoMessage()

func (*CreateUserCall_Response) ProtoReflect

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

func (*CreateUserCall_Response) Reset

func (x *CreateUserCall_Response) Reset()

func (*CreateUserCall_Response) String

func (x *CreateUserCall_Response) String() string

func (*CreateUserCall_Response) Validate

func (m *CreateUserCall_Response) Validate() error

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

func (m *CreateUserCall_Response) ValidateAll() error

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

type CreateUserCall_ResponseMultiError

type CreateUserCall_ResponseMultiError []error

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

func (CreateUserCall_ResponseMultiError) AllErrors

func (m CreateUserCall_ResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateUserCall_ResponseMultiError) Error

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

type CreateUserCall_ResponseValidationError

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

CreateUserCall_ResponseValidationError is the validation error returned by CreateUserCall_Response.Validate if the designated constraints aren't met.

func (CreateUserCall_ResponseValidationError) Cause

Cause function returns cause value.

func (CreateUserCall_ResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateUserCall_ResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateUserCall_ResponseValidationError) Field

Field function returns field value.

func (CreateUserCall_ResponseValidationError) Key

Key function returns key value.

func (CreateUserCall_ResponseValidationError) Reason

Reason function returns reason value.

type DeleteUserCall

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

func (*DeleteUserCall) Descriptor deprecated

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

Deprecated: Use DeleteUserCall.ProtoReflect.Descriptor instead.

func (*DeleteUserCall) ProtoMessage

func (*DeleteUserCall) ProtoMessage()

func (*DeleteUserCall) ProtoReflect

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

func (*DeleteUserCall) Reset

func (x *DeleteUserCall) Reset()

func (*DeleteUserCall) String

func (x *DeleteUserCall) String() string

func (*DeleteUserCall) Validate

func (m *DeleteUserCall) Validate() error

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

func (m *DeleteUserCall) ValidateAll() error

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

type DeleteUserCallMultiError

type DeleteUserCallMultiError []error

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

func (DeleteUserCallMultiError) AllErrors

func (m DeleteUserCallMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteUserCallMultiError) Error

func (m DeleteUserCallMultiError) Error() string

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

type DeleteUserCallValidationError

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

DeleteUserCallValidationError is the validation error returned by DeleteUserCall.Validate if the designated constraints aren't met.

func (DeleteUserCallValidationError) Cause

Cause function returns cause value.

func (DeleteUserCallValidationError) Error

Error satisfies the builtin error interface

func (DeleteUserCallValidationError) ErrorName

func (e DeleteUserCallValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteUserCallValidationError) Field

Field function returns field value.

func (DeleteUserCallValidationError) Key

Key function returns key value.

func (DeleteUserCallValidationError) Reason

Reason function returns reason value.

type DeleteUserCall_Request

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

func (*DeleteUserCall_Request) Descriptor deprecated

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

Deprecated: Use DeleteUserCall_Request.ProtoReflect.Descriptor instead.

func (*DeleteUserCall_Request) GetId

func (x *DeleteUserCall_Request) GetId() string

func (*DeleteUserCall_Request) ProtoMessage

func (*DeleteUserCall_Request) ProtoMessage()

func (*DeleteUserCall_Request) ProtoReflect

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

func (*DeleteUserCall_Request) Reset

func (x *DeleteUserCall_Request) Reset()

func (*DeleteUserCall_Request) String

func (x *DeleteUserCall_Request) String() string

func (*DeleteUserCall_Request) Validate

func (m *DeleteUserCall_Request) Validate() error

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

func (m *DeleteUserCall_Request) ValidateAll() error

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

type DeleteUserCall_RequestMultiError

type DeleteUserCall_RequestMultiError []error

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

func (DeleteUserCall_RequestMultiError) AllErrors

func (m DeleteUserCall_RequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteUserCall_RequestMultiError) Error

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

type DeleteUserCall_RequestValidationError

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

DeleteUserCall_RequestValidationError is the validation error returned by DeleteUserCall_Request.Validate if the designated constraints aren't met.

func (DeleteUserCall_RequestValidationError) Cause

Cause function returns cause value.

func (DeleteUserCall_RequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteUserCall_RequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteUserCall_RequestValidationError) Field

Field function returns field value.

func (DeleteUserCall_RequestValidationError) Key

Key function returns key value.

func (DeleteUserCall_RequestValidationError) Reason

Reason function returns reason value.

type DeleteUserCall_Response

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

func (*DeleteUserCall_Response) Descriptor deprecated

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

Deprecated: Use DeleteUserCall_Response.ProtoReflect.Descriptor instead.

func (*DeleteUserCall_Response) ProtoMessage

func (*DeleteUserCall_Response) ProtoMessage()

func (*DeleteUserCall_Response) ProtoReflect

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

func (*DeleteUserCall_Response) Reset

func (x *DeleteUserCall_Response) Reset()

func (*DeleteUserCall_Response) String

func (x *DeleteUserCall_Response) String() string

func (*DeleteUserCall_Response) Validate

func (m *DeleteUserCall_Response) Validate() error

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

func (m *DeleteUserCall_Response) ValidateAll() error

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

type DeleteUserCall_ResponseMultiError

type DeleteUserCall_ResponseMultiError []error

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

func (DeleteUserCall_ResponseMultiError) AllErrors

func (m DeleteUserCall_ResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteUserCall_ResponseMultiError) Error

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

type DeleteUserCall_ResponseValidationError

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

DeleteUserCall_ResponseValidationError is the validation error returned by DeleteUserCall_Response.Validate if the designated constraints aren't met.

func (DeleteUserCall_ResponseValidationError) Cause

Cause function returns cause value.

func (DeleteUserCall_ResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteUserCall_ResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteUserCall_ResponseValidationError) Field

Field function returns field value.

func (DeleteUserCall_ResponseValidationError) Key

Key function returns key value.

func (DeleteUserCall_ResponseValidationError) Reason

Reason function returns reason value.

type GetUserCall

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

func (*GetUserCall) Descriptor deprecated

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

Deprecated: Use GetUserCall.ProtoReflect.Descriptor instead.

func (*GetUserCall) ProtoMessage

func (*GetUserCall) ProtoMessage()

func (*GetUserCall) ProtoReflect

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

func (*GetUserCall) Reset

func (x *GetUserCall) Reset()

func (*GetUserCall) String

func (x *GetUserCall) String() string

func (*GetUserCall) Validate

func (m *GetUserCall) Validate() error

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

func (m *GetUserCall) ValidateAll() error

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

type GetUserCallMultiError

type GetUserCallMultiError []error

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

func (GetUserCallMultiError) AllErrors

func (m GetUserCallMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserCallMultiError) Error

func (m GetUserCallMultiError) Error() string

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

type GetUserCallValidationError

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

GetUserCallValidationError is the validation error returned by GetUserCall.Validate if the designated constraints aren't met.

func (GetUserCallValidationError) Cause

Cause function returns cause value.

func (GetUserCallValidationError) Error

Error satisfies the builtin error interface

func (GetUserCallValidationError) ErrorName

func (e GetUserCallValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserCallValidationError) Field

Field function returns field value.

func (GetUserCallValidationError) Key

Key function returns key value.

func (GetUserCallValidationError) Reason

Reason function returns reason value.

type GetUserCall_Request

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

func (*GetUserCall_Request) Descriptor deprecated

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

Deprecated: Use GetUserCall_Request.ProtoReflect.Descriptor instead.

func (*GetUserCall_Request) GetId

func (x *GetUserCall_Request) GetId() string

func (*GetUserCall_Request) ProtoMessage

func (*GetUserCall_Request) ProtoMessage()

func (*GetUserCall_Request) ProtoReflect

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

func (*GetUserCall_Request) Reset

func (x *GetUserCall_Request) Reset()

func (*GetUserCall_Request) String

func (x *GetUserCall_Request) String() string

func (*GetUserCall_Request) Validate

func (m *GetUserCall_Request) Validate() error

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

func (m *GetUserCall_Request) ValidateAll() error

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

type GetUserCall_RequestMultiError

type GetUserCall_RequestMultiError []error

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

func (GetUserCall_RequestMultiError) AllErrors

func (m GetUserCall_RequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserCall_RequestMultiError) Error

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

type GetUserCall_RequestValidationError

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

GetUserCall_RequestValidationError is the validation error returned by GetUserCall_Request.Validate if the designated constraints aren't met.

func (GetUserCall_RequestValidationError) Cause

Cause function returns cause value.

func (GetUserCall_RequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserCall_RequestValidationError) ErrorName

ErrorName returns error name.

func (GetUserCall_RequestValidationError) Field

Field function returns field value.

func (GetUserCall_RequestValidationError) Key

Key function returns key value.

func (GetUserCall_RequestValidationError) Reason

Reason function returns reason value.

type GetUserCall_Response

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

func (*GetUserCall_Response) Descriptor deprecated

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

Deprecated: Use GetUserCall_Response.ProtoReflect.Descriptor instead.

func (*GetUserCall_Response) GetUser

func (x *GetUserCall_Response) GetUser() *User

func (*GetUserCall_Response) ProtoMessage

func (*GetUserCall_Response) ProtoMessage()

func (*GetUserCall_Response) ProtoReflect

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

func (*GetUserCall_Response) Reset

func (x *GetUserCall_Response) Reset()

func (*GetUserCall_Response) String

func (x *GetUserCall_Response) String() string

func (*GetUserCall_Response) Validate

func (m *GetUserCall_Response) Validate() error

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

func (m *GetUserCall_Response) ValidateAll() error

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

type GetUserCall_ResponseMultiError

type GetUserCall_ResponseMultiError []error

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

func (GetUserCall_ResponseMultiError) AllErrors

func (m GetUserCall_ResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserCall_ResponseMultiError) Error

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

type GetUserCall_ResponseValidationError

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

GetUserCall_ResponseValidationError is the validation error returned by GetUserCall_Response.Validate if the designated constraints aren't met.

func (GetUserCall_ResponseValidationError) Cause

Cause function returns cause value.

func (GetUserCall_ResponseValidationError) Error

Error satisfies the builtin error interface

func (GetUserCall_ResponseValidationError) ErrorName

ErrorName returns error name.

func (GetUserCall_ResponseValidationError) Field

Field function returns field value.

func (GetUserCall_ResponseValidationError) Key

Key function returns key value.

func (GetUserCall_ResponseValidationError) Reason

Reason function returns reason value.

type ListUsersCall

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

func (*ListUsersCall) Descriptor deprecated

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

Deprecated: Use ListUsersCall.ProtoReflect.Descriptor instead.

func (*ListUsersCall) ProtoMessage

func (*ListUsersCall) ProtoMessage()

func (*ListUsersCall) ProtoReflect

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

func (*ListUsersCall) Reset

func (x *ListUsersCall) Reset()

func (*ListUsersCall) String

func (x *ListUsersCall) String() string

func (*ListUsersCall) Validate

func (m *ListUsersCall) Validate() error

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

func (m *ListUsersCall) ValidateAll() error

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

type ListUsersCallMultiError

type ListUsersCallMultiError []error

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

func (ListUsersCallMultiError) AllErrors

func (m ListUsersCallMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUsersCallMultiError) Error

func (m ListUsersCallMultiError) Error() string

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

type ListUsersCallValidationError

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

ListUsersCallValidationError is the validation error returned by ListUsersCall.Validate if the designated constraints aren't met.

func (ListUsersCallValidationError) Cause

Cause function returns cause value.

func (ListUsersCallValidationError) Error

Error satisfies the builtin error interface

func (ListUsersCallValidationError) ErrorName

func (e ListUsersCallValidationError) ErrorName() string

ErrorName returns error name.

func (ListUsersCallValidationError) Field

Field function returns field value.

func (ListUsersCallValidationError) Key

Key function returns key value.

func (ListUsersCallValidationError) Reason

Reason function returns reason value.

type ListUsersCall_Request

type ListUsersCall_Request struct {
	Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsersCall_Request) Descriptor deprecated

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

Deprecated: Use ListUsersCall_Request.ProtoReflect.Descriptor instead.

func (*ListUsersCall_Request) GetIds

func (x *ListUsersCall_Request) GetIds() []string

func (*ListUsersCall_Request) ProtoMessage

func (*ListUsersCall_Request) ProtoMessage()

func (*ListUsersCall_Request) ProtoReflect

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

func (*ListUsersCall_Request) Reset

func (x *ListUsersCall_Request) Reset()

func (*ListUsersCall_Request) String

func (x *ListUsersCall_Request) String() string

func (*ListUsersCall_Request) Validate

func (m *ListUsersCall_Request) Validate() error

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

func (m *ListUsersCall_Request) ValidateAll() error

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

type ListUsersCall_RequestMultiError

type ListUsersCall_RequestMultiError []error

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

func (ListUsersCall_RequestMultiError) AllErrors

func (m ListUsersCall_RequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUsersCall_RequestMultiError) Error

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

type ListUsersCall_RequestValidationError

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

ListUsersCall_RequestValidationError is the validation error returned by ListUsersCall_Request.Validate if the designated constraints aren't met.

func (ListUsersCall_RequestValidationError) Cause

Cause function returns cause value.

func (ListUsersCall_RequestValidationError) Error

Error satisfies the builtin error interface

func (ListUsersCall_RequestValidationError) ErrorName

ErrorName returns error name.

func (ListUsersCall_RequestValidationError) Field

Field function returns field value.

func (ListUsersCall_RequestValidationError) Key

Key function returns key value.

func (ListUsersCall_RequestValidationError) Reason

Reason function returns reason value.

type ListUsersCall_Response

type ListUsersCall_Response struct {
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsersCall_Response) Descriptor deprecated

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

Deprecated: Use ListUsersCall_Response.ProtoReflect.Descriptor instead.

func (*ListUsersCall_Response) GetUsers

func (x *ListUsersCall_Response) GetUsers() []*User

func (*ListUsersCall_Response) ProtoMessage

func (*ListUsersCall_Response) ProtoMessage()

func (*ListUsersCall_Response) ProtoReflect

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

func (*ListUsersCall_Response) Reset

func (x *ListUsersCall_Response) Reset()

func (*ListUsersCall_Response) String

func (x *ListUsersCall_Response) String() string

func (*ListUsersCall_Response) Validate

func (m *ListUsersCall_Response) Validate() error

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

func (m *ListUsersCall_Response) ValidateAll() error

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

type ListUsersCall_ResponseMultiError

type ListUsersCall_ResponseMultiError []error

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

func (ListUsersCall_ResponseMultiError) AllErrors

func (m ListUsersCall_ResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUsersCall_ResponseMultiError) Error

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

type ListUsersCall_ResponseValidationError

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

ListUsersCall_ResponseValidationError is the validation error returned by ListUsersCall_Response.Validate if the designated constraints aren't met.

func (ListUsersCall_ResponseValidationError) Cause

Cause function returns cause value.

func (ListUsersCall_ResponseValidationError) Error

Error satisfies the builtin error interface

func (ListUsersCall_ResponseValidationError) ErrorName

ErrorName returns error name.

func (ListUsersCall_ResponseValidationError) Field

Field function returns field value.

func (ListUsersCall_ResponseValidationError) Key

Key function returns key value.

func (ListUsersCall_ResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) CreateUser

func (UnimplementedUserServiceServer) DeleteUser

func (UnimplementedUserServiceServer) GetUser

func (UnimplementedUserServiceServer) ListUsers

func (UnimplementedUserServiceServer) UpdateUser

type UnsafeUserServiceServer

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

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

type UpdateUserCall

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

func (*UpdateUserCall) Descriptor deprecated

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

Deprecated: Use UpdateUserCall.ProtoReflect.Descriptor instead.

func (*UpdateUserCall) ProtoMessage

func (*UpdateUserCall) ProtoMessage()

func (*UpdateUserCall) ProtoReflect

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

func (*UpdateUserCall) Reset

func (x *UpdateUserCall) Reset()

func (*UpdateUserCall) String

func (x *UpdateUserCall) String() string

func (*UpdateUserCall) Validate

func (m *UpdateUserCall) Validate() error

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

func (m *UpdateUserCall) ValidateAll() error

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

type UpdateUserCallMultiError

type UpdateUserCallMultiError []error

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

func (UpdateUserCallMultiError) AllErrors

func (m UpdateUserCallMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUserCallMultiError) Error

func (m UpdateUserCallMultiError) Error() string

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

type UpdateUserCallValidationError

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

UpdateUserCallValidationError is the validation error returned by UpdateUserCall.Validate if the designated constraints aren't met.

func (UpdateUserCallValidationError) Cause

Cause function returns cause value.

func (UpdateUserCallValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserCallValidationError) ErrorName

func (e UpdateUserCallValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateUserCallValidationError) Field

Field function returns field value.

func (UpdateUserCallValidationError) Key

Key function returns key value.

func (UpdateUserCallValidationError) Reason

Reason function returns reason value.

type UpdateUserCall_Request

type UpdateUserCall_Request struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Email     string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	FirstName string `protobuf:"bytes,3,opt,name=first_name,proto3" json:"first_name,omitempty"`
	LastName  string `protobuf:"bytes,4,opt,name=last_name,proto3" json:"last_name,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserCall_Request) Descriptor deprecated

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

Deprecated: Use UpdateUserCall_Request.ProtoReflect.Descriptor instead.

func (*UpdateUserCall_Request) GetEmail

func (x *UpdateUserCall_Request) GetEmail() string

func (*UpdateUserCall_Request) GetFirstName

func (x *UpdateUserCall_Request) GetFirstName() string

func (*UpdateUserCall_Request) GetId

func (x *UpdateUserCall_Request) GetId() string

func (*UpdateUserCall_Request) GetLastName

func (x *UpdateUserCall_Request) GetLastName() string

func (*UpdateUserCall_Request) ProtoMessage

func (*UpdateUserCall_Request) ProtoMessage()

func (*UpdateUserCall_Request) ProtoReflect

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

func (*UpdateUserCall_Request) Reset

func (x *UpdateUserCall_Request) Reset()

func (*UpdateUserCall_Request) String

func (x *UpdateUserCall_Request) String() string

func (*UpdateUserCall_Request) Validate

func (m *UpdateUserCall_Request) Validate() error

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

func (m *UpdateUserCall_Request) ValidateAll() error

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

type UpdateUserCall_RequestMultiError

type UpdateUserCall_RequestMultiError []error

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

func (UpdateUserCall_RequestMultiError) AllErrors

func (m UpdateUserCall_RequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUserCall_RequestMultiError) Error

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

type UpdateUserCall_RequestValidationError

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

UpdateUserCall_RequestValidationError is the validation error returned by UpdateUserCall_Request.Validate if the designated constraints aren't met.

func (UpdateUserCall_RequestValidationError) Cause

Cause function returns cause value.

func (UpdateUserCall_RequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserCall_RequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserCall_RequestValidationError) Field

Field function returns field value.

func (UpdateUserCall_RequestValidationError) Key

Key function returns key value.

func (UpdateUserCall_RequestValidationError) Reason

Reason function returns reason value.

type UpdateUserCall_Response

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

func (*UpdateUserCall_Response) Descriptor deprecated

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

Deprecated: Use UpdateUserCall_Response.ProtoReflect.Descriptor instead.

func (*UpdateUserCall_Response) GetUser

func (x *UpdateUserCall_Response) GetUser() *User

func (*UpdateUserCall_Response) ProtoMessage

func (*UpdateUserCall_Response) ProtoMessage()

func (*UpdateUserCall_Response) ProtoReflect

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

func (*UpdateUserCall_Response) Reset

func (x *UpdateUserCall_Response) Reset()

func (*UpdateUserCall_Response) String

func (x *UpdateUserCall_Response) String() string

func (*UpdateUserCall_Response) Validate

func (m *UpdateUserCall_Response) Validate() error

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

func (m *UpdateUserCall_Response) ValidateAll() error

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

type UpdateUserCall_ResponseMultiError

type UpdateUserCall_ResponseMultiError []error

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

func (UpdateUserCall_ResponseMultiError) AllErrors

func (m UpdateUserCall_ResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUserCall_ResponseMultiError) Error

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

type UpdateUserCall_ResponseValidationError

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

UpdateUserCall_ResponseValidationError is the validation error returned by UpdateUserCall_Response.Validate if the designated constraints aren't met.

func (UpdateUserCall_ResponseValidationError) Cause

Cause function returns cause value.

func (UpdateUserCall_ResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserCall_ResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserCall_ResponseValidationError) Field

Field function returns field value.

func (UpdateUserCall_ResponseValidationError) Key

Key function returns key value.

func (UpdateUserCall_ResponseValidationError) Reason

Reason function returns reason value.

type User

type User struct {
	Id        string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Email     string                 `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	FirstName string                 `protobuf:"bytes,3,opt,name=first_name,proto3" json:"first_name,omitempty"`
	LastName  string                 `protobuf:"bytes,4,opt,name=last_name,proto3" json:"last_name,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() *timestamppb.Timestamp

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetFirstName

func (x *User) GetFirstName() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetLastName

func (x *User) GetLastName() string

func (*User) GetUpdatedAt

func (x *User) GetUpdatedAt() *timestamppb.Timestamp

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) Validate

func (m *User) Validate() error

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

func (m *User) ValidateAll() error

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

type UserMultiError

type UserMultiError []error

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

func (UserMultiError) AllErrors

func (m UserMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserMultiError) Error

func (m UserMultiError) Error() string

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

type UserServiceClient

UserServiceClient is the client API for UserService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type UserServiceServer

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

type UserValidationError

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

UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.

func (UserValidationError) Cause

func (e UserValidationError) Cause() error

Cause function returns cause value.

func (UserValidationError) Error

func (e UserValidationError) Error() string

Error satisfies the builtin error interface

func (UserValidationError) ErrorName

func (e UserValidationError) ErrorName() string

ErrorName returns error name.

func (UserValidationError) Field

func (e UserValidationError) Field() string

Field function returns field value.

func (UserValidationError) Key

func (e UserValidationError) Key() bool

Key function returns key value.

func (UserValidationError) Reason

func (e UserValidationError) 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