v1

package
v0.0.0-...-771d5d4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	User_CreateUser_FullMethodName                = "/user.v1.User/CreateUser"
	User_GetUser_FullMethodName                   = "/user.v1.User/GetUser"
	User_GetUserByName_FullMethodName             = "/user.v1.User/GetUserByName"
	User_UpdateUser_FullMethodName                = "/user.v1.User/UpdateUser"
	User_VerifyPassword_FullMethodName            = "/user.v1.User/VerifyPassword"
	User_CreateUserKeyboardBinding_FullMethodName = "/user.v1.User/CreateUserKeyboardBinding"
	User_ListUserKeyboardBinding_FullMethodName   = "/user.v1.User/ListUserKeyboardBinding"
	User_GetUserKeyboardBinding_FullMethodName    = "/user.v1.User/GetUserKeyboardBinding"
	User_UpdateUserKeyboardBinding_FullMethodName = "/user.v1.User/UpdateUserKeyboardBinding"
	User_DeleteUserKeyboardBinding_FullMethodName = "/user.v1.User/DeleteUserKeyboardBinding"
	User_CreateMacro_FullMethodName               = "/user.v1.User/CreateMacro"
	User_GetMacro_FullMethodName                  = "/user.v1.User/GetMacro"
	User_ListMacro_FullMethodName                 = "/user.v1.User/ListMacro"
	User_DeleteMacro_FullMethodName               = "/user.v1.User/DeleteMacro"
)

Variables

View Source
var (
	UserServiceErrorReason_name = map[int32]string{
		0:  "UNKNOWN_ERROR",
		2:  "USERNAME_CONFLICT",
		3:  "USER_NOT_FOUND",
		4:  "VERIFY_PASSWORD_FAILED",
		5:  "CREATE_KEYBOARD_BINDING_FAILED",
		6:  "UPDATE_KEYBOARD_BINDING_FAILED",
		7:  "DELETE_KEYBOARD_BINDING_FAILED",
		8:  "CREATE_MACRO_FAILED",
		9:  "GET_MACRO_FAILED",
		10: "DELETE_MACRO_FAILED",
	}
	UserServiceErrorReason_value = map[string]int32{
		"UNKNOWN_ERROR":                  0,
		"USERNAME_CONFLICT":              2,
		"USER_NOT_FOUND":                 3,
		"VERIFY_PASSWORD_FAILED":         4,
		"CREATE_KEYBOARD_BINDING_FAILED": 5,
		"UPDATE_KEYBOARD_BINDING_FAILED": 6,
		"DELETE_KEYBOARD_BINDING_FAILED": 7,
		"CREATE_MACRO_FAILED":            8,
		"GET_MACRO_FAILED":               9,
		"DELETE_MACRO_FAILED":            10,
	}
)

Enum value maps for UserServiceErrorReason.

View Source
var File_user_service_v1_user_error_proto protoreflect.FileDescriptor
View Source
var File_user_service_v1_user_proto protoreflect.FileDescriptor
View Source
var User_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "user.v1.User",
	HandlerType: (*UserServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateUser",
			Handler:    _User_CreateUser_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _User_GetUser_Handler,
		},
		{
			MethodName: "GetUserByName",
			Handler:    _User_GetUserByName_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _User_UpdateUser_Handler,
		},
		{
			MethodName: "VerifyPassword",
			Handler:    _User_VerifyPassword_Handler,
		},
		{
			MethodName: "CreateUserKeyboardBinding",
			Handler:    _User_CreateUserKeyboardBinding_Handler,
		},
		{
			MethodName: "ListUserKeyboardBinding",
			Handler:    _User_ListUserKeyboardBinding_Handler,
		},
		{
			MethodName: "GetUserKeyboardBinding",
			Handler:    _User_GetUserKeyboardBinding_Handler,
		},
		{
			MethodName: "UpdateUserKeyboardBinding",
			Handler:    _User_UpdateUserKeyboardBinding_Handler,
		},
		{
			MethodName: "DeleteUserKeyboardBinding",
			Handler:    _User_DeleteUserKeyboardBinding_Handler,
		},
		{
			MethodName: "CreateMacro",
			Handler:    _User_CreateMacro_Handler,
		},
		{
			MethodName: "GetMacro",
			Handler:    _User_GetMacro_Handler,
		},
		{
			MethodName: "ListMacro",
			Handler:    _User_ListMacro_Handler,
		},
		{
			MethodName: "DeleteMacro",
			Handler:    _User_DeleteMacro_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "user/service/v1/user.proto",
}

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

Functions

func ErrorCreateKeyboardBindingFailed

func ErrorCreateKeyboardBindingFailed(format string, args ...interface{}) *errors.Error

func ErrorCreateMacroFailed

func ErrorCreateMacroFailed(format string, args ...interface{}) *errors.Error

func ErrorDeleteKeyboardBindingFailed

func ErrorDeleteKeyboardBindingFailed(format string, args ...interface{}) *errors.Error

func ErrorDeleteMacroFailed

func ErrorDeleteMacroFailed(format string, args ...interface{}) *errors.Error

func ErrorGetMacroFailed

func ErrorGetMacroFailed(format string, args ...interface{}) *errors.Error

func ErrorUnknownError

func ErrorUnknownError(format string, args ...interface{}) *errors.Error

func ErrorUpdateKeyboardBindingFailed

func ErrorUpdateKeyboardBindingFailed(format string, args ...interface{}) *errors.Error

func ErrorUserNotFound

func ErrorUserNotFound(format string, args ...interface{}) *errors.Error

func ErrorUsernameConflict

func ErrorUsernameConflict(format string, args ...interface{}) *errors.Error

func ErrorVerifyPasswordFailed

func ErrorVerifyPasswordFailed(format string, args ...interface{}) *errors.Error

func IsCreateKeyboardBindingFailed

func IsCreateKeyboardBindingFailed(err error) bool

func IsCreateMacroFailed

func IsCreateMacroFailed(err error) bool

func IsDeleteKeyboardBindingFailed

func IsDeleteKeyboardBindingFailed(err error) bool

func IsDeleteMacroFailed

func IsDeleteMacroFailed(err error) bool

func IsGetMacroFailed

func IsGetMacroFailed(err error) bool

func IsUnknownError

func IsUnknownError(err error) bool

func IsUpdateKeyboardBindingFailed

func IsUpdateKeyboardBindingFailed(err error) bool

func IsUserNotFound

func IsUserNotFound(err error) bool

func IsUsernameConflict

func IsUsernameConflict(err error) bool

func IsVerifyPasswordFailed

func IsVerifyPasswordFailed(err error) bool

func RegisterUserServer

func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)

Types

type CreateMacroRequest

type CreateMacroRequest struct {
	UserId      int64          `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	Name        string         `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	KeyboardKey string         `protobuf:"bytes,3,opt,name=keyboardKey,proto3" json:"keyboardKey,omitempty"`
	Actions     []*MacroAction `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateMacroRequest) Descriptor deprecated

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

Deprecated: Use CreateMacroRequest.ProtoReflect.Descriptor instead.

func (*CreateMacroRequest) GetActions

func (x *CreateMacroRequest) GetActions() []*MacroAction

func (*CreateMacroRequest) GetKeyboardKey

func (x *CreateMacroRequest) GetKeyboardKey() string

func (*CreateMacroRequest) GetName

func (x *CreateMacroRequest) GetName() string

func (*CreateMacroRequest) GetUserId

func (x *CreateMacroRequest) GetUserId() int64

func (*CreateMacroRequest) ProtoMessage

func (*CreateMacroRequest) ProtoMessage()

func (*CreateMacroRequest) ProtoReflect

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

func (*CreateMacroRequest) Reset

func (x *CreateMacroRequest) Reset()

func (*CreateMacroRequest) String

func (x *CreateMacroRequest) String() string

type CreateMacroResponse

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

func (*CreateMacroResponse) Descriptor deprecated

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

Deprecated: Use CreateMacroResponse.ProtoReflect.Descriptor instead.

func (*CreateMacroResponse) ProtoMessage

func (*CreateMacroResponse) ProtoMessage()

func (*CreateMacroResponse) ProtoReflect

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

func (*CreateMacroResponse) Reset

func (x *CreateMacroResponse) Reset()

func (*CreateMacroResponse) String

func (x *CreateMacroResponse) String() string

type CreateUserKeyboardBindingRequest

type CreateUserKeyboardBindingRequest struct {
	UserId   int64              `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	Name     string             `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Bindings []*KeyboardBinding `protobuf:"bytes,3,rep,name=bindings,proto3" json:"bindings,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserKeyboardBindingRequest) Descriptor deprecated

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

Deprecated: Use CreateUserKeyboardBindingRequest.ProtoReflect.Descriptor instead.

func (*CreateUserKeyboardBindingRequest) GetBindings

func (*CreateUserKeyboardBindingRequest) GetName

func (*CreateUserKeyboardBindingRequest) GetUserId

func (x *CreateUserKeyboardBindingRequest) GetUserId() int64

func (*CreateUserKeyboardBindingRequest) ProtoMessage

func (*CreateUserKeyboardBindingRequest) ProtoMessage()

func (*CreateUserKeyboardBindingRequest) ProtoReflect

func (*CreateUserKeyboardBindingRequest) Reset

func (*CreateUserKeyboardBindingRequest) String

type CreateUserKeyboardBindingResponse

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

func (*CreateUserKeyboardBindingResponse) Descriptor deprecated

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

Deprecated: Use CreateUserKeyboardBindingResponse.ProtoReflect.Descriptor instead.

func (*CreateUserKeyboardBindingResponse) ProtoMessage

func (*CreateUserKeyboardBindingResponse) ProtoMessage()

func (*CreateUserKeyboardBindingResponse) ProtoReflect

func (*CreateUserKeyboardBindingResponse) Reset

func (*CreateUserKeyboardBindingResponse) String

type CreateUserRequest

type CreateUserRequest struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,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) GetName

func (x *CreateUserRequest) GetName() 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 {
	Id   int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserResponse) Descriptor deprecated

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

Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.

func (*CreateUserResponse) GetId

func (x *CreateUserResponse) GetId() int64

func (*CreateUserResponse) GetName

func (x *CreateUserResponse) GetName() string

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 DeleteMacroRequest

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

func (*DeleteMacroRequest) Descriptor deprecated

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

Deprecated: Use DeleteMacroRequest.ProtoReflect.Descriptor instead.

func (*DeleteMacroRequest) GetId

func (x *DeleteMacroRequest) GetId() int64

func (*DeleteMacroRequest) ProtoMessage

func (*DeleteMacroRequest) ProtoMessage()

func (*DeleteMacroRequest) ProtoReflect

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

func (*DeleteMacroRequest) Reset

func (x *DeleteMacroRequest) Reset()

func (*DeleteMacroRequest) String

func (x *DeleteMacroRequest) String() string

type DeleteMacroResponse

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

func (*DeleteMacroResponse) Descriptor deprecated

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

Deprecated: Use DeleteMacroResponse.ProtoReflect.Descriptor instead.

func (*DeleteMacroResponse) ProtoMessage

func (*DeleteMacroResponse) ProtoMessage()

func (*DeleteMacroResponse) ProtoReflect

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

func (*DeleteMacroResponse) Reset

func (x *DeleteMacroResponse) Reset()

func (*DeleteMacroResponse) String

func (x *DeleteMacroResponse) String() string

type DeleteUserKeyboardBindingRequest

type DeleteUserKeyboardBindingRequest struct {
	Id     int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUserKeyboardBindingRequest) Descriptor deprecated

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

Deprecated: Use DeleteUserKeyboardBindingRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserKeyboardBindingRequest) GetId

func (*DeleteUserKeyboardBindingRequest) GetUserId

func (x *DeleteUserKeyboardBindingRequest) GetUserId() int64

func (*DeleteUserKeyboardBindingRequest) ProtoMessage

func (*DeleteUserKeyboardBindingRequest) ProtoMessage()

func (*DeleteUserKeyboardBindingRequest) ProtoReflect

func (*DeleteUserKeyboardBindingRequest) Reset

func (*DeleteUserKeyboardBindingRequest) String

type DeleteUserKeyboardBindingResponse

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

func (*DeleteUserKeyboardBindingResponse) Descriptor deprecated

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

Deprecated: Use DeleteUserKeyboardBindingResponse.ProtoReflect.Descriptor instead.

func (*DeleteUserKeyboardBindingResponse) ProtoMessage

func (*DeleteUserKeyboardBindingResponse) ProtoMessage()

func (*DeleteUserKeyboardBindingResponse) ProtoReflect

func (*DeleteUserKeyboardBindingResponse) Reset

func (*DeleteUserKeyboardBindingResponse) String

type GetMacroRequest

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

func (*GetMacroRequest) Descriptor deprecated

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

Deprecated: Use GetMacroRequest.ProtoReflect.Descriptor instead.

func (*GetMacroRequest) GetId

func (x *GetMacroRequest) GetId() int64

func (*GetMacroRequest) ProtoMessage

func (*GetMacroRequest) ProtoMessage()

func (*GetMacroRequest) ProtoReflect

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

func (*GetMacroRequest) Reset

func (x *GetMacroRequest) Reset()

func (*GetMacroRequest) String

func (x *GetMacroRequest) String() string

type GetMacroResponse

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

func (*GetMacroResponse) Descriptor deprecated

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

Deprecated: Use GetMacroResponse.ProtoReflect.Descriptor instead.

func (*GetMacroResponse) GetMacro

func (x *GetMacroResponse) GetMacro() *Macro

func (*GetMacroResponse) ProtoMessage

func (*GetMacroResponse) ProtoMessage()

func (*GetMacroResponse) ProtoReflect

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

func (*GetMacroResponse) Reset

func (x *GetMacroResponse) Reset()

func (*GetMacroResponse) String

func (x *GetMacroResponse) String() string

type GetUserByNameRequest

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

func (*GetUserByNameRequest) Descriptor deprecated

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

Deprecated: Use GetUserByNameRequest.ProtoReflect.Descriptor instead.

func (*GetUserByNameRequest) GetName

func (x *GetUserByNameRequest) GetName() string

func (*GetUserByNameRequest) ProtoMessage

func (*GetUserByNameRequest) ProtoMessage()

func (*GetUserByNameRequest) ProtoReflect

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

func (*GetUserByNameRequest) Reset

func (x *GetUserByNameRequest) Reset()

func (*GetUserByNameRequest) String

func (x *GetUserByNameRequest) String() string

type GetUserByNameResponse

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

func (*GetUserByNameResponse) Descriptor deprecated

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

Deprecated: Use GetUserByNameResponse.ProtoReflect.Descriptor instead.

func (*GetUserByNameResponse) GetId

func (x *GetUserByNameResponse) GetId() int64

func (*GetUserByNameResponse) GetName

func (x *GetUserByNameResponse) GetName() string

func (*GetUserByNameResponse) ProtoMessage

func (*GetUserByNameResponse) ProtoMessage()

func (*GetUserByNameResponse) ProtoReflect

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

func (*GetUserByNameResponse) Reset

func (x *GetUserByNameResponse) Reset()

func (*GetUserByNameResponse) String

func (x *GetUserByNameResponse) String() string

type GetUserKeyboardBindingRequest

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

func (*GetUserKeyboardBindingRequest) Descriptor deprecated

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

Deprecated: Use GetUserKeyboardBindingRequest.ProtoReflect.Descriptor instead.

func (*GetUserKeyboardBindingRequest) GetId

func (*GetUserKeyboardBindingRequest) ProtoMessage

func (*GetUserKeyboardBindingRequest) ProtoMessage()

func (*GetUserKeyboardBindingRequest) ProtoReflect

func (*GetUserKeyboardBindingRequest) Reset

func (x *GetUserKeyboardBindingRequest) Reset()

func (*GetUserKeyboardBindingRequest) String

type GetUserKeyboardBindingResponse

type GetUserKeyboardBindingResponse struct {
	Binding *UserKeyboardBinding `protobuf:"bytes,1,opt,name=binding,proto3" json:"binding,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserKeyboardBindingResponse) Descriptor deprecated

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

Deprecated: Use GetUserKeyboardBindingResponse.ProtoReflect.Descriptor instead.

func (*GetUserKeyboardBindingResponse) GetBinding

func (*GetUserKeyboardBindingResponse) ProtoMessage

func (*GetUserKeyboardBindingResponse) ProtoMessage()

func (*GetUserKeyboardBindingResponse) ProtoReflect

func (*GetUserKeyboardBindingResponse) Reset

func (x *GetUserKeyboardBindingResponse) Reset()

func (*GetUserKeyboardBindingResponse) String

type GetUserRequest

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

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetId

func (x *GetUserRequest) GetId() int64

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 {
	Id   int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserResponse) Descriptor deprecated

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

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) GetId

func (x *GetUserResponse) GetId() int64

func (*GetUserResponse) GetName

func (x *GetUserResponse) GetName() string

func (*GetUserResponse) 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 KeyboardBinding

type KeyboardBinding struct {
	KeyboardKey           string `protobuf:"bytes,1,opt,name=keyboardKey,proto3" json:"keyboardKey,omitempty"`
	EmulatorKey           string `protobuf:"bytes,2,opt,name=emulatorKey,proto3" json:"emulatorKey,omitempty"`
	KeyboardKeyTranslated string `protobuf:"bytes,3,opt,name=keyboardKeyTranslated,proto3" json:"keyboardKeyTranslated,omitempty"`
	EmulatorKeyTranslated string `protobuf:"bytes,4,opt,name=emulatorKeyTranslated,proto3" json:"emulatorKeyTranslated,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyboardBinding) Descriptor deprecated

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

Deprecated: Use KeyboardBinding.ProtoReflect.Descriptor instead.

func (*KeyboardBinding) GetEmulatorKey

func (x *KeyboardBinding) GetEmulatorKey() string

func (*KeyboardBinding) GetEmulatorKeyTranslated

func (x *KeyboardBinding) GetEmulatorKeyTranslated() string

func (*KeyboardBinding) GetKeyboardKey

func (x *KeyboardBinding) GetKeyboardKey() string

func (*KeyboardBinding) GetKeyboardKeyTranslated

func (x *KeyboardBinding) GetKeyboardKeyTranslated() string

func (*KeyboardBinding) ProtoMessage

func (*KeyboardBinding) ProtoMessage()

func (*KeyboardBinding) ProtoReflect

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

func (*KeyboardBinding) Reset

func (x *KeyboardBinding) Reset()

func (*KeyboardBinding) String

func (x *KeyboardBinding) String() string

type ListMacroRequest

type ListMacroRequest struct {
	UserId   int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	Page     int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int32 `protobuf:"varint,3,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMacroRequest) Descriptor deprecated

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

Deprecated: Use ListMacroRequest.ProtoReflect.Descriptor instead.

func (*ListMacroRequest) GetPage

func (x *ListMacroRequest) GetPage() int32

func (*ListMacroRequest) GetPageSize

func (x *ListMacroRequest) GetPageSize() int32

func (*ListMacroRequest) GetUserId

func (x *ListMacroRequest) GetUserId() int64

func (*ListMacroRequest) ProtoMessage

func (*ListMacroRequest) ProtoMessage()

func (*ListMacroRequest) ProtoReflect

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

func (*ListMacroRequest) Reset

func (x *ListMacroRequest) Reset()

func (*ListMacroRequest) String

func (x *ListMacroRequest) String() string

type ListMacroResponse

type ListMacroResponse struct {
	Macros []*Macro `protobuf:"bytes,1,rep,name=macros,proto3" json:"macros,omitempty"`
	Total  int32    `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMacroResponse) Descriptor deprecated

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

Deprecated: Use ListMacroResponse.ProtoReflect.Descriptor instead.

func (*ListMacroResponse) GetMacros

func (x *ListMacroResponse) GetMacros() []*Macro

func (*ListMacroResponse) GetTotal

func (x *ListMacroResponse) GetTotal() int32

func (*ListMacroResponse) ProtoMessage

func (*ListMacroResponse) ProtoMessage()

func (*ListMacroResponse) ProtoReflect

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

func (*ListMacroResponse) Reset

func (x *ListMacroResponse) Reset()

func (*ListMacroResponse) String

func (x *ListMacroResponse) String() string

type ListUserKeyboardBindingRequest

type ListUserKeyboardBindingRequest struct {
	UserId   int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	Page     int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int32 `protobuf:"varint,3,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserKeyboardBindingRequest) Descriptor deprecated

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

Deprecated: Use ListUserKeyboardBindingRequest.ProtoReflect.Descriptor instead.

func (*ListUserKeyboardBindingRequest) GetPage

func (*ListUserKeyboardBindingRequest) GetPageSize

func (x *ListUserKeyboardBindingRequest) GetPageSize() int32

func (*ListUserKeyboardBindingRequest) GetUserId

func (x *ListUserKeyboardBindingRequest) GetUserId() int64

func (*ListUserKeyboardBindingRequest) ProtoMessage

func (*ListUserKeyboardBindingRequest) ProtoMessage()

func (*ListUserKeyboardBindingRequest) ProtoReflect

func (*ListUserKeyboardBindingRequest) Reset

func (x *ListUserKeyboardBindingRequest) Reset()

func (*ListUserKeyboardBindingRequest) String

type ListUserKeyboardBindingResponse

type ListUserKeyboardBindingResponse struct {
	Bindings []*UserKeyboardBinding `protobuf:"bytes,1,rep,name=bindings,proto3" json:"bindings,omitempty"`
	Total    int32                  `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserKeyboardBindingResponse) Descriptor deprecated

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

Deprecated: Use ListUserKeyboardBindingResponse.ProtoReflect.Descriptor instead.

func (*ListUserKeyboardBindingResponse) GetBindings

func (*ListUserKeyboardBindingResponse) GetTotal

func (x *ListUserKeyboardBindingResponse) GetTotal() int32

func (*ListUserKeyboardBindingResponse) ProtoMessage

func (*ListUserKeyboardBindingResponse) ProtoMessage()

func (*ListUserKeyboardBindingResponse) ProtoReflect

func (*ListUserKeyboardBindingResponse) Reset

func (*ListUserKeyboardBindingResponse) String

type Macro

type Macro struct {
	Id          int64          `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId      int64          `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
	Name        string         `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	KeyboardKey string         `protobuf:"bytes,4,opt,name=keyboardKey,proto3" json:"keyboardKey,omitempty"`
	Actions     []*MacroAction `protobuf:"bytes,5,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

func (*Macro) Descriptor deprecated

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

Deprecated: Use Macro.ProtoReflect.Descriptor instead.

func (*Macro) GetActions

func (x *Macro) GetActions() []*MacroAction

func (*Macro) GetId

func (x *Macro) GetId() int64

func (*Macro) GetKeyboardKey

func (x *Macro) GetKeyboardKey() string

func (*Macro) GetName

func (x *Macro) GetName() string

func (*Macro) GetUserId

func (x *Macro) GetUserId() int64

func (*Macro) ProtoMessage

func (*Macro) ProtoMessage()

func (*Macro) ProtoReflect

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

func (*Macro) Reset

func (x *Macro) Reset()

func (*Macro) String

func (x *Macro) String() string

type MacroAction

type MacroAction struct {
	EmulatorKey  string `protobuf:"bytes,1,opt,name=emulatorKey,proto3" json:"emulatorKey,omitempty"`
	ReleaseDelay int64  `protobuf:"varint,2,opt,name=releaseDelay,proto3" json:"releaseDelay,omitempty"`
	// contains filtered or unexported fields
}

func (*MacroAction) Descriptor deprecated

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

Deprecated: Use MacroAction.ProtoReflect.Descriptor instead.

func (*MacroAction) GetEmulatorKey

func (x *MacroAction) GetEmulatorKey() string

func (*MacroAction) GetReleaseDelay

func (x *MacroAction) GetReleaseDelay() int64

func (*MacroAction) ProtoMessage

func (*MacroAction) ProtoMessage()

func (*MacroAction) ProtoReflect

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

func (*MacroAction) Reset

func (x *MacroAction) Reset()

func (*MacroAction) String

func (x *MacroAction) String() string

type UnimplementedUserServer

type UnimplementedUserServer struct{}

UnimplementedUserServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedUserServer) CreateMacro

func (UnimplementedUserServer) CreateUser

func (UnimplementedUserServer) DeleteMacro

func (UnimplementedUserServer) GetMacro

func (UnimplementedUserServer) GetUser

func (UnimplementedUserServer) GetUserByName

func (UnimplementedUserServer) ListMacro

func (UnimplementedUserServer) UpdateUser

func (UnimplementedUserServer) VerifyPassword

type UnsafeUserServer

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

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

type UpdateUserKeyboardBindingRequest

type UpdateUserKeyboardBindingRequest struct {
	Id       int64              `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId   int64              `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
	Name     string             `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Bindings []*KeyboardBinding `protobuf:"bytes,4,rep,name=bindings,proto3" json:"bindings,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserKeyboardBindingRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserKeyboardBindingRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserKeyboardBindingRequest) GetBindings

func (*UpdateUserKeyboardBindingRequest) GetId

func (*UpdateUserKeyboardBindingRequest) GetName

func (*UpdateUserKeyboardBindingRequest) GetUserId

func (x *UpdateUserKeyboardBindingRequest) GetUserId() int64

func (*UpdateUserKeyboardBindingRequest) ProtoMessage

func (*UpdateUserKeyboardBindingRequest) ProtoMessage()

func (*UpdateUserKeyboardBindingRequest) ProtoReflect

func (*UpdateUserKeyboardBindingRequest) Reset

func (*UpdateUserKeyboardBindingRequest) String

type UpdateUserKeyboardBindingResponse

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

func (*UpdateUserKeyboardBindingResponse) Descriptor deprecated

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

Deprecated: Use UpdateUserKeyboardBindingResponse.ProtoReflect.Descriptor instead.

func (*UpdateUserKeyboardBindingResponse) ProtoMessage

func (*UpdateUserKeyboardBindingResponse) ProtoMessage()

func (*UpdateUserKeyboardBindingResponse) ProtoReflect

func (*UpdateUserKeyboardBindingResponse) Reset

func (*UpdateUserKeyboardBindingResponse) String

type UpdateUserRequest

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

func (*UpdateUserRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetId

func (x *UpdateUserRequest) GetId() int64

func (*UpdateUserRequest) GetName

func (x *UpdateUserRequest) GetName() string

func (*UpdateUserRequest) GetPassword

func (x *UpdateUserRequest) GetPassword() 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 {
	Id   int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserResponse) Descriptor deprecated

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

Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.

func (*UpdateUserResponse) GetId

func (x *UpdateUserResponse) GetId() int64

func (*UpdateUserResponse) GetName

func (x *UpdateUserResponse) GetName() string

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 UserClient

type UserClient interface {
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error)
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
	GetUserByName(ctx context.Context, in *GetUserByNameRequest, opts ...grpc.CallOption) (*GetUserByNameResponse, error)
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error)
	VerifyPassword(ctx context.Context, in *VerifyPasswordRequest, opts ...grpc.CallOption) (*VerifyPasswordResponse, error)
	CreateUserKeyboardBinding(ctx context.Context, in *CreateUserKeyboardBindingRequest, opts ...grpc.CallOption) (*CreateUserKeyboardBindingResponse, error)
	ListUserKeyboardBinding(ctx context.Context, in *ListUserKeyboardBindingRequest, opts ...grpc.CallOption) (*ListUserKeyboardBindingResponse, error)
	GetUserKeyboardBinding(ctx context.Context, in *GetUserKeyboardBindingRequest, opts ...grpc.CallOption) (*GetUserKeyboardBindingResponse, error)
	UpdateUserKeyboardBinding(ctx context.Context, in *UpdateUserKeyboardBindingRequest, opts ...grpc.CallOption) (*UpdateUserKeyboardBindingResponse, error)
	DeleteUserKeyboardBinding(ctx context.Context, in *DeleteUserKeyboardBindingRequest, opts ...grpc.CallOption) (*DeleteUserKeyboardBindingResponse, error)
	CreateMacro(ctx context.Context, in *CreateMacroRequest, opts ...grpc.CallOption) (*CreateMacroResponse, error)
	GetMacro(ctx context.Context, in *GetMacroRequest, opts ...grpc.CallOption) (*GetMacroResponse, error)
	ListMacro(ctx context.Context, in *ListMacroRequest, opts ...grpc.CallOption) (*ListMacroResponse, error)
	DeleteMacro(ctx context.Context, in *DeleteMacroRequest, opts ...grpc.CallOption) (*DeleteMacroResponse, error)
}

UserClient is the client API for User 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 NewUserClient

func NewUserClient(cc grpc.ClientConnInterface) UserClient

type UserKeyboardBinding

type UserKeyboardBinding struct {
	Id       int64              `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId   int64              `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
	Name     string             `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Bindings []*KeyboardBinding `protobuf:"bytes,4,rep,name=bindings,proto3" json:"bindings,omitempty"`
	// contains filtered or unexported fields
}

func (*UserKeyboardBinding) Descriptor deprecated

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

Deprecated: Use UserKeyboardBinding.ProtoReflect.Descriptor instead.

func (*UserKeyboardBinding) GetBindings

func (x *UserKeyboardBinding) GetBindings() []*KeyboardBinding

func (*UserKeyboardBinding) GetId

func (x *UserKeyboardBinding) GetId() int64

func (*UserKeyboardBinding) GetName

func (x *UserKeyboardBinding) GetName() string

func (*UserKeyboardBinding) GetUserId

func (x *UserKeyboardBinding) GetUserId() int64

func (*UserKeyboardBinding) ProtoMessage

func (*UserKeyboardBinding) ProtoMessage()

func (*UserKeyboardBinding) ProtoReflect

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

func (*UserKeyboardBinding) Reset

func (x *UserKeyboardBinding) Reset()

func (*UserKeyboardBinding) String

func (x *UserKeyboardBinding) String() string

type UserServer

UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility.

type UserServiceErrorReason

type UserServiceErrorReason int32
const (
	UserServiceErrorReason_UNKNOWN_ERROR                  UserServiceErrorReason = 0
	UserServiceErrorReason_USERNAME_CONFLICT              UserServiceErrorReason = 2
	UserServiceErrorReason_USER_NOT_FOUND                 UserServiceErrorReason = 3
	UserServiceErrorReason_VERIFY_PASSWORD_FAILED         UserServiceErrorReason = 4
	UserServiceErrorReason_CREATE_KEYBOARD_BINDING_FAILED UserServiceErrorReason = 5
	UserServiceErrorReason_UPDATE_KEYBOARD_BINDING_FAILED UserServiceErrorReason = 6
	UserServiceErrorReason_DELETE_KEYBOARD_BINDING_FAILED UserServiceErrorReason = 7
	UserServiceErrorReason_CREATE_MACRO_FAILED            UserServiceErrorReason = 8
	UserServiceErrorReason_GET_MACRO_FAILED               UserServiceErrorReason = 9
	UserServiceErrorReason_DELETE_MACRO_FAILED            UserServiceErrorReason = 10
)

func (UserServiceErrorReason) Descriptor

func (UserServiceErrorReason) Enum

func (UserServiceErrorReason) EnumDescriptor deprecated

func (UserServiceErrorReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserServiceErrorReason.Descriptor instead.

func (UserServiceErrorReason) Number

func (UserServiceErrorReason) String

func (x UserServiceErrorReason) String() string

func (UserServiceErrorReason) Type

type VerifyPasswordRequest

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

func (*VerifyPasswordRequest) Descriptor deprecated

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

Deprecated: Use VerifyPasswordRequest.ProtoReflect.Descriptor instead.

func (*VerifyPasswordRequest) GetName

func (x *VerifyPasswordRequest) GetName() string

func (*VerifyPasswordRequest) GetPassword

func (x *VerifyPasswordRequest) GetPassword() string

func (*VerifyPasswordRequest) ProtoMessage

func (*VerifyPasswordRequest) ProtoMessage()

func (*VerifyPasswordRequest) ProtoReflect

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

func (*VerifyPasswordRequest) Reset

func (x *VerifyPasswordRequest) Reset()

func (*VerifyPasswordRequest) String

func (x *VerifyPasswordRequest) String() string

type VerifyPasswordResponse

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

func (*VerifyPasswordResponse) Descriptor deprecated

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

Deprecated: Use VerifyPasswordResponse.ProtoReflect.Descriptor instead.

func (*VerifyPasswordResponse) ProtoMessage

func (*VerifyPasswordResponse) ProtoMessage()

func (*VerifyPasswordResponse) ProtoReflect

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

func (*VerifyPasswordResponse) Reset

func (x *VerifyPasswordResponse) Reset()

func (*VerifyPasswordResponse) String

func (x *VerifyPasswordResponse) String() string

Jump to

Keyboard shortcuts

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