userV1

package
v0.0.0-...-34841a2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package userV1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	UserService_GetUser_FullMethodName         = "/user.v1.UserService/GetUser"
	UserService_GetUserInfo_FullMethodName     = "/user.v1.UserService/GetUserInfo"
	UserService_UpdateUser_FullMethodName      = "/user.v1.UserService/UpdateUser"
	UserService_UpdatePassword_FullMethodName  = "/user.v1.UserService/UpdatePassword"
	UserService_CreateGroup_FullMethodName     = "/user.v1.UserService/CreateGroup"
	UserService_GetGroup_FullMethodName        = "/user.v1.UserService/GetGroup"
	UserService_UpdateGroup_FullMethodName     = "/user.v1.UserService/UpdateGroup"
	UserService_GroupAddUser_FullMethodName    = "/user.v1.UserService/GroupAddUser"
	UserService_GroupRemoveUser_FullMethodName = "/user.v1.UserService/GroupRemoveUser"
	UserService_GroupUserUpdate_FullMethodName = "/user.v1.UserService/GroupUserUpdate"
	UserService_GetUserPassKey_FullMethodName  = "/user.v1.UserService/GetUserPassKey"
)

Variables

View Source
var File_user_v1_user_proto protoreflect.FileDescriptor
View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "user.v1.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetUser",
			Handler:    _UserService_GetUser_Handler,
		},
		{
			MethodName: "GetUserInfo",
			Handler:    _UserService_GetUserInfo_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _UserService_UpdateUser_Handler,
		},
		{
			MethodName: "UpdatePassword",
			Handler:    _UserService_UpdatePassword_Handler,
		},
		{
			MethodName: "CreateGroup",
			Handler:    _UserService_CreateGroup_Handler,
		},
		{
			MethodName: "GetGroup",
			Handler:    _UserService_GetGroup_Handler,
		},
		{
			MethodName: "UpdateGroup",
			Handler:    _UserService_UpdateGroup_Handler,
		},
		{
			MethodName: "GroupAddUser",
			Handler:    _UserService_GroupAddUser_Handler,
		},
		{
			MethodName: "GroupRemoveUser",
			Handler:    _UserService_GroupRemoveUser_Handler,
		},
		{
			MethodName: "GroupUserUpdate",
			Handler:    _UserService_GroupUserUpdate_Handler,
		},
		{
			MethodName: "GetUserPassKey",
			Handler:    _UserService_GetUserPassKey_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "user/v1/user.proto",
}

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

Functions

func RegisterUserServiceHandler

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

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

func RegisterUserServiceHandlerClient

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

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

func RegisterUserServiceHandlerFromEndpoint

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

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

func RegisterUserServiceHandlerServer

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

RegisterUserServiceHandlerServer registers the http handlers for service UserService to "mux". UnaryRPC :call UserServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type CreateGroupRequest

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

func (*CreateGroupRequest) Descriptor deprecated

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

Deprecated: Use CreateGroupRequest.ProtoReflect.Descriptor instead.

func (*CreateGroupRequest) GetGroup

func (x *CreateGroupRequest) GetGroup() *Group

func (*CreateGroupRequest) ProtoMessage

func (*CreateGroupRequest) ProtoMessage()

func (*CreateGroupRequest) ProtoReflect

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

func (*CreateGroupRequest) Reset

func (x *CreateGroupRequest) Reset()

func (*CreateGroupRequest) String

func (x *CreateGroupRequest) String() string

type CreateGroupResponse

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

func (*CreateGroupResponse) Descriptor deprecated

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

Deprecated: Use CreateGroupResponse.ProtoReflect.Descriptor instead.

func (*CreateGroupResponse) ProtoMessage

func (*CreateGroupResponse) ProtoMessage()

func (*CreateGroupResponse) ProtoReflect

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

func (*CreateGroupResponse) Reset

func (x *CreateGroupResponse) Reset()

func (*CreateGroupResponse) String

func (x *CreateGroupResponse) String() string

type GetGroupRequest

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

func (*GetGroupRequest) Descriptor deprecated

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

Deprecated: Use GetGroupRequest.ProtoReflect.Descriptor instead.

func (*GetGroupRequest) GetId

func (x *GetGroupRequest) GetId() string

func (*GetGroupRequest) ProtoMessage

func (*GetGroupRequest) ProtoMessage()

func (*GetGroupRequest) ProtoReflect

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

func (*GetGroupRequest) Reset

func (x *GetGroupRequest) Reset()

func (*GetGroupRequest) String

func (x *GetGroupRequest) String() string

type GetGroupResponse

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

func (*GetGroupResponse) Descriptor deprecated

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

Deprecated: Use GetGroupResponse.ProtoReflect.Descriptor instead.

func (*GetGroupResponse) GetGroup

func (x *GetGroupResponse) GetGroup() *Group

func (*GetGroupResponse) ProtoMessage

func (*GetGroupResponse) ProtoMessage()

func (*GetGroupResponse) ProtoReflect

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

func (*GetGroupResponse) Reset

func (x *GetGroupResponse) Reset()

func (*GetGroupResponse) String

func (x *GetGroupResponse) String() string

type GetUserInfoRequest

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

func (*GetUserInfoRequest) Descriptor deprecated

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

Deprecated: Use GetUserInfoRequest.ProtoReflect.Descriptor instead.

func (*GetUserInfoRequest) GetId

func (x *GetUserInfoRequest) GetId() string

func (*GetUserInfoRequest) ProtoMessage

func (*GetUserInfoRequest) ProtoMessage()

func (*GetUserInfoRequest) ProtoReflect

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

func (*GetUserInfoRequest) Reset

func (x *GetUserInfoRequest) Reset()

func (*GetUserInfoRequest) String

func (x *GetUserInfoRequest) String() string

type GetUserInfoResponse

type GetUserInfoResponse 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"`
	Download          int32  `protobuf:"varint,3,opt,name=download,proto3" json:"download,omitempty"`
	Upload            int32  `protobuf:"varint,4,opt,name=upload,proto3" json:"upload,omitempty"`
	TorrentPublished  int32  `protobuf:"varint,5,opt,name=torrentPublished,proto3" json:"torrentPublished,omitempty"`
	TorrentDownloaded int32  `protobuf:"varint,6,opt,name=torrentDownloaded,proto3" json:"torrentDownloaded,omitempty"`
	TorrentSeeding    int32  `protobuf:"varint,7,opt,name=torrentSeeding,proto3" json:"torrentSeeding,omitempty"`
	Key               string `protobuf:"bytes,8,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserInfoResponse) Descriptor deprecated

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

Deprecated: Use GetUserInfoResponse.ProtoReflect.Descriptor instead.

func (*GetUserInfoResponse) GetDownload

func (x *GetUserInfoResponse) GetDownload() int32

func (*GetUserInfoResponse) GetEmail

func (x *GetUserInfoResponse) GetEmail() string

func (*GetUserInfoResponse) GetKey

func (x *GetUserInfoResponse) GetKey() string

func (*GetUserInfoResponse) GetName

func (x *GetUserInfoResponse) GetName() string

func (*GetUserInfoResponse) GetTorrentDownloaded

func (x *GetUserInfoResponse) GetTorrentDownloaded() int32

func (*GetUserInfoResponse) GetTorrentPublished

func (x *GetUserInfoResponse) GetTorrentPublished() int32

func (*GetUserInfoResponse) GetTorrentSeeding

func (x *GetUserInfoResponse) GetTorrentSeeding() int32

func (*GetUserInfoResponse) GetUpload

func (x *GetUserInfoResponse) GetUpload() int32

func (*GetUserInfoResponse) ProtoMessage

func (*GetUserInfoResponse) ProtoMessage()

func (*GetUserInfoResponse) ProtoReflect

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

func (*GetUserInfoResponse) Reset

func (x *GetUserInfoResponse) Reset()

func (*GetUserInfoResponse) String

func (x *GetUserInfoResponse) String() string

type GetUserPassKeyRequest

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

func (*GetUserPassKeyRequest) Descriptor deprecated

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

Deprecated: Use GetUserPassKeyRequest.ProtoReflect.Descriptor instead.

func (*GetUserPassKeyRequest) GetId

func (x *GetUserPassKeyRequest) GetId() string

func (*GetUserPassKeyRequest) ProtoMessage

func (*GetUserPassKeyRequest) ProtoMessage()

func (*GetUserPassKeyRequest) ProtoReflect

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

func (*GetUserPassKeyRequest) Reset

func (x *GetUserPassKeyRequest) Reset()

func (*GetUserPassKeyRequest) String

func (x *GetUserPassKeyRequest) String() string

type GetUserPassKeyResponse

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

func (*GetUserPassKeyResponse) Descriptor deprecated

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

Deprecated: Use GetUserPassKeyResponse.ProtoReflect.Descriptor instead.

func (*GetUserPassKeyResponse) GetPassKey

func (x *GetUserPassKeyResponse) GetPassKey() string

func (*GetUserPassKeyResponse) ProtoMessage

func (*GetUserPassKeyResponse) ProtoMessage()

func (*GetUserPassKeyResponse) ProtoReflect

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

func (*GetUserPassKeyResponse) Reset

func (x *GetUserPassKeyResponse) Reset()

func (*GetUserPassKeyResponse) String

func (x *GetUserPassKeyResponse) String() string

type GetUserRequest

type GetUserRequest struct {
	Id string `protobuf:"bytes,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() 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 {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserResponse) Descriptor deprecated

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

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) GetUser

func (x *GetUserResponse) GetUser() *User

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 Group

type Group struct {
	Id          string           `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string           `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description string           `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	MetaData    []*GroupMetaData `protobuf:"bytes,4,rep,name=metaData,proto3" json:"metaData,omitempty"`
	// contains filtered or unexported fields
}

GROUP

func (*Group) Descriptor deprecated

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

Deprecated: Use Group.ProtoReflect.Descriptor instead.

func (*Group) GetDescription

func (x *Group) GetDescription() string

func (*Group) GetId

func (x *Group) GetId() string

func (*Group) GetMetaData

func (x *Group) GetMetaData() []*GroupMetaData

func (*Group) GetName

func (x *Group) GetName() string

func (*Group) ProtoMessage

func (*Group) ProtoMessage()

func (*Group) ProtoReflect

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

func (*Group) Reset

func (x *Group) Reset()

func (*Group) String

func (x *Group) String() string

type GroupAddUserRequest

type GroupAddUserRequest struct {
	UserId   string           `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	GroupId  string           `protobuf:"bytes,2,opt,name=groupId,proto3" json:"groupId,omitempty"`
	MetaData []*GroupMetaData `protobuf:"bytes,3,rep,name=metaData,proto3" json:"metaData,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupAddUserRequest) Descriptor deprecated

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

Deprecated: Use GroupAddUserRequest.ProtoReflect.Descriptor instead.

func (*GroupAddUserRequest) GetGroupId

func (x *GroupAddUserRequest) GetGroupId() string

func (*GroupAddUserRequest) GetMetaData

func (x *GroupAddUserRequest) GetMetaData() []*GroupMetaData

func (*GroupAddUserRequest) GetUserId

func (x *GroupAddUserRequest) GetUserId() string

func (*GroupAddUserRequest) ProtoMessage

func (*GroupAddUserRequest) ProtoMessage()

func (*GroupAddUserRequest) ProtoReflect

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

func (*GroupAddUserRequest) Reset

func (x *GroupAddUserRequest) Reset()

func (*GroupAddUserRequest) String

func (x *GroupAddUserRequest) String() string

type GroupAddUserResponse

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

func (*GroupAddUserResponse) Descriptor deprecated

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

Deprecated: Use GroupAddUserResponse.ProtoReflect.Descriptor instead.

func (*GroupAddUserResponse) ProtoMessage

func (*GroupAddUserResponse) ProtoMessage()

func (*GroupAddUserResponse) ProtoReflect

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

func (*GroupAddUserResponse) Reset

func (x *GroupAddUserResponse) Reset()

func (*GroupAddUserResponse) String

func (x *GroupAddUserResponse) String() string

type GroupMetaData

type GroupMetaData struct {
	GroupMetaDataOriginalID string `protobuf:"bytes,1,opt,name=groupMetaDataOriginalID,proto3" json:"groupMetaDataOriginalID,omitempty"`
	Id                      string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Key                     string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	Order                   int32  `protobuf:"varint,4,opt,name=order,proto3" json:"order,omitempty"`
	Description             string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	Type                    string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"`
	Value                   string `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"`
	DefaultValue            string `protobuf:"bytes,8,opt,name=defaultValue,proto3" json:"defaultValue,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupMetaData) Descriptor deprecated

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

Deprecated: Use GroupMetaData.ProtoReflect.Descriptor instead.

func (*GroupMetaData) GetDefaultValue

func (x *GroupMetaData) GetDefaultValue() string

func (*GroupMetaData) GetDescription

func (x *GroupMetaData) GetDescription() string

func (*GroupMetaData) GetGroupMetaDataOriginalID

func (x *GroupMetaData) GetGroupMetaDataOriginalID() string

func (*GroupMetaData) GetId

func (x *GroupMetaData) GetId() string

func (*GroupMetaData) GetKey

func (x *GroupMetaData) GetKey() string

func (*GroupMetaData) GetOrder

func (x *GroupMetaData) GetOrder() int32

func (*GroupMetaData) GetType

func (x *GroupMetaData) GetType() string

func (*GroupMetaData) GetValue

func (x *GroupMetaData) GetValue() string

func (*GroupMetaData) ProtoMessage

func (*GroupMetaData) ProtoMessage()

func (*GroupMetaData) ProtoReflect

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

func (*GroupMetaData) Reset

func (x *GroupMetaData) Reset()

func (*GroupMetaData) String

func (x *GroupMetaData) String() string

type GroupRemoveUserRequest

type GroupRemoveUserRequest struct {
	UserId  string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	GroupId string `protobuf:"bytes,2,opt,name=groupId,proto3" json:"groupId,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupRemoveUserRequest) Descriptor deprecated

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

Deprecated: Use GroupRemoveUserRequest.ProtoReflect.Descriptor instead.

func (*GroupRemoveUserRequest) GetGroupId

func (x *GroupRemoveUserRequest) GetGroupId() string

func (*GroupRemoveUserRequest) GetUserId

func (x *GroupRemoveUserRequest) GetUserId() string

func (*GroupRemoveUserRequest) ProtoMessage

func (*GroupRemoveUserRequest) ProtoMessage()

func (*GroupRemoveUserRequest) ProtoReflect

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

func (*GroupRemoveUserRequest) Reset

func (x *GroupRemoveUserRequest) Reset()

func (*GroupRemoveUserRequest) String

func (x *GroupRemoveUserRequest) String() string

type GroupRemoveUserResponse

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

func (*GroupRemoveUserResponse) Descriptor deprecated

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

Deprecated: Use GroupRemoveUserResponse.ProtoReflect.Descriptor instead.

func (*GroupRemoveUserResponse) ProtoMessage

func (*GroupRemoveUserResponse) ProtoMessage()

func (*GroupRemoveUserResponse) ProtoReflect

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

func (*GroupRemoveUserResponse) Reset

func (x *GroupRemoveUserResponse) Reset()

func (*GroupRemoveUserResponse) String

func (x *GroupRemoveUserResponse) String() string

type GroupUserUpdateRequest

type GroupUserUpdateRequest struct {
	UserId   string           `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	GroupId  string           `protobuf:"bytes,2,opt,name=groupId,proto3" json:"groupId,omitempty"`
	MetaData []*GroupMetaData `protobuf:"bytes,3,rep,name=metaData,proto3" json:"metaData,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupUserUpdateRequest) Descriptor deprecated

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

Deprecated: Use GroupUserUpdateRequest.ProtoReflect.Descriptor instead.

func (*GroupUserUpdateRequest) GetGroupId

func (x *GroupUserUpdateRequest) GetGroupId() string

func (*GroupUserUpdateRequest) GetMetaData

func (x *GroupUserUpdateRequest) GetMetaData() []*GroupMetaData

func (*GroupUserUpdateRequest) GetUserId

func (x *GroupUserUpdateRequest) GetUserId() string

func (*GroupUserUpdateRequest) ProtoMessage

func (*GroupUserUpdateRequest) ProtoMessage()

func (*GroupUserUpdateRequest) ProtoReflect

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

func (*GroupUserUpdateRequest) Reset

func (x *GroupUserUpdateRequest) Reset()

func (*GroupUserUpdateRequest) String

func (x *GroupUserUpdateRequest) String() string

type GroupUserUpdateResponse

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

func (*GroupUserUpdateResponse) Descriptor deprecated

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

Deprecated: Use GroupUserUpdateResponse.ProtoReflect.Descriptor instead.

func (*GroupUserUpdateResponse) ProtoMessage

func (*GroupUserUpdateResponse) ProtoMessage()

func (*GroupUserUpdateResponse) ProtoReflect

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

func (*GroupUserUpdateResponse) Reset

func (x *GroupUserUpdateResponse) Reset()

func (*GroupUserUpdateResponse) String

func (x *GroupUserUpdateResponse) String() string

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct{}

UnimplementedUserServiceServer 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 (UnimplementedUserServiceServer) CreateGroup

func (UnimplementedUserServiceServer) GetGroup

func (UnimplementedUserServiceServer) GetUser

func (UnimplementedUserServiceServer) GetUserInfo

func (UnimplementedUserServiceServer) GetUserPassKey

func (UnimplementedUserServiceServer) GroupAddUser

func (UnimplementedUserServiceServer) GroupRemoveUser

func (UnimplementedUserServiceServer) GroupUserUpdate

func (UnimplementedUserServiceServer) UpdateGroup

func (UnimplementedUserServiceServer) UpdatePassword

func (UnimplementedUserServiceServer) UpdateUser

type UnsafeUserServiceServer

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

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

type UpdateGroupRequest

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

func (*UpdateGroupRequest) Descriptor deprecated

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

Deprecated: Use UpdateGroupRequest.ProtoReflect.Descriptor instead.

func (*UpdateGroupRequest) GetGroup

func (x *UpdateGroupRequest) GetGroup() *Group

func (*UpdateGroupRequest) ProtoMessage

func (*UpdateGroupRequest) ProtoMessage()

func (*UpdateGroupRequest) ProtoReflect

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

func (*UpdateGroupRequest) Reset

func (x *UpdateGroupRequest) Reset()

func (*UpdateGroupRequest) String

func (x *UpdateGroupRequest) String() string

type UpdateGroupResponse

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

func (*UpdateGroupResponse) Descriptor deprecated

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

Deprecated: Use UpdateGroupResponse.ProtoReflect.Descriptor instead.

func (*UpdateGroupResponse) ProtoMessage

func (*UpdateGroupResponse) ProtoMessage()

func (*UpdateGroupResponse) ProtoReflect

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

func (*UpdateGroupResponse) Reset

func (x *UpdateGroupResponse) Reset()

func (*UpdateGroupResponse) String

func (x *UpdateGroupResponse) String() string

type UpdatePasswordRequest

type UpdatePasswordRequest struct {
	OldPassword string `protobuf:"bytes,1,opt,name=oldPassword,proto3" json:"oldPassword,omitempty"`
	NewPassword string `protobuf:"bytes,2,opt,name=newPassword,proto3" json:"newPassword,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePasswordRequest) Descriptor deprecated

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

Deprecated: Use UpdatePasswordRequest.ProtoReflect.Descriptor instead.

func (*UpdatePasswordRequest) GetNewPassword

func (x *UpdatePasswordRequest) GetNewPassword() string

func (*UpdatePasswordRequest) GetOldPassword

func (x *UpdatePasswordRequest) GetOldPassword() string

func (*UpdatePasswordRequest) ProtoMessage

func (*UpdatePasswordRequest) ProtoMessage()

func (*UpdatePasswordRequest) ProtoReflect

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

func (*UpdatePasswordRequest) Reset

func (x *UpdatePasswordRequest) Reset()

func (*UpdatePasswordRequest) String

func (x *UpdatePasswordRequest) String() string

type UpdatePasswordResponse

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

func (*UpdatePasswordResponse) Descriptor deprecated

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

Deprecated: Use UpdatePasswordResponse.ProtoReflect.Descriptor instead.

func (*UpdatePasswordResponse) ProtoMessage

func (*UpdatePasswordResponse) ProtoMessage()

func (*UpdatePasswordResponse) ProtoReflect

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

func (*UpdatePasswordResponse) Reset

func (x *UpdatePasswordResponse) Reset()

func (*UpdatePasswordResponse) String

func (x *UpdatePasswordResponse) String() string

type UpdateUserRequest

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

func (*UpdateUserRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetUser

func (x *UpdateUserRequest) GetUser() *User

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 {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserResponse) Descriptor deprecated

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

Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.

func (*UpdateUserResponse) GetUser

func (x *UpdateUserResponse) GetUser() *User

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 User

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

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetId

func (x *User) GetId() string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetRole

func (x *User) GetRole() string

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

type UserServiceClient

UserServiceClient is the client API for UserService service.

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

type UserServiceServer

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

Jump to

Keyboard shortcuts

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