service

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_grpc_go_users_proto protoreflect.FileDescriptor
View Source
var GoUsers_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "go.users.GoUsers",
	HandlerType: (*GoUsersServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateUser",
			Handler:    _GoUsers_CreateUser_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _GoUsers_GetUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _GoUsers_UpdateUser_Handler,
		},
		{
			MethodName: "CreateSession",
			Handler:    _GoUsers_CreateSession_Handler,
		},
		{
			MethodName: "DeleteSession",
			Handler:    _GoUsers_DeleteSession_Handler,
		},
		{
			MethodName: "FlushSessions",
			Handler:    _GoUsers_FlushSessions_Handler,
		},
		{
			MethodName: "ValidateEmail",
			Handler:    _GoUsers_ValidateEmail_Handler,
		},
		{
			MethodName: "CheckEmail",
			Handler:    _GoUsers_CheckEmail_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/grpc/go-users.proto",
}

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

Functions

func RegisterGoUsersServer

func RegisterGoUsersServer(s grpc.ServiceRegistrar, srv GoUsersServer)

Types

type CheckEmailRequest

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

func (*CheckEmailRequest) Descriptor deprecated

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

Deprecated: Use CheckEmailRequest.ProtoReflect.Descriptor instead.

func (*CheckEmailRequest) GetEmail

func (x *CheckEmailRequest) GetEmail() string

func (*CheckEmailRequest) ProtoMessage

func (*CheckEmailRequest) ProtoMessage()

func (*CheckEmailRequest) ProtoReflect

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

func (*CheckEmailRequest) Reset

func (x *CheckEmailRequest) Reset()

func (*CheckEmailRequest) String

func (x *CheckEmailRequest) String() string

type CheckEmailResponse

type CheckEmailResponse struct {
	Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckEmailResponse) Descriptor deprecated

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

Deprecated: Use CheckEmailResponse.ProtoReflect.Descriptor instead.

func (*CheckEmailResponse) GetAvailable

func (x *CheckEmailResponse) GetAvailable() bool

func (*CheckEmailResponse) ProtoMessage

func (*CheckEmailResponse) ProtoMessage()

func (*CheckEmailResponse) ProtoReflect

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

func (*CheckEmailResponse) Reset

func (x *CheckEmailResponse) Reset()

func (*CheckEmailResponse) String

func (x *CheckEmailResponse) String() string

type CreateSessionRequest

type CreateSessionRequest 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 (*CreateSessionRequest) Descriptor deprecated

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

Deprecated: Use CreateSessionRequest.ProtoReflect.Descriptor instead.

func (*CreateSessionRequest) GetEmail

func (x *CreateSessionRequest) GetEmail() string

func (*CreateSessionRequest) GetPassword

func (x *CreateSessionRequest) GetPassword() string

func (*CreateSessionRequest) ProtoMessage

func (*CreateSessionRequest) ProtoMessage()

func (*CreateSessionRequest) ProtoReflect

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

func (*CreateSessionRequest) Reset

func (x *CreateSessionRequest) Reset()

func (*CreateSessionRequest) String

func (x *CreateSessionRequest) String() string

type CreateSessionResponse

type CreateSessionResponse struct {
	SessionToken string `protobuf:"bytes,1,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"`
	Uuid         string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Success      bool   `protobuf:"varint,3,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSessionResponse) Descriptor deprecated

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

Deprecated: Use CreateSessionResponse.ProtoReflect.Descriptor instead.

func (*CreateSessionResponse) GetSessionToken

func (x *CreateSessionResponse) GetSessionToken() string

func (*CreateSessionResponse) GetSuccess

func (x *CreateSessionResponse) GetSuccess() bool

func (*CreateSessionResponse) GetUuid added in v1.1.0

func (x *CreateSessionResponse) GetUuid() string

func (*CreateSessionResponse) ProtoMessage

func (*CreateSessionResponse) ProtoMessage()

func (*CreateSessionResponse) ProtoReflect

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

func (*CreateSessionResponse) Reset

func (x *CreateSessionResponse) Reset()

func (*CreateSessionResponse) String

func (x *CreateSessionResponse) String() string

type CreateUserRequest

type CreateUserRequest 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 (*CreateUserRequest) Descriptor deprecated

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

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetEmail

func (x *CreateUserRequest) GetEmail() string

func (*CreateUserRequest) GetPassword

func (x *CreateUserRequest) GetPassword() string

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

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

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

type CreateUserResponse

type CreateUserResponse struct {
	Name         string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Email        string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Uuid         string `protobuf:"bytes,3,opt,name=uuid,proto3" json:"uuid,omitempty"`
	SessionToken string `protobuf:"bytes,4,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"`
	Verified     bool   `protobuf:"varint,5,opt,name=verified,proto3" json:"verified,omitempty"`
	Success      bool   `protobuf:"varint,6,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserResponse) Descriptor deprecated

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

Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.

func (*CreateUserResponse) GetEmail

func (x *CreateUserResponse) GetEmail() string

func (*CreateUserResponse) GetName

func (x *CreateUserResponse) GetName() string

func (*CreateUserResponse) GetSessionToken

func (x *CreateUserResponse) GetSessionToken() string

func (*CreateUserResponse) GetSuccess

func (x *CreateUserResponse) GetSuccess() bool

func (*CreateUserResponse) GetUuid

func (x *CreateUserResponse) GetUuid() string

func (*CreateUserResponse) GetVerified

func (x *CreateUserResponse) GetVerified() bool

func (*CreateUserResponse) ProtoMessage

func (*CreateUserResponse) ProtoMessage()

func (*CreateUserResponse) ProtoReflect

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

func (*CreateUserResponse) Reset

func (x *CreateUserResponse) Reset()

func (*CreateUserResponse) String

func (x *CreateUserResponse) String() string

type DeleteSessionRequest

type DeleteSessionRequest struct {
	Uuid         string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	SessionToken string `protobuf:"bytes,2,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteSessionRequest) Descriptor deprecated

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

Deprecated: Use DeleteSessionRequest.ProtoReflect.Descriptor instead.

func (*DeleteSessionRequest) GetSessionToken

func (x *DeleteSessionRequest) GetSessionToken() string

func (*DeleteSessionRequest) GetUuid

func (x *DeleteSessionRequest) GetUuid() string

func (*DeleteSessionRequest) ProtoMessage

func (*DeleteSessionRequest) ProtoMessage()

func (*DeleteSessionRequest) ProtoReflect

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

func (*DeleteSessionRequest) Reset

func (x *DeleteSessionRequest) Reset()

func (*DeleteSessionRequest) String

func (x *DeleteSessionRequest) String() string

type DeleteSessionResponse

type DeleteSessionResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteSessionResponse) Descriptor deprecated

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

Deprecated: Use DeleteSessionResponse.ProtoReflect.Descriptor instead.

func (*DeleteSessionResponse) GetSuccess

func (x *DeleteSessionResponse) GetSuccess() bool

func (*DeleteSessionResponse) ProtoMessage

func (*DeleteSessionResponse) ProtoMessage()

func (*DeleteSessionResponse) ProtoReflect

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

func (*DeleteSessionResponse) Reset

func (x *DeleteSessionResponse) Reset()

func (*DeleteSessionResponse) String

func (x *DeleteSessionResponse) String() string

type FlushSessionsRequest

type FlushSessionsRequest struct {
	Uuid         string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	SessionToken string `protobuf:"bytes,2,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"`
	// contains filtered or unexported fields
}

func (*FlushSessionsRequest) Descriptor deprecated

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

Deprecated: Use FlushSessionsRequest.ProtoReflect.Descriptor instead.

func (*FlushSessionsRequest) GetSessionToken

func (x *FlushSessionsRequest) GetSessionToken() string

func (*FlushSessionsRequest) GetUuid

func (x *FlushSessionsRequest) GetUuid() string

func (*FlushSessionsRequest) ProtoMessage

func (*FlushSessionsRequest) ProtoMessage()

func (*FlushSessionsRequest) ProtoReflect

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

func (*FlushSessionsRequest) Reset

func (x *FlushSessionsRequest) Reset()

func (*FlushSessionsRequest) String

func (x *FlushSessionsRequest) String() string

type FlushSessionsResponse

type FlushSessionsResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*FlushSessionsResponse) Descriptor deprecated

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

Deprecated: Use FlushSessionsResponse.ProtoReflect.Descriptor instead.

func (*FlushSessionsResponse) GetSuccess

func (x *FlushSessionsResponse) GetSuccess() bool

func (*FlushSessionsResponse) ProtoMessage

func (*FlushSessionsResponse) ProtoMessage()

func (*FlushSessionsResponse) ProtoReflect

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

func (*FlushSessionsResponse) Reset

func (x *FlushSessionsResponse) Reset()

func (*FlushSessionsResponse) String

func (x *FlushSessionsResponse) String() string

type GetUserRequest

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

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetUuid

func (x *GetUserRequest) GetUuid() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

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

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type GetUserResponse

type GetUserResponse struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Email    string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Uuid     string `protobuf:"bytes,3,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Verified bool   `protobuf:"varint,4,opt,name=verified,proto3" json:"verified,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserResponse) Descriptor deprecated

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

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) GetEmail

func (x *GetUserResponse) GetEmail() string

func (*GetUserResponse) GetName

func (x *GetUserResponse) GetName() string

func (*GetUserResponse) GetUuid

func (x *GetUserResponse) GetUuid() string

func (*GetUserResponse) GetVerified

func (x *GetUserResponse) GetVerified() bool

func (*GetUserResponse) ProtoMessage

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) ProtoReflect

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

func (*GetUserResponse) Reset

func (x *GetUserResponse) Reset()

func (*GetUserResponse) String

func (x *GetUserResponse) String() string

type GoUsersClient

GoUsersClient is the client API for GoUsers 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 NewGoUsersClient

func NewGoUsersClient(cc grpc.ClientConnInterface) GoUsersClient

type GoUsersServer

GoUsersServer is the server API for GoUsers service. All implementations must embed UnimplementedGoUsersServer for forward compatibility

type UnimplementedGoUsersServer

type UnimplementedGoUsersServer struct {
}

UnimplementedGoUsersServer must be embedded to have forward compatible implementations.

func (UnimplementedGoUsersServer) CheckEmail

func (UnimplementedGoUsersServer) CreateSession

func (UnimplementedGoUsersServer) CreateUser

func (UnimplementedGoUsersServer) DeleteSession

func (UnimplementedGoUsersServer) FlushSessions

func (UnimplementedGoUsersServer) GetUser

func (UnimplementedGoUsersServer) UpdateUser

func (UnimplementedGoUsersServer) ValidateEmail

type UnsafeGoUsersServer

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

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

type UpdateUserRequest

type UpdateUserRequest struct {
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetName

func (x *UpdateUserRequest) GetName() string

func (*UpdateUserRequest) GetUuid

func (x *UpdateUserRequest) GetUuid() string

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

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

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

type UpdateUserResponse

type UpdateUserResponse struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Email    string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Uuid     string `protobuf:"bytes,3,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Verified bool   `protobuf:"varint,4,opt,name=verified,proto3" json:"verified,omitempty"`
	Success  bool   `protobuf:"varint,5,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserResponse) Descriptor deprecated

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

Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.

func (*UpdateUserResponse) GetEmail

func (x *UpdateUserResponse) GetEmail() string

func (*UpdateUserResponse) GetName

func (x *UpdateUserResponse) GetName() string

func (*UpdateUserResponse) GetSuccess

func (x *UpdateUserResponse) GetSuccess() bool

func (*UpdateUserResponse) GetUuid

func (x *UpdateUserResponse) GetUuid() string

func (*UpdateUserResponse) GetVerified

func (x *UpdateUserResponse) GetVerified() bool

func (*UpdateUserResponse) ProtoMessage

func (*UpdateUserResponse) ProtoMessage()

func (*UpdateUserResponse) ProtoReflect

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

func (*UpdateUserResponse) Reset

func (x *UpdateUserResponse) Reset()

func (*UpdateUserResponse) String

func (x *UpdateUserResponse) String() string

type ValidateEmailRequest

type ValidateEmailRequest struct {
	Uuid            string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	ValidationToken string `protobuf:"bytes,2,opt,name=validation_token,json=validationToken,proto3" json:"validation_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateEmailRequest) Descriptor deprecated

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

Deprecated: Use ValidateEmailRequest.ProtoReflect.Descriptor instead.

func (*ValidateEmailRequest) GetUuid

func (x *ValidateEmailRequest) GetUuid() string

func (*ValidateEmailRequest) GetValidationToken

func (x *ValidateEmailRequest) GetValidationToken() string

func (*ValidateEmailRequest) ProtoMessage

func (*ValidateEmailRequest) ProtoMessage()

func (*ValidateEmailRequest) ProtoReflect

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

func (*ValidateEmailRequest) Reset

func (x *ValidateEmailRequest) Reset()

func (*ValidateEmailRequest) String

func (x *ValidateEmailRequest) String() string

type ValidateEmailResponse

type ValidateEmailResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateEmailResponse) Descriptor deprecated

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

Deprecated: Use ValidateEmailResponse.ProtoReflect.Descriptor instead.

func (*ValidateEmailResponse) GetSuccess

func (x *ValidateEmailResponse) GetSuccess() bool

func (*ValidateEmailResponse) ProtoMessage

func (*ValidateEmailResponse) ProtoMessage()

func (*ValidateEmailResponse) ProtoReflect

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

func (*ValidateEmailResponse) Reset

func (x *ValidateEmailResponse) Reset()

func (*ValidateEmailResponse) String

func (x *ValidateEmailResponse) String() string

Jump to

Keyboard shortcuts

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