usermgmtpb

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_usermgmt_usermgmtpb_usermgmtservice_proto protoreflect.FileDescriptor
View Source
var UserMgmtService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "usermgmtpb.UserMgmtService",
	HandlerType: (*UserMgmtServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateUser",
			Handler:    _UserMgmtService_CreateUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "usermgmt/usermgmtpb/usermgmtservice.proto",
}

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

Functions

func RegisterUserMgmtServiceServer

func RegisterUserMgmtServiceServer(s grpc.ServiceRegistrar, srv UserMgmtServiceServer)

Types

type CreateUserRequest

type CreateUserRequest struct {
	NewUser *NewUser `protobuf:"bytes,1,opt,name=new_user,json=newUser,proto3" json:"new_user,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRequest) Descriptor deprecated

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

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetNewUser

func (x *CreateUserRequest) GetNewUser() *NewUser

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

func (*CreateUserResponse) Descriptor deprecated

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

Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.

func (*CreateUserResponse) GetUser

func (x *CreateUserResponse) GetUser() *User

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 NewUser

type NewUser 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"`
	Roles           []string `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"`
	Password        string   `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	PasswordConfirm string   `protobuf:"bytes,5,opt,name=password_confirm,json=passwordConfirm,proto3" json:"password_confirm,omitempty"`
	// contains filtered or unexported fields
}

func (*NewUser) Descriptor deprecated

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

Deprecated: Use NewUser.ProtoReflect.Descriptor instead.

func (*NewUser) GetEmail

func (x *NewUser) GetEmail() string

func (*NewUser) GetName

func (x *NewUser) GetName() string

func (*NewUser) GetPassword

func (x *NewUser) GetPassword() string

func (*NewUser) GetPasswordConfirm

func (x *NewUser) GetPasswordConfirm() string

func (*NewUser) GetRoles

func (x *NewUser) GetRoles() []string

func (*NewUser) ProtoMessage

func (*NewUser) ProtoMessage()

func (*NewUser) ProtoReflect

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

func (*NewUser) Reset

func (x *NewUser) Reset()

func (*NewUser) String

func (x *NewUser) String() string

type UnimplementedUserMgmtServiceServer

type UnimplementedUserMgmtServiceServer struct {
}

UnimplementedUserMgmtServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserMgmtServiceServer) CreateUser

type UnsafeUserMgmtServiceServer

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

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

type User

type User 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"`
	Email        string                 `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Roles        []string               `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"`
	PasswordHash []byte                 `protobuf:"bytes,5,opt,name=password_hash,json=passwordHash,proto3" json:"password_hash,omitempty"`
	DateCreated  *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=date_created,json=dateCreated,proto3" json:"date_created,omitempty"`
	DateUpdated  *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=date_updated,json=dateUpdated,proto3" json:"date_updated,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetDateCreated

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

func (*User) GetDateUpdated

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

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetPasswordHash

func (x *User) GetPasswordHash() []byte

func (*User) GetRoles

func (x *User) GetRoles() []string

func (*User) GetUuid

func (x *User) GetUuid() 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 UserMgmtServiceClient

type UserMgmtServiceClient interface {
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error)
}

UserMgmtServiceClient is the client API for UserMgmtService 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 UserMgmtServiceServer

type UserMgmtServiceServer interface {
	CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
	// contains filtered or unexported methods
}

UserMgmtServiceServer is the server API for UserMgmtService service. All implementations must embed UnimplementedUserMgmtServiceServer for forward compatibility

Jump to

Keyboard shortcuts

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