v1

package
v0.0.0-...-7bafd44 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	User_FetchUserInfo_FullMethodName  = "/user.v1.User/FetchUserInfo"
	User_RemoveUserInfo_FullMethodName = "/user.v1.User/RemoveUserInfo"
	User_CreateUserInfo_FullMethodName = "/user.v1.User/CreateUserInfo"
	User_UpdateUserInfo_FullMethodName = "/user.v1.User/UpdateUserInfo"
)
View Source
const (
	HealthCheck_HealthCheck_FullMethodName = "/user.v1.HealthCheck/HealthCheck"
)
View Source
const OperationHealthCheckHealthCheck = "/user.v1.HealthCheck/HealthCheck"
View Source
const OperationUserCreateUserInfo = "/user.v1.User/CreateUserInfo"
View Source
const OperationUserFetchUserInfo = "/user.v1.User/FetchUserInfo"
View Source
const OperationUserRemoveUserInfo = "/user.v1.User/RemoveUserInfo"
View Source
const OperationUserUpdateUserInfo = "/user.v1.User/UpdateUserInfo"

Variables

View Source
var File_user_v1_user_proto protoreflect.FileDescriptor
View Source
var HealthCheck_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "user.v1.HealthCheck",
	HandlerType: (*HealthCheckServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "HealthCheck",
			Handler:    _HealthCheck_HealthCheck_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "user/v1/user.proto",
}

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

View Source
var User_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "user.v1.User",
	HandlerType: (*UserServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "FetchUserInfo",
			Handler:    _User_FetchUserInfo_Handler,
		},
		{
			MethodName: "RemoveUserInfo",
			Handler:    _User_RemoveUserInfo_Handler,
		},
		{
			MethodName: "CreateUserInfo",
			Handler:    _User_CreateUserInfo_Handler,
		},
		{
			MethodName: "UpdateUserInfo",
			Handler:    _User_UpdateUserInfo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "user/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 RegisterHealthCheckHTTPServer

func RegisterHealthCheckHTTPServer(s *http.Server, srv HealthCheckHTTPServer)

func RegisterHealthCheckServer

func RegisterHealthCheckServer(s grpc.ServiceRegistrar, srv HealthCheckServer)

func RegisterUserHTTPServer

func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)

func RegisterUserServer

func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)

Types

type Address

type Address struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	City    string `protobuf:"bytes,2,opt,name=city,proto3" json:"city,omitempty"`
	// contains filtered or unexported fields
}

func (*Address) Descriptor deprecated

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

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetAddress

func (x *Address) GetAddress() string

func (*Address) GetCity

func (x *Address) GetCity() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

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

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

type Contact

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

func (*Contact) Descriptor deprecated

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

Deprecated: Use Contact.ProtoReflect.Descriptor instead.

func (*Contact) GetEmail

func (x *Contact) GetEmail() string

func (*Contact) GetPhoneNumber

func (x *Contact) GetPhoneNumber() string

func (*Contact) ProtoMessage

func (*Contact) ProtoMessage()

func (*Contact) ProtoReflect

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

func (*Contact) Reset

func (x *Contact) Reset()

func (*Contact) String

func (x *Contact) String() string

type HealthCheckClient

type HealthCheckClient interface {
	HealthCheck(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*structpb.Struct, error)
}

HealthCheckClient is the client API for HealthCheck 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 HealthCheckHTTPClient

type HealthCheckHTTPClient interface {
	HealthCheck(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *structpb.Struct, err error)
}

func NewHealthCheckHTTPClient

func NewHealthCheckHTTPClient(client *http.Client) HealthCheckHTTPClient

type HealthCheckHTTPClientImpl

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

func (*HealthCheckHTTPClientImpl) HealthCheck

func (c *HealthCheckHTTPClientImpl) HealthCheck(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*structpb.Struct, error)

type HealthCheckHTTPServer

type HealthCheckHTTPServer interface {
	HealthCheck(context.Context, *emptypb.Empty) (*structpb.Struct, error)
}

type HealthCheckServer

type HealthCheckServer interface {
	HealthCheck(context.Context, *emptypb.Empty) (*structpb.Struct, error)
	// contains filtered or unexported methods
}

HealthCheckServer is the server API for HealthCheck service. All implementations must embed UnimplementedHealthCheckServer for forward compatibility

type UnimplementedHealthCheckServer

type UnimplementedHealthCheckServer struct {
}

UnimplementedHealthCheckServer must be embedded to have forward compatible implementations.

func (UnimplementedHealthCheckServer) HealthCheck

type UnimplementedUserServer

type UnimplementedUserServer struct {
}

UnimplementedUserServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServer) CreateUserInfo

func (UnimplementedUserServer) FetchUserInfo

func (UnimplementedUserServer) RemoveUserInfo

func (UnimplementedUserServer) UpdateUserInfo

type UnsafeHealthCheckServer

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

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

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 UserClient

type UserClient interface {
	FetchUserInfo(ctx context.Context, in *UserInfo, opts ...grpc.CallOption) (*UserInfo, error)
	RemoveUserInfo(ctx context.Context, in *UserInfo, opts ...grpc.CallOption) (*UserInfo, error)
	CreateUserInfo(ctx context.Context, in *UserInfo, opts ...grpc.CallOption) (*UserInfo, error)
	UpdateUserInfo(ctx context.Context, in *UserInfoUpdateRequest, opts ...grpc.CallOption) (*UserInfo, 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 UserHTTPClient

type UserHTTPClient interface {
	CreateUserInfo(ctx context.Context, req *UserInfo, opts ...http.CallOption) (rsp *UserInfo, err error)
	FetchUserInfo(ctx context.Context, req *UserInfo, opts ...http.CallOption) (rsp *UserInfo, err error)
	RemoveUserInfo(ctx context.Context, req *UserInfo, opts ...http.CallOption) (rsp *UserInfo, err error)
	UpdateUserInfo(ctx context.Context, req *UserInfoUpdateRequest, opts ...http.CallOption) (rsp *UserInfo, err error)
}

func NewUserHTTPClient

func NewUserHTTPClient(client *http.Client) UserHTTPClient

type UserHTTPClientImpl

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

func (*UserHTTPClientImpl) CreateUserInfo

func (c *UserHTTPClientImpl) CreateUserInfo(ctx context.Context, in *UserInfo, opts ...http.CallOption) (*UserInfo, error)

func (*UserHTTPClientImpl) FetchUserInfo

func (c *UserHTTPClientImpl) FetchUserInfo(ctx context.Context, in *UserInfo, opts ...http.CallOption) (*UserInfo, error)

func (*UserHTTPClientImpl) RemoveUserInfo

func (c *UserHTTPClientImpl) RemoveUserInfo(ctx context.Context, in *UserInfo, opts ...http.CallOption) (*UserInfo, error)

func (*UserHTTPClientImpl) UpdateUserInfo

func (c *UserHTTPClientImpl) UpdateUserInfo(ctx context.Context, in *UserInfoUpdateRequest, opts ...http.CallOption) (*UserInfo, error)

type UserHTTPServer

type UserHTTPServer interface {
	CreateUserInfo(context.Context, *UserInfo) (*UserInfo, error)
	FetchUserInfo(context.Context, *UserInfo) (*UserInfo, error)
	RemoveUserInfo(context.Context, *UserInfo) (*UserInfo, error)
	UpdateUserInfo(context.Context, *UserInfoUpdateRequest) (*UserInfo, error)
}

type UserInfo

type UserInfo struct {
	Username    string     `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Email       string     `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	PhoneNumber string     `protobuf:"bytes,3,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"`
	Addresses   []*Address `protobuf:"bytes,4,rep,name=addresses,proto3" json:"addresses,omitempty"`
	Contacts    []*Contact `protobuf:"bytes,5,rep,name=contacts,proto3" json:"contacts,omitempty"`
	// contains filtered or unexported fields
}

func (*UserInfo) Descriptor deprecated

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

Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.

func (*UserInfo) GetAddresses

func (x *UserInfo) GetAddresses() []*Address

func (*UserInfo) GetContacts

func (x *UserInfo) GetContacts() []*Contact

func (*UserInfo) GetEmail

func (x *UserInfo) GetEmail() string

func (*UserInfo) GetPhoneNumber

func (x *UserInfo) GetPhoneNumber() string

func (*UserInfo) GetUsername

func (x *UserInfo) GetUsername() string

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) ProtoReflect

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

func (*UserInfo) Reset

func (x *UserInfo) Reset()

func (*UserInfo) String

func (x *UserInfo) String() string

type UserInfoUpdateRequest

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

func (*UserInfoUpdateRequest) Descriptor deprecated

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

Deprecated: Use UserInfoUpdateRequest.ProtoReflect.Descriptor instead.

func (*UserInfoUpdateRequest) GetId

func (x *UserInfoUpdateRequest) GetId() string

func (*UserInfoUpdateRequest) GetUserInfo

func (x *UserInfoUpdateRequest) GetUserInfo() *UserInfo

func (*UserInfoUpdateRequest) ProtoMessage

func (*UserInfoUpdateRequest) ProtoMessage()

func (*UserInfoUpdateRequest) ProtoReflect

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

func (*UserInfoUpdateRequest) Reset

func (x *UserInfoUpdateRequest) Reset()

func (*UserInfoUpdateRequest) String

func (x *UserInfoUpdateRequest) String() string

type UserServer

type UserServer interface {
	FetchUserInfo(context.Context, *UserInfo) (*UserInfo, error)
	RemoveUserInfo(context.Context, *UserInfo) (*UserInfo, error)
	CreateUserInfo(context.Context, *UserInfo) (*UserInfo, error)
	UpdateUserInfo(context.Context, *UserInfoUpdateRequest) (*UserInfo, error)
	// contains filtered or unexported methods
}

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

Jump to

Keyboard shortcuts

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