auth

package
v0.0.0-...-9615664 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: GPL-3.0 Imports: 30 Imported by: 0

Documentation

Overview

Package auth is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package auth is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package auth is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	Account_UserGet_FullMethodName          = "/apis.proto.v1alpha1.auth.Account/UserGet"
	Account_UserCreate_FullMethodName       = "/apis.proto.v1alpha1.auth.Account/UserCreate"
	Account_UserUpdate_FullMethodName       = "/apis.proto.v1alpha1.auth.Account/UserUpdate"
	Account_UserEditPassword_FullMethodName = "/apis.proto.v1alpha1.auth.Account/UserEditPassword"
	Account_UserEditUsername_FullMethodName = "/apis.proto.v1alpha1.auth.Account/UserEditUsername"
	Account_UserEditEMail_FullMethodName    = "/apis.proto.v1alpha1.auth.Account/UserEditEMail"
)
View Source
const (
	Auth_Statuses_FullMethodName       = "/apis.proto.v1alpha1.auth.Auth/Statuses"
	Auth_Authentication_FullMethodName = "/apis.proto.v1alpha1.auth.Auth/Authentication"
)
View Source
const (
	OAuth2_ApplicationCreate_FullMethodName = "/apis.proto.v1alpha1.auth.OAuth2/ApplicationCreate"
)

Variables

View Source
var Account_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "apis.proto.v1alpha1.auth.Account",
	HandlerType: (*AccountServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UserGet",
			Handler:    _Account_UserGet_Handler,
		},
		{
			MethodName: "UserCreate",
			Handler:    _Account_UserCreate_Handler,
		},
		{
			MethodName: "UserUpdate",
			Handler:    _Account_UserUpdate_Handler,
		},
		{
			MethodName: "UserEditPassword",
			Handler:    _Account_UserEditPassword_Handler,
		},
		{
			MethodName: "UserEditUsername",
			Handler:    _Account_UserEditUsername_Handler,
		},
		{
			MethodName: "UserEditEMail",
			Handler:    _Account_UserEditEMail_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/v1alpha1/auth/account.proto",
}

Account_ServiceDesc is the grpc.ServiceDesc for Account 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 Auth_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "apis.proto.v1alpha1.auth.Auth",
	HandlerType: (*AuthServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Statuses",
			Handler:    _Auth_Statuses_Handler,
		},
		{
			MethodName: "Authentication",
			Handler:    _Auth_Authentication_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/v1alpha1/auth/auth.proto",
}

Auth_ServiceDesc is the grpc.ServiceDesc for Auth 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_proto_v1alpha1_auth_account_proto protoreflect.FileDescriptor
View Source
var File_proto_v1alpha1_auth_auth_proto protoreflect.FileDescriptor
View Source
var File_proto_v1alpha1_auth_oauth2_proto protoreflect.FileDescriptor
View Source
var OAuth2_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "apis.proto.v1alpha1.auth.OAuth2",
	HandlerType: (*OAuth2Server)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ApplicationCreate",
			Handler:    _OAuth2_ApplicationCreate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/v1alpha1/auth/oauth2.proto",
}

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

Functions

func RegisterAccountHandler

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

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

func RegisterAccountHandlerClient

func RegisterAccountHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountClient) error

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

func RegisterAccountHandlerFromEndpoint

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

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

func RegisterAccountHandlerServer

func RegisterAccountHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccountServer) error

RegisterAccountHandlerServer registers the http handlers for service Account to "mux". UnaryRPC :call AccountServer 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 RegisterAccountHandlerFromEndpoint instead.

func RegisterAccountServer

func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer)

func RegisterAuthHandler

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

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

func RegisterAuthHandlerClient

func RegisterAuthHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthClient) error

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

func RegisterAuthHandlerFromEndpoint

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

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

func RegisterAuthHandlerServer

func RegisterAuthHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServer) error

RegisterAuthHandlerServer registers the http handlers for service Auth to "mux". UnaryRPC :call AuthServer 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 RegisterAuthHandlerFromEndpoint instead.

func RegisterAuthServer

func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)

func RegisterOAuth2Handler

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

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

func RegisterOAuth2HandlerClient

func RegisterOAuth2HandlerClient(ctx context.Context, mux *runtime.ServeMux, client OAuth2Client) error

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

func RegisterOAuth2HandlerFromEndpoint

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

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

func RegisterOAuth2HandlerServer

func RegisterOAuth2HandlerServer(ctx context.Context, mux *runtime.ServeMux, server OAuth2Server) error

RegisterOAuth2HandlerServer registers the http handlers for service OAuth2 to "mux". UnaryRPC :call OAuth2Server 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 RegisterOAuth2HandlerFromEndpoint instead.

func RegisterOAuth2Server

func RegisterOAuth2Server(s grpc.ServiceRegistrar, srv OAuth2Server)

Types

type AccountClient

type AccountClient interface {
	UserGet(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserGetResponse, error)
	UserCreate(ctx context.Context, in *UserCreateRequest, opts ...grpc.CallOption) (*UserCreateResponse, error)
	UserUpdate(ctx context.Context, in *UserUpdateRequest, opts ...grpc.CallOption) (*UserUpdateResponse, error)
	UserEditPassword(ctx context.Context, in *UserEditPasswordRequest, opts ...grpc.CallOption) (*UserEditPasswordResponse, error)
	UserEditUsername(ctx context.Context, in *UserEditUsernameRequest, opts ...grpc.CallOption) (*UserEditUsernameResponse, error)
	UserEditEMail(ctx context.Context, in *UserEditEMailRequest, opts ...grpc.CallOption) (*UserEditEMailResponse, error)
}

AccountClient is the client API for Account 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.

func NewAccountClient

func NewAccountClient(cc grpc.ClientConnInterface) AccountClient

type AccountServer

AccountServer is the server API for Account service. All implementations should embed UnimplementedAccountServer for forward compatibility

type ApplicationCreateRequest

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

func (*ApplicationCreateRequest) Descriptor deprecated

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

Deprecated: Use ApplicationCreateRequest.ProtoReflect.Descriptor instead.

func (*ApplicationCreateRequest) ProtoMessage

func (*ApplicationCreateRequest) ProtoMessage()

func (*ApplicationCreateRequest) ProtoReflect

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

func (*ApplicationCreateRequest) Reset

func (x *ApplicationCreateRequest) Reset()

func (*ApplicationCreateRequest) String

func (x *ApplicationCreateRequest) String() string

func (*ApplicationCreateRequest) Validate

func (m *ApplicationCreateRequest) Validate() error

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

func (m *ApplicationCreateRequest) ValidateAll() error

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

type ApplicationCreateRequestMultiError

type ApplicationCreateRequestMultiError []error

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

func (ApplicationCreateRequestMultiError) AllErrors

func (m ApplicationCreateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ApplicationCreateRequestMultiError) Error

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

type ApplicationCreateRequestValidationError

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

ApplicationCreateRequestValidationError is the validation error returned by ApplicationCreateRequest.Validate if the designated constraints aren't met.

func (ApplicationCreateRequestValidationError) Cause

Cause function returns cause value.

func (ApplicationCreateRequestValidationError) Error

Error satisfies the builtin error interface

func (ApplicationCreateRequestValidationError) ErrorName

ErrorName returns error name.

func (ApplicationCreateRequestValidationError) Field

Field function returns field value.

func (ApplicationCreateRequestValidationError) Key

Key function returns key value.

func (ApplicationCreateRequestValidationError) Reason

Reason function returns reason value.

type ApplicationCreateResponse

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

func (*ApplicationCreateResponse) Descriptor deprecated

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

Deprecated: Use ApplicationCreateResponse.ProtoReflect.Descriptor instead.

func (*ApplicationCreateResponse) ProtoMessage

func (*ApplicationCreateResponse) ProtoMessage()

func (*ApplicationCreateResponse) ProtoReflect

func (*ApplicationCreateResponse) Reset

func (x *ApplicationCreateResponse) Reset()

func (*ApplicationCreateResponse) String

func (x *ApplicationCreateResponse) String() string

func (*ApplicationCreateResponse) Validate

func (m *ApplicationCreateResponse) Validate() error

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

func (m *ApplicationCreateResponse) ValidateAll() error

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

type ApplicationCreateResponseMultiError

type ApplicationCreateResponseMultiError []error

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

func (ApplicationCreateResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ApplicationCreateResponseMultiError) Error

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

type ApplicationCreateResponseValidationError

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

ApplicationCreateResponseValidationError is the validation error returned by ApplicationCreateResponse.Validate if the designated constraints aren't met.

func (ApplicationCreateResponseValidationError) Cause

Cause function returns cause value.

func (ApplicationCreateResponseValidationError) Error

Error satisfies the builtin error interface

func (ApplicationCreateResponseValidationError) ErrorName

ErrorName returns error name.

func (ApplicationCreateResponseValidationError) Field

Field function returns field value.

func (ApplicationCreateResponseValidationError) Key

Key function returns key value.

func (ApplicationCreateResponseValidationError) Reason

Reason function returns reason value.

type AuthClient

type AuthClient interface {
	Statuses(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*StatusesResponse, error)
	Authentication(ctx context.Context, in *AuthenticationRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error)
}

AuthClient is the client API for Auth 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.

func NewAuthClient

func NewAuthClient(cc grpc.ClientConnInterface) AuthClient

type AuthServer

type AuthServer interface {
	Statuses(context.Context, *emptypb.Empty) (*StatusesResponse, error)
	Authentication(context.Context, *AuthenticationRequest) (*AuthenticationResponse, error)
}

AuthServer is the server API for Auth service. All implementations should embed UnimplementedAuthServer for forward compatibility

type AuthenticationRequest

type AuthenticationRequest struct {

	// Types that are assignable to AuthType:
	//
	//	*AuthenticationRequest_Email
	//	*AuthenticationRequest_Username
	AuthType isAuthenticationRequest_AuthType `protobuf_oneof:"auth_type"`
	Password string                           `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticationRequest) Descriptor deprecated

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

Deprecated: Use AuthenticationRequest.ProtoReflect.Descriptor instead.

func (*AuthenticationRequest) GetAuthType

func (m *AuthenticationRequest) GetAuthType() isAuthenticationRequest_AuthType

func (*AuthenticationRequest) GetEmail

func (x *AuthenticationRequest) GetEmail() string

func (*AuthenticationRequest) GetPassword

func (x *AuthenticationRequest) GetPassword() string

func (*AuthenticationRequest) GetUsername

func (x *AuthenticationRequest) GetUsername() string

func (*AuthenticationRequest) ProtoMessage

func (*AuthenticationRequest) ProtoMessage()

func (*AuthenticationRequest) ProtoReflect

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

func (*AuthenticationRequest) Reset

func (x *AuthenticationRequest) Reset()

func (*AuthenticationRequest) String

func (x *AuthenticationRequest) String() string

func (*AuthenticationRequest) Validate

func (m *AuthenticationRequest) Validate() error

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

func (m *AuthenticationRequest) ValidateAll() error

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

type AuthenticationRequestMultiError

type AuthenticationRequestMultiError []error

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

func (AuthenticationRequestMultiError) AllErrors

func (m AuthenticationRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AuthenticationRequestMultiError) Error

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

type AuthenticationRequestValidationError

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

AuthenticationRequestValidationError is the validation error returned by AuthenticationRequest.Validate if the designated constraints aren't met.

func (AuthenticationRequestValidationError) Cause

Cause function returns cause value.

func (AuthenticationRequestValidationError) Error

Error satisfies the builtin error interface

func (AuthenticationRequestValidationError) ErrorName

ErrorName returns error name.

func (AuthenticationRequestValidationError) Field

Field function returns field value.

func (AuthenticationRequestValidationError) Key

Key function returns key value.

func (AuthenticationRequestValidationError) Reason

Reason function returns reason value.

type AuthenticationRequest_Email

type AuthenticationRequest_Email struct {
	Email string `protobuf:"bytes,1,opt,name=email,proto3,oneof"`
}

type AuthenticationRequest_Username

type AuthenticationRequest_Username struct {
	Username string `protobuf:"bytes,2,opt,name=username,proto3,oneof"`
}

type AuthenticationResponse

type AuthenticationResponse struct {
	Code               string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Message            string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	AuthorizationToken string `protobuf:"bytes,3,opt,name=authorization_token,json=authorizationToken,proto3" json:"authorization_token,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticationResponse) Descriptor deprecated

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

Deprecated: Use AuthenticationResponse.ProtoReflect.Descriptor instead.

func (*AuthenticationResponse) GetAuthorizationToken

func (x *AuthenticationResponse) GetAuthorizationToken() string

func (*AuthenticationResponse) GetCode

func (x *AuthenticationResponse) GetCode() string

func (*AuthenticationResponse) GetMessage

func (x *AuthenticationResponse) GetMessage() string

func (*AuthenticationResponse) ProtoMessage

func (*AuthenticationResponse) ProtoMessage()

func (*AuthenticationResponse) ProtoReflect

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

func (*AuthenticationResponse) Reset

func (x *AuthenticationResponse) Reset()

func (*AuthenticationResponse) String

func (x *AuthenticationResponse) String() string

func (*AuthenticationResponse) Validate

func (m *AuthenticationResponse) Validate() error

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

func (m *AuthenticationResponse) ValidateAll() error

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

type AuthenticationResponseMultiError

type AuthenticationResponseMultiError []error

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

func (AuthenticationResponseMultiError) AllErrors

func (m AuthenticationResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AuthenticationResponseMultiError) Error

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

type AuthenticationResponseValidationError

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

AuthenticationResponseValidationError is the validation error returned by AuthenticationResponse.Validate if the designated constraints aren't met.

func (AuthenticationResponseValidationError) Cause

Cause function returns cause value.

func (AuthenticationResponseValidationError) Error

Error satisfies the builtin error interface

func (AuthenticationResponseValidationError) ErrorName

ErrorName returns error name.

func (AuthenticationResponseValidationError) Field

Field function returns field value.

func (AuthenticationResponseValidationError) Key

Key function returns key value.

func (AuthenticationResponseValidationError) Reason

Reason function returns reason value.

type OAuth2Client

type OAuth2Client interface {
	ApplicationCreate(ctx context.Context, in *ApplicationCreateRequest, opts ...grpc.CallOption) (*ApplicationCreateResponse, error)
}

OAuth2Client is the client API for OAuth2 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.

func NewOAuth2Client

func NewOAuth2Client(cc grpc.ClientConnInterface) OAuth2Client

type OAuth2Server

type OAuth2Server interface {
	ApplicationCreate(context.Context, *ApplicationCreateRequest) (*ApplicationCreateResponse, error)
}

OAuth2Server is the server API for OAuth2 service. All implementations should embed UnimplementedOAuth2Server for forward compatibility

type StatusesResponse

type StatusesResponse struct {
	Code    string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Status  string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*StatusesResponse) Descriptor deprecated

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

Deprecated: Use StatusesResponse.ProtoReflect.Descriptor instead.

func (*StatusesResponse) GetCode

func (x *StatusesResponse) GetCode() string

func (*StatusesResponse) GetStatus

func (x *StatusesResponse) GetStatus() string

func (*StatusesResponse) GetVersion

func (x *StatusesResponse) GetVersion() string

func (*StatusesResponse) ProtoMessage

func (*StatusesResponse) ProtoMessage()

func (*StatusesResponse) ProtoReflect

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

func (*StatusesResponse) Reset

func (x *StatusesResponse) Reset()

func (*StatusesResponse) String

func (x *StatusesResponse) String() string

func (*StatusesResponse) Validate

func (m *StatusesResponse) Validate() error

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

func (m *StatusesResponse) ValidateAll() error

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

type StatusesResponseMultiError

type StatusesResponseMultiError []error

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

func (StatusesResponseMultiError) AllErrors

func (m StatusesResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StatusesResponseMultiError) Error

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

type StatusesResponseValidationError

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

StatusesResponseValidationError is the validation error returned by StatusesResponse.Validate if the designated constraints aren't met.

func (StatusesResponseValidationError) Cause

Cause function returns cause value.

func (StatusesResponseValidationError) Error

Error satisfies the builtin error interface

func (StatusesResponseValidationError) ErrorName

ErrorName returns error name.

func (StatusesResponseValidationError) Field

Field function returns field value.

func (StatusesResponseValidationError) Key

Key function returns key value.

func (StatusesResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedAccountServer

type UnimplementedAccountServer struct {
}

UnimplementedAccountServer should be embedded to have forward compatible implementations.

func (UnimplementedAccountServer) UserCreate

func (UnimplementedAccountServer) UserEditEMail

func (UnimplementedAccountServer) UserEditPassword

func (UnimplementedAccountServer) UserEditUsername

func (UnimplementedAccountServer) UserGet

func (UnimplementedAccountServer) UserUpdate

type UnimplementedAuthServer

type UnimplementedAuthServer struct {
}

UnimplementedAuthServer should be embedded to have forward compatible implementations.

func (UnimplementedAuthServer) Authentication

func (UnimplementedAuthServer) Statuses

type UnimplementedOAuth2Server

type UnimplementedOAuth2Server struct {
}

UnimplementedOAuth2Server should be embedded to have forward compatible implementations.

type UnsafeAccountServer

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

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

type UnsafeAuthServer

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

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

type UnsafeOAuth2Server

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

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

type User

type User struct {
	Email   string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Name    string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Bio     string `protobuf:"bytes,3,opt,name=bio,proto3" json:"bio,omitempty"`
	Avatar  string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"`
	Private bool   `protobuf:"varint,5,opt,name=private,proto3" json:"private,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAvatar

func (x *User) GetAvatar() string

func (*User) GetBio

func (x *User) GetBio() string

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetPrivate

func (x *User) GetPrivate() bool

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 UserCreateRequest

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

func (*UserCreateRequest) Descriptor deprecated

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

Deprecated: Use UserCreateRequest.ProtoReflect.Descriptor instead.

func (*UserCreateRequest) GetEmail

func (x *UserCreateRequest) GetEmail() string

func (*UserCreateRequest) GetPassword

func (x *UserCreateRequest) GetPassword() string

func (*UserCreateRequest) GetUsername

func (x *UserCreateRequest) GetUsername() string

func (*UserCreateRequest) ProtoMessage

func (*UserCreateRequest) ProtoMessage()

func (*UserCreateRequest) ProtoReflect

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

func (*UserCreateRequest) Reset

func (x *UserCreateRequest) Reset()

func (*UserCreateRequest) String

func (x *UserCreateRequest) String() string

func (*UserCreateRequest) Validate

func (m *UserCreateRequest) Validate() error

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

func (m *UserCreateRequest) ValidateAll() error

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

type UserCreateRequestMultiError

type UserCreateRequestMultiError []error

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

func (UserCreateRequestMultiError) AllErrors

func (m UserCreateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserCreateRequestMultiError) Error

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

type UserCreateRequestValidationError

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

UserCreateRequestValidationError is the validation error returned by UserCreateRequest.Validate if the designated constraints aren't met.

func (UserCreateRequestValidationError) Cause

Cause function returns cause value.

func (UserCreateRequestValidationError) Error

Error satisfies the builtin error interface

func (UserCreateRequestValidationError) ErrorName

ErrorName returns error name.

func (UserCreateRequestValidationError) Field

Field function returns field value.

func (UserCreateRequestValidationError) Key

Key function returns key value.

func (UserCreateRequestValidationError) Reason

Reason function returns reason value.

type UserCreateResponse

type UserCreateResponse struct {
	Code               string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Message            string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	AuthorizationToken string `protobuf:"bytes,3,opt,name=authorization_token,json=authorizationToken,proto3" json:"authorization_token,omitempty"`
	// contains filtered or unexported fields
}

func (*UserCreateResponse) Descriptor deprecated

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

Deprecated: Use UserCreateResponse.ProtoReflect.Descriptor instead.

func (*UserCreateResponse) GetAuthorizationToken

func (x *UserCreateResponse) GetAuthorizationToken() string

func (*UserCreateResponse) GetCode

func (x *UserCreateResponse) GetCode() string

func (*UserCreateResponse) GetMessage

func (x *UserCreateResponse) GetMessage() string

func (*UserCreateResponse) ProtoMessage

func (*UserCreateResponse) ProtoMessage()

func (*UserCreateResponse) ProtoReflect

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

func (*UserCreateResponse) Reset

func (x *UserCreateResponse) Reset()

func (*UserCreateResponse) String

func (x *UserCreateResponse) String() string

func (*UserCreateResponse) Validate

func (m *UserCreateResponse) Validate() error

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

func (m *UserCreateResponse) ValidateAll() error

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

type UserCreateResponseMultiError

type UserCreateResponseMultiError []error

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

func (UserCreateResponseMultiError) AllErrors

func (m UserCreateResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserCreateResponseMultiError) Error

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

type UserCreateResponseValidationError

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

UserCreateResponseValidationError is the validation error returned by UserCreateResponse.Validate if the designated constraints aren't met.

func (UserCreateResponseValidationError) Cause

Cause function returns cause value.

func (UserCreateResponseValidationError) Error

Error satisfies the builtin error interface

func (UserCreateResponseValidationError) ErrorName

ErrorName returns error name.

func (UserCreateResponseValidationError) Field

Field function returns field value.

func (UserCreateResponseValidationError) Key

Key function returns key value.

func (UserCreateResponseValidationError) Reason

Reason function returns reason value.

type UserEditEMailRequest

type UserEditEMailRequest struct {
	Email    string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*UserEditEMailRequest) Descriptor deprecated

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

Deprecated: Use UserEditEMailRequest.ProtoReflect.Descriptor instead.

func (*UserEditEMailRequest) GetEmail

func (x *UserEditEMailRequest) GetEmail() string

func (*UserEditEMailRequest) GetPassword

func (x *UserEditEMailRequest) GetPassword() string

func (*UserEditEMailRequest) ProtoMessage

func (*UserEditEMailRequest) ProtoMessage()

func (*UserEditEMailRequest) ProtoReflect

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

func (*UserEditEMailRequest) Reset

func (x *UserEditEMailRequest) Reset()

func (*UserEditEMailRequest) String

func (x *UserEditEMailRequest) String() string

func (*UserEditEMailRequest) Validate

func (m *UserEditEMailRequest) Validate() error

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

func (m *UserEditEMailRequest) ValidateAll() error

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

type UserEditEMailRequestMultiError

type UserEditEMailRequestMultiError []error

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

func (UserEditEMailRequestMultiError) AllErrors

func (m UserEditEMailRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserEditEMailRequestMultiError) Error

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

type UserEditEMailRequestValidationError

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

UserEditEMailRequestValidationError is the validation error returned by UserEditEMailRequest.Validate if the designated constraints aren't met.

func (UserEditEMailRequestValidationError) Cause

Cause function returns cause value.

func (UserEditEMailRequestValidationError) Error

Error satisfies the builtin error interface

func (UserEditEMailRequestValidationError) ErrorName

ErrorName returns error name.

func (UserEditEMailRequestValidationError) Field

Field function returns field value.

func (UserEditEMailRequestValidationError) Key

Key function returns key value.

func (UserEditEMailRequestValidationError) Reason

Reason function returns reason value.

type UserEditEMailResponse

type UserEditEMailResponse struct {
	Code    string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*UserEditEMailResponse) Descriptor deprecated

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

Deprecated: Use UserEditEMailResponse.ProtoReflect.Descriptor instead.

func (*UserEditEMailResponse) GetCode

func (x *UserEditEMailResponse) GetCode() string

func (*UserEditEMailResponse) GetMessage

func (x *UserEditEMailResponse) GetMessage() string

func (*UserEditEMailResponse) ProtoMessage

func (*UserEditEMailResponse) ProtoMessage()

func (*UserEditEMailResponse) ProtoReflect

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

func (*UserEditEMailResponse) Reset

func (x *UserEditEMailResponse) Reset()

func (*UserEditEMailResponse) String

func (x *UserEditEMailResponse) String() string

func (*UserEditEMailResponse) Validate

func (m *UserEditEMailResponse) Validate() error

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

func (m *UserEditEMailResponse) ValidateAll() error

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

type UserEditEMailResponseMultiError

type UserEditEMailResponseMultiError []error

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

func (UserEditEMailResponseMultiError) AllErrors

func (m UserEditEMailResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserEditEMailResponseMultiError) Error

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

type UserEditEMailResponseValidationError

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

UserEditEMailResponseValidationError is the validation error returned by UserEditEMailResponse.Validate if the designated constraints aren't met.

func (UserEditEMailResponseValidationError) Cause

Cause function returns cause value.

func (UserEditEMailResponseValidationError) Error

Error satisfies the builtin error interface

func (UserEditEMailResponseValidationError) ErrorName

ErrorName returns error name.

func (UserEditEMailResponseValidationError) Field

Field function returns field value.

func (UserEditEMailResponseValidationError) Key

Key function returns key value.

func (UserEditEMailResponseValidationError) Reason

Reason function returns reason value.

type UserEditPasswordRequest

type UserEditPasswordRequest struct {
	Password    string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
	NewPassword string `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
	// contains filtered or unexported fields
}

func (*UserEditPasswordRequest) Descriptor deprecated

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

Deprecated: Use UserEditPasswordRequest.ProtoReflect.Descriptor instead.

func (*UserEditPasswordRequest) GetNewPassword

func (x *UserEditPasswordRequest) GetNewPassword() string

func (*UserEditPasswordRequest) GetPassword

func (x *UserEditPasswordRequest) GetPassword() string

func (*UserEditPasswordRequest) ProtoMessage

func (*UserEditPasswordRequest) ProtoMessage()

func (*UserEditPasswordRequest) ProtoReflect

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

func (*UserEditPasswordRequest) Reset

func (x *UserEditPasswordRequest) Reset()

func (*UserEditPasswordRequest) String

func (x *UserEditPasswordRequest) String() string

func (*UserEditPasswordRequest) Validate

func (m *UserEditPasswordRequest) Validate() error

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

func (m *UserEditPasswordRequest) ValidateAll() error

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

type UserEditPasswordRequestMultiError

type UserEditPasswordRequestMultiError []error

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

func (UserEditPasswordRequestMultiError) AllErrors

func (m UserEditPasswordRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserEditPasswordRequestMultiError) Error

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

type UserEditPasswordRequestValidationError

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

UserEditPasswordRequestValidationError is the validation error returned by UserEditPasswordRequest.Validate if the designated constraints aren't met.

func (UserEditPasswordRequestValidationError) Cause

Cause function returns cause value.

func (UserEditPasswordRequestValidationError) Error

Error satisfies the builtin error interface

func (UserEditPasswordRequestValidationError) ErrorName

ErrorName returns error name.

func (UserEditPasswordRequestValidationError) Field

Field function returns field value.

func (UserEditPasswordRequestValidationError) Key

Key function returns key value.

func (UserEditPasswordRequestValidationError) Reason

Reason function returns reason value.

type UserEditPasswordResponse

type UserEditPasswordResponse struct {
	Code    string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*UserEditPasswordResponse) Descriptor deprecated

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

Deprecated: Use UserEditPasswordResponse.ProtoReflect.Descriptor instead.

func (*UserEditPasswordResponse) GetCode

func (x *UserEditPasswordResponse) GetCode() string

func (*UserEditPasswordResponse) GetMessage

func (x *UserEditPasswordResponse) GetMessage() string

func (*UserEditPasswordResponse) ProtoMessage

func (*UserEditPasswordResponse) ProtoMessage()

func (*UserEditPasswordResponse) ProtoReflect

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

func (*UserEditPasswordResponse) Reset

func (x *UserEditPasswordResponse) Reset()

func (*UserEditPasswordResponse) String

func (x *UserEditPasswordResponse) String() string

func (*UserEditPasswordResponse) Validate

func (m *UserEditPasswordResponse) Validate() error

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

func (m *UserEditPasswordResponse) ValidateAll() error

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

type UserEditPasswordResponseMultiError

type UserEditPasswordResponseMultiError []error

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

func (UserEditPasswordResponseMultiError) AllErrors

func (m UserEditPasswordResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserEditPasswordResponseMultiError) Error

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

type UserEditPasswordResponseValidationError

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

UserEditPasswordResponseValidationError is the validation error returned by UserEditPasswordResponse.Validate if the designated constraints aren't met.

func (UserEditPasswordResponseValidationError) Cause

Cause function returns cause value.

func (UserEditPasswordResponseValidationError) Error

Error satisfies the builtin error interface

func (UserEditPasswordResponseValidationError) ErrorName

ErrorName returns error name.

func (UserEditPasswordResponseValidationError) Field

Field function returns field value.

func (UserEditPasswordResponseValidationError) Key

Key function returns key value.

func (UserEditPasswordResponseValidationError) Reason

Reason function returns reason value.

type UserEditUsernameRequest

type UserEditUsernameRequest 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"`
	// contains filtered or unexported fields
}

func (*UserEditUsernameRequest) Descriptor deprecated

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

Deprecated: Use UserEditUsernameRequest.ProtoReflect.Descriptor instead.

func (*UserEditUsernameRequest) GetPassword

func (x *UserEditUsernameRequest) GetPassword() string

func (*UserEditUsernameRequest) GetUsername

func (x *UserEditUsernameRequest) GetUsername() string

func (*UserEditUsernameRequest) ProtoMessage

func (*UserEditUsernameRequest) ProtoMessage()

func (*UserEditUsernameRequest) ProtoReflect

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

func (*UserEditUsernameRequest) Reset

func (x *UserEditUsernameRequest) Reset()

func (*UserEditUsernameRequest) String

func (x *UserEditUsernameRequest) String() string

func (*UserEditUsernameRequest) Validate

func (m *UserEditUsernameRequest) Validate() error

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

func (m *UserEditUsernameRequest) ValidateAll() error

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

type UserEditUsernameRequestMultiError

type UserEditUsernameRequestMultiError []error

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

func (UserEditUsernameRequestMultiError) AllErrors

func (m UserEditUsernameRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserEditUsernameRequestMultiError) Error

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

type UserEditUsernameRequestValidationError

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

UserEditUsernameRequestValidationError is the validation error returned by UserEditUsernameRequest.Validate if the designated constraints aren't met.

func (UserEditUsernameRequestValidationError) Cause

Cause function returns cause value.

func (UserEditUsernameRequestValidationError) Error

Error satisfies the builtin error interface

func (UserEditUsernameRequestValidationError) ErrorName

ErrorName returns error name.

func (UserEditUsernameRequestValidationError) Field

Field function returns field value.

func (UserEditUsernameRequestValidationError) Key

Key function returns key value.

func (UserEditUsernameRequestValidationError) Reason

Reason function returns reason value.

type UserEditUsernameResponse

type UserEditUsernameResponse struct {
	Code    string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*UserEditUsernameResponse) Descriptor deprecated

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

Deprecated: Use UserEditUsernameResponse.ProtoReflect.Descriptor instead.

func (*UserEditUsernameResponse) GetCode

func (x *UserEditUsernameResponse) GetCode() string

func (*UserEditUsernameResponse) GetMessage

func (x *UserEditUsernameResponse) GetMessage() string

func (*UserEditUsernameResponse) ProtoMessage

func (*UserEditUsernameResponse) ProtoMessage()

func (*UserEditUsernameResponse) ProtoReflect

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

func (*UserEditUsernameResponse) Reset

func (x *UserEditUsernameResponse) Reset()

func (*UserEditUsernameResponse) String

func (x *UserEditUsernameResponse) String() string

func (*UserEditUsernameResponse) Validate

func (m *UserEditUsernameResponse) Validate() error

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

func (m *UserEditUsernameResponse) ValidateAll() error

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

type UserEditUsernameResponseMultiError

type UserEditUsernameResponseMultiError []error

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

func (UserEditUsernameResponseMultiError) AllErrors

func (m UserEditUsernameResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserEditUsernameResponseMultiError) Error

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

type UserEditUsernameResponseValidationError

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

UserEditUsernameResponseValidationError is the validation error returned by UserEditUsernameResponse.Validate if the designated constraints aren't met.

func (UserEditUsernameResponseValidationError) Cause

Cause function returns cause value.

func (UserEditUsernameResponseValidationError) Error

Error satisfies the builtin error interface

func (UserEditUsernameResponseValidationError) ErrorName

ErrorName returns error name.

func (UserEditUsernameResponseValidationError) Field

Field function returns field value.

func (UserEditUsernameResponseValidationError) Key

Key function returns key value.

func (UserEditUsernameResponseValidationError) Reason

Reason function returns reason value.

type UserGetResponse

type UserGetResponse struct {
	Code    string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	User    *User  `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*UserGetResponse) Descriptor deprecated

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

Deprecated: Use UserGetResponse.ProtoReflect.Descriptor instead.

func (*UserGetResponse) GetCode

func (x *UserGetResponse) GetCode() string

func (*UserGetResponse) GetMessage

func (x *UserGetResponse) GetMessage() string

func (*UserGetResponse) GetUser

func (x *UserGetResponse) GetUser() *User

func (*UserGetResponse) ProtoMessage

func (*UserGetResponse) ProtoMessage()

func (*UserGetResponse) ProtoReflect

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

func (*UserGetResponse) Reset

func (x *UserGetResponse) Reset()

func (*UserGetResponse) String

func (x *UserGetResponse) String() string

func (*UserGetResponse) Validate

func (m *UserGetResponse) Validate() error

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

func (m *UserGetResponse) ValidateAll() error

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

type UserGetResponseMultiError

type UserGetResponseMultiError []error

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

func (UserGetResponseMultiError) AllErrors

func (m UserGetResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserGetResponseMultiError) Error

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

type UserGetResponseValidationError

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

UserGetResponseValidationError is the validation error returned by UserGetResponse.Validate if the designated constraints aren't met.

func (UserGetResponseValidationError) Cause

Cause function returns cause value.

func (UserGetResponseValidationError) Error

Error satisfies the builtin error interface

func (UserGetResponseValidationError) ErrorName

func (e UserGetResponseValidationError) ErrorName() string

ErrorName returns error name.

func (UserGetResponseValidationError) Field

Field function returns field value.

func (UserGetResponseValidationError) Key

Key function returns key value.

func (UserGetResponseValidationError) Reason

Reason function returns reason value.

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 UserUpdateRequest

type UserUpdateRequest struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Bio     string `protobuf:"bytes,2,opt,name=bio,proto3" json:"bio,omitempty"`
	Avatar  string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"`
	Private bool   `protobuf:"varint,4,opt,name=private,proto3" json:"private,omitempty"`
	// contains filtered or unexported fields
}

func (*UserUpdateRequest) Descriptor deprecated

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

Deprecated: Use UserUpdateRequest.ProtoReflect.Descriptor instead.

func (*UserUpdateRequest) GetAvatar

func (x *UserUpdateRequest) GetAvatar() string

func (*UserUpdateRequest) GetBio

func (x *UserUpdateRequest) GetBio() string

func (*UserUpdateRequest) GetName

func (x *UserUpdateRequest) GetName() string

func (*UserUpdateRequest) GetPrivate

func (x *UserUpdateRequest) GetPrivate() bool

func (*UserUpdateRequest) ProtoMessage

func (*UserUpdateRequest) ProtoMessage()

func (*UserUpdateRequest) ProtoReflect

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

func (*UserUpdateRequest) Reset

func (x *UserUpdateRequest) Reset()

func (*UserUpdateRequest) String

func (x *UserUpdateRequest) String() string

func (*UserUpdateRequest) Validate

func (m *UserUpdateRequest) Validate() error

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

func (m *UserUpdateRequest) ValidateAll() error

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

type UserUpdateRequestMultiError

type UserUpdateRequestMultiError []error

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

func (UserUpdateRequestMultiError) AllErrors

func (m UserUpdateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserUpdateRequestMultiError) Error

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

type UserUpdateRequestValidationError

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

UserUpdateRequestValidationError is the validation error returned by UserUpdateRequest.Validate if the designated constraints aren't met.

func (UserUpdateRequestValidationError) Cause

Cause function returns cause value.

func (UserUpdateRequestValidationError) Error

Error satisfies the builtin error interface

func (UserUpdateRequestValidationError) ErrorName

ErrorName returns error name.

func (UserUpdateRequestValidationError) Field

Field function returns field value.

func (UserUpdateRequestValidationError) Key

Key function returns key value.

func (UserUpdateRequestValidationError) Reason

Reason function returns reason value.

type UserUpdateResponse

type UserUpdateResponse struct {
	Code    string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*UserUpdateResponse) Descriptor deprecated

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

Deprecated: Use UserUpdateResponse.ProtoReflect.Descriptor instead.

func (*UserUpdateResponse) GetCode

func (x *UserUpdateResponse) GetCode() string

func (*UserUpdateResponse) GetMessage

func (x *UserUpdateResponse) GetMessage() string

func (*UserUpdateResponse) ProtoMessage

func (*UserUpdateResponse) ProtoMessage()

func (*UserUpdateResponse) ProtoReflect

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

func (*UserUpdateResponse) Reset

func (x *UserUpdateResponse) Reset()

func (*UserUpdateResponse) String

func (x *UserUpdateResponse) String() string

func (*UserUpdateResponse) Validate

func (m *UserUpdateResponse) Validate() error

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

func (m *UserUpdateResponse) ValidateAll() error

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

type UserUpdateResponseMultiError

type UserUpdateResponseMultiError []error

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

func (UserUpdateResponseMultiError) AllErrors

func (m UserUpdateResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserUpdateResponseMultiError) Error

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

type UserUpdateResponseValidationError

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

UserUpdateResponseValidationError is the validation error returned by UserUpdateResponse.Validate if the designated constraints aren't met.

func (UserUpdateResponseValidationError) Cause

Cause function returns cause value.

func (UserUpdateResponseValidationError) Error

Error satisfies the builtin error interface

func (UserUpdateResponseValidationError) ErrorName

ErrorName returns error name.

func (UserUpdateResponseValidationError) Field

Field function returns field value.

func (UserUpdateResponseValidationError) Key

Key function returns key value.

func (UserUpdateResponseValidationError) Reason

Reason function returns reason value.

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