hosts

package
v0.0.0-...-0f6999a Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Hosts_CreateHost_FullMethodName  = "/hosts.Hosts/CreateHost"
	Hosts_GetHost_FullMethodName     = "/hosts.Hosts/GetHost"
	Hosts_GetHostMany_FullMethodName = "/hosts.Hosts/GetHostMany"
	Hosts_UpsertHost_FullMethodName  = "/hosts.Hosts/UpsertHost"
	Hosts_DeleteHost_FullMethodName  = "/hosts.Hosts/DeleteHost"
)
View Source
const (
	Users_CreateUser_FullMethodName  = "/hosts.Users/CreateUser"
	Users_GetUser_FullMethodName     = "/hosts.Users/GetUser"
	Users_GetUserMany_FullMethodName = "/hosts.Users/GetUserMany"
	Users_UpsertUser_FullMethodName  = "/hosts.Users/UpsertUser"
	Users_DeleteUser_FullMethodName  = "/hosts.Users/DeleteUser"
)

Variables

View Source
var File_rpc_hosts_hosts_proto protoreflect.FileDescriptor
View Source
var File_rpc_hosts_users_proto protoreflect.FileDescriptor
View Source
var Hosts_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "hosts.Hosts",
	HandlerType: (*HostsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateHost",
			Handler:    _Hosts_CreateHost_Handler,
		},
		{
			MethodName: "GetHost",
			Handler:    _Hosts_GetHost_Handler,
		},
		{
			MethodName: "GetHostMany",
			Handler:    _Hosts_GetHostMany_Handler,
		},
		{
			MethodName: "UpsertHost",
			Handler:    _Hosts_UpsertHost_Handler,
		},
		{
			MethodName: "DeleteHost",
			Handler:    _Hosts_DeleteHost_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "rpc/hosts/hosts.proto",
}

Hosts_ServiceDesc is the grpc.ServiceDesc for Hosts 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 Users_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "hosts.Users",
	HandlerType: (*UsersServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateUser",
			Handler:    _Users_CreateUser_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _Users_GetUser_Handler,
		},
		{
			MethodName: "GetUserMany",
			Handler:    _Users_GetUserMany_Handler,
		},
		{
			MethodName: "UpsertUser",
			Handler:    _Users_UpsertUser_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _Users_DeleteUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "rpc/hosts/users.proto",
}

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

Functions

func RegisterHostsServer

func RegisterHostsServer(s grpc.ServiceRegistrar, srv HostsServer)

func RegisterUsersServer

func RegisterUsersServer(s grpc.ServiceRegistrar, srv UsersServer)

Types

type CreateHostRequest

type CreateHostRequest struct {
	Hosts []*host.Host `protobuf:"bytes,1,rep,name=Hosts,proto3" json:"Hosts,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateHostRequest) Descriptor deprecated

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

Deprecated: Use CreateHostRequest.ProtoReflect.Descriptor instead.

func (*CreateHostRequest) GetHosts

func (x *CreateHostRequest) GetHosts() []*host.Host

func (*CreateHostRequest) ProtoMessage

func (*CreateHostRequest) ProtoMessage()

func (*CreateHostRequest) ProtoReflect

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

func (*CreateHostRequest) Reset

func (x *CreateHostRequest) Reset()

func (*CreateHostRequest) String

func (x *CreateHostRequest) String() string

type CreateHostResponse

type CreateHostResponse struct {
	Hosts []*host.Host `protobuf:"bytes,1,rep,name=Hosts,proto3" json:"Hosts,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateHostResponse) Descriptor deprecated

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

Deprecated: Use CreateHostResponse.ProtoReflect.Descriptor instead.

func (*CreateHostResponse) GetHosts

func (x *CreateHostResponse) GetHosts() []*host.Host

func (*CreateHostResponse) ProtoMessage

func (*CreateHostResponse) ProtoMessage()

func (*CreateHostResponse) ProtoReflect

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

func (*CreateHostResponse) Reset

func (x *CreateHostResponse) Reset()

func (*CreateHostResponse) String

func (x *CreateHostResponse) String() string

type CreateUserRequest

type CreateUserRequest struct {
	Users []*host.User `protobuf:"bytes,1,rep,name=Users,proto3" json:"Users,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRequest) Descriptor deprecated

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

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetUsers

func (x *CreateUserRequest) GetUsers() []*host.User

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 {
	Users []*host.User `protobuf:"bytes,1,rep,name=Users,proto3" json:"Users,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserResponse) Descriptor deprecated

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

Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.

func (*CreateUserResponse) GetUsers

func (x *CreateUserResponse) GetUsers() []*host.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 DeleteHostRequest

type DeleteHostRequest struct {
	Hosts []*host.Host `protobuf:"bytes,1,rep,name=Hosts,proto3" json:"Hosts,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteHostRequest) Descriptor deprecated

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

Deprecated: Use DeleteHostRequest.ProtoReflect.Descriptor instead.

func (*DeleteHostRequest) GetHosts

func (x *DeleteHostRequest) GetHosts() []*host.Host

func (*DeleteHostRequest) ProtoMessage

func (*DeleteHostRequest) ProtoMessage()

func (*DeleteHostRequest) ProtoReflect

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

func (*DeleteHostRequest) Reset

func (x *DeleteHostRequest) Reset()

func (*DeleteHostRequest) String

func (x *DeleteHostRequest) String() string

type DeleteHostResponse

type DeleteHostResponse struct {
	Hosts []*host.Host `protobuf:"bytes,1,rep,name=Hosts,proto3" json:"Hosts,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteHostResponse) Descriptor deprecated

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

Deprecated: Use DeleteHostResponse.ProtoReflect.Descriptor instead.

func (*DeleteHostResponse) GetHosts

func (x *DeleteHostResponse) GetHosts() []*host.Host

func (*DeleteHostResponse) ProtoMessage

func (*DeleteHostResponse) ProtoMessage()

func (*DeleteHostResponse) ProtoReflect

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

func (*DeleteHostResponse) Reset

func (x *DeleteHostResponse) Reset()

func (*DeleteHostResponse) String

func (x *DeleteHostResponse) String() string

type DeleteUserRequest

type DeleteUserRequest struct {
	Users []*host.User `protobuf:"bytes,1,rep,name=Users,proto3" json:"Users,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUserRequest) Descriptor deprecated

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

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetUsers

func (x *DeleteUserRequest) GetUsers() []*host.User

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

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

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) String() string

type DeleteUserResponse

type DeleteUserResponse struct {
	Users []*host.User `protobuf:"bytes,1,rep,name=Users,proto3" json:"Users,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUserResponse) Descriptor deprecated

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

Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.

func (*DeleteUserResponse) GetUsers

func (x *DeleteUserResponse) GetUsers() []*host.User

func (*DeleteUserResponse) ProtoMessage

func (*DeleteUserResponse) ProtoMessage()

func (*DeleteUserResponse) ProtoReflect

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

func (*DeleteUserResponse) Reset

func (x *DeleteUserResponse) Reset()

func (*DeleteUserResponse) String

func (x *DeleteUserResponse) String() string

type HostsClient

type HostsClient interface {
	CreateHost(ctx context.Context, in *CreateHostRequest, opts ...grpc.CallOption) (*CreateHostResponse, error)
	GetHost(ctx context.Context, in *ReadHostRequest, opts ...grpc.CallOption) (*ReadHostResponse, error)
	GetHostMany(ctx context.Context, in *ReadHostRequest, opts ...grpc.CallOption) (*ReadHostResponse, error)
	UpsertHost(ctx context.Context, in *UpsertHostRequest, opts ...grpc.CallOption) (*UpsertHostResponse, error)
	DeleteHost(ctx context.Context, in *DeleteHostRequest, opts ...grpc.CallOption) (*DeleteHostResponse, error)
}

HostsClient is the client API for Hosts 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 NewHostsClient

func NewHostsClient(cc grpc.ClientConnInterface) HostsClient

type HostsServer

type HostsServer interface {
	CreateHost(context.Context, *CreateHostRequest) (*CreateHostResponse, error)
	GetHost(context.Context, *ReadHostRequest) (*ReadHostResponse, error)
	GetHostMany(context.Context, *ReadHostRequest) (*ReadHostResponse, error)
	UpsertHost(context.Context, *UpsertHostRequest) (*UpsertHostResponse, error)
	DeleteHost(context.Context, *DeleteHostRequest) (*DeleteHostResponse, error)
	// contains filtered or unexported methods
}

HostsServer is the server API for Hosts service. All implementations must embed UnimplementedHostsServer for forward compatibility

type ReadHostManyRequest

type ReadHostManyRequest struct {
	Host *host.Host `protobuf:"bytes,1,opt,name=Host,proto3" json:"Host,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadHostManyRequest) Descriptor deprecated

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

Deprecated: Use ReadHostManyRequest.ProtoReflect.Descriptor instead.

func (*ReadHostManyRequest) GetHost

func (x *ReadHostManyRequest) GetHost() *host.Host

func (*ReadHostManyRequest) ProtoMessage

func (*ReadHostManyRequest) ProtoMessage()

func (*ReadHostManyRequest) ProtoReflect

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

func (*ReadHostManyRequest) Reset

func (x *ReadHostManyRequest) Reset()

func (*ReadHostManyRequest) String

func (x *ReadHostManyRequest) String() string

type ReadHostManyResponse

type ReadHostManyResponse struct {
	Hosts []*host.Host `protobuf:"bytes,1,rep,name=Hosts,proto3" json:"Hosts,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadHostManyResponse) Descriptor deprecated

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

Deprecated: Use ReadHostManyResponse.ProtoReflect.Descriptor instead.

func (*ReadHostManyResponse) GetHosts

func (x *ReadHostManyResponse) GetHosts() []*host.Host

func (*ReadHostManyResponse) ProtoMessage

func (*ReadHostManyResponse) ProtoMessage()

func (*ReadHostManyResponse) ProtoReflect

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

func (*ReadHostManyResponse) Reset

func (x *ReadHostManyResponse) Reset()

func (*ReadHostManyResponse) String

func (x *ReadHostManyResponse) String() string

type ReadHostRequest

type ReadHostRequest struct {
	Host *host.Host `protobuf:"bytes,1,opt,name=Host,proto3" json:"Host,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadHostRequest) Descriptor deprecated

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

Deprecated: Use ReadHostRequest.ProtoReflect.Descriptor instead.

func (*ReadHostRequest) GetHost

func (x *ReadHostRequest) GetHost() *host.Host

func (*ReadHostRequest) ProtoMessage

func (*ReadHostRequest) ProtoMessage()

func (*ReadHostRequest) ProtoReflect

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

func (*ReadHostRequest) Reset

func (x *ReadHostRequest) Reset()

func (*ReadHostRequest) String

func (x *ReadHostRequest) String() string

type ReadHostResponse

type ReadHostResponse struct {
	Hosts []*host.Host `protobuf:"bytes,1,rep,name=Hosts,proto3" json:"Hosts,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadHostResponse) Descriptor deprecated

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

Deprecated: Use ReadHostResponse.ProtoReflect.Descriptor instead.

func (*ReadHostResponse) GetHosts

func (x *ReadHostResponse) GetHosts() []*host.Host

func (*ReadHostResponse) ProtoMessage

func (*ReadHostResponse) ProtoMessage()

func (*ReadHostResponse) ProtoReflect

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

func (*ReadHostResponse) Reset

func (x *ReadHostResponse) Reset()

func (*ReadHostResponse) String

func (x *ReadHostResponse) String() string

type ReadUserManyRequest

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

func (*ReadUserManyRequest) Descriptor deprecated

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

Deprecated: Use ReadUserManyRequest.ProtoReflect.Descriptor instead.

func (*ReadUserManyRequest) GetUser

func (x *ReadUserManyRequest) GetUser() *host.User

func (*ReadUserManyRequest) ProtoMessage

func (*ReadUserManyRequest) ProtoMessage()

func (*ReadUserManyRequest) ProtoReflect

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

func (*ReadUserManyRequest) Reset

func (x *ReadUserManyRequest) Reset()

func (*ReadUserManyRequest) String

func (x *ReadUserManyRequest) String() string

type ReadUserManyResponse

type ReadUserManyResponse struct {
	Users []*host.User `protobuf:"bytes,1,rep,name=Users,proto3" json:"Users,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadUserManyResponse) Descriptor deprecated

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

Deprecated: Use ReadUserManyResponse.ProtoReflect.Descriptor instead.

func (*ReadUserManyResponse) GetUsers

func (x *ReadUserManyResponse) GetUsers() []*host.User

func (*ReadUserManyResponse) ProtoMessage

func (*ReadUserManyResponse) ProtoMessage()

func (*ReadUserManyResponse) ProtoReflect

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

func (*ReadUserManyResponse) Reset

func (x *ReadUserManyResponse) Reset()

func (*ReadUserManyResponse) String

func (x *ReadUserManyResponse) String() string

type ReadUserRequest

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

func (*ReadUserRequest) Descriptor deprecated

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

Deprecated: Use ReadUserRequest.ProtoReflect.Descriptor instead.

func (*ReadUserRequest) GetUser

func (x *ReadUserRequest) GetUser() *host.User

func (*ReadUserRequest) ProtoMessage

func (*ReadUserRequest) ProtoMessage()

func (*ReadUserRequest) ProtoReflect

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

func (*ReadUserRequest) Reset

func (x *ReadUserRequest) Reset()

func (*ReadUserRequest) String

func (x *ReadUserRequest) String() string

type ReadUserResponse

type ReadUserResponse struct {
	Users []*host.User `protobuf:"bytes,1,rep,name=Users,proto3" json:"Users,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadUserResponse) Descriptor deprecated

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

Deprecated: Use ReadUserResponse.ProtoReflect.Descriptor instead.

func (*ReadUserResponse) GetUsers

func (x *ReadUserResponse) GetUsers() []*host.User

func (*ReadUserResponse) ProtoMessage

func (*ReadUserResponse) ProtoMessage()

func (*ReadUserResponse) ProtoReflect

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

func (*ReadUserResponse) Reset

func (x *ReadUserResponse) Reset()

func (*ReadUserResponse) String

func (x *ReadUserResponse) String() string

type UnimplementedHostsServer

type UnimplementedHostsServer struct {
}

UnimplementedHostsServer must be embedded to have forward compatible implementations.

func (UnimplementedHostsServer) CreateHost

func (UnimplementedHostsServer) DeleteHost

func (UnimplementedHostsServer) GetHost

func (UnimplementedHostsServer) GetHostMany

func (UnimplementedHostsServer) UpsertHost

type UnimplementedUsersServer

type UnimplementedUsersServer struct {
}

UnimplementedUsersServer must be embedded to have forward compatible implementations.

func (UnimplementedUsersServer) CreateUser

func (UnimplementedUsersServer) DeleteUser

func (UnimplementedUsersServer) GetUser

func (UnimplementedUsersServer) GetUserMany

func (UnimplementedUsersServer) UpsertUser

type UnsafeHostsServer

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

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

type UnsafeUsersServer

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

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

type UpsertHostRequest

type UpsertHostRequest struct {
	Hosts []*host.Host `protobuf:"bytes,1,rep,name=Hosts,proto3" json:"Hosts,omitempty"`
	// contains filtered or unexported fields
}

func (*UpsertHostRequest) Descriptor deprecated

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

Deprecated: Use UpsertHostRequest.ProtoReflect.Descriptor instead.

func (*UpsertHostRequest) GetHosts

func (x *UpsertHostRequest) GetHosts() []*host.Host

func (*UpsertHostRequest) ProtoMessage

func (*UpsertHostRequest) ProtoMessage()

func (*UpsertHostRequest) ProtoReflect

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

func (*UpsertHostRequest) Reset

func (x *UpsertHostRequest) Reset()

func (*UpsertHostRequest) String

func (x *UpsertHostRequest) String() string

type UpsertHostResponse

type UpsertHostResponse struct {
	Hosts []*host.Host `protobuf:"bytes,1,rep,name=Hosts,proto3" json:"Hosts,omitempty"`
	// contains filtered or unexported fields
}

func (*UpsertHostResponse) Descriptor deprecated

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

Deprecated: Use UpsertHostResponse.ProtoReflect.Descriptor instead.

func (*UpsertHostResponse) GetHosts

func (x *UpsertHostResponse) GetHosts() []*host.Host

func (*UpsertHostResponse) ProtoMessage

func (*UpsertHostResponse) ProtoMessage()

func (*UpsertHostResponse) ProtoReflect

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

func (*UpsertHostResponse) Reset

func (x *UpsertHostResponse) Reset()

func (*UpsertHostResponse) String

func (x *UpsertHostResponse) String() string

type UpsertUserRequest

type UpsertUserRequest struct {
	Users []*host.User `protobuf:"bytes,1,rep,name=Users,proto3" json:"Users,omitempty"`
	// contains filtered or unexported fields
}

func (*UpsertUserRequest) Descriptor deprecated

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

Deprecated: Use UpsertUserRequest.ProtoReflect.Descriptor instead.

func (*UpsertUserRequest) GetUsers

func (x *UpsertUserRequest) GetUsers() []*host.User

func (*UpsertUserRequest) ProtoMessage

func (*UpsertUserRequest) ProtoMessage()

func (*UpsertUserRequest) ProtoReflect

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

func (*UpsertUserRequest) Reset

func (x *UpsertUserRequest) Reset()

func (*UpsertUserRequest) String

func (x *UpsertUserRequest) String() string

type UpsertUserResponse

type UpsertUserResponse struct {
	Users []*host.User `protobuf:"bytes,1,rep,name=Users,proto3" json:"Users,omitempty"`
	// contains filtered or unexported fields
}

func (*UpsertUserResponse) Descriptor deprecated

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

Deprecated: Use UpsertUserResponse.ProtoReflect.Descriptor instead.

func (*UpsertUserResponse) GetUsers

func (x *UpsertUserResponse) GetUsers() []*host.User

func (*UpsertUserResponse) ProtoMessage

func (*UpsertUserResponse) ProtoMessage()

func (*UpsertUserResponse) ProtoReflect

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

func (*UpsertUserResponse) Reset

func (x *UpsertUserResponse) Reset()

func (*UpsertUserResponse) String

func (x *UpsertUserResponse) String() string

type UsersClient

type UsersClient interface {
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error)
	GetUser(ctx context.Context, in *ReadUserRequest, opts ...grpc.CallOption) (*ReadUserResponse, error)
	GetUserMany(ctx context.Context, in *ReadUserRequest, opts ...grpc.CallOption) (*ReadUserResponse, error)
	UpsertUser(ctx context.Context, in *UpsertUserRequest, opts ...grpc.CallOption) (*UpsertUserResponse, error)
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error)
}

UsersClient is the client API for Users 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 NewUsersClient

func NewUsersClient(cc grpc.ClientConnInterface) UsersClient

type UsersServer

type UsersServer interface {
	CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
	GetUser(context.Context, *ReadUserRequest) (*ReadUserResponse, error)
	GetUserMany(context.Context, *ReadUserRequest) (*ReadUserResponse, error)
	UpsertUser(context.Context, *UpsertUserRequest) (*UpsertUserResponse, error)
	DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
	// contains filtered or unexported methods
}

UsersServer is the server API for Users service. All implementations must embed UnimplementedUsersServer for forward compatibility

Jump to

Keyboard shortcuts

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