rpc

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Hosts_Create_FullMethodName = "/hosts.Hosts/Create"
	Hosts_Read_FullMethodName   = "/hosts.Hosts/Read"
	Hosts_Upsert_FullMethodName = "/hosts.Hosts/Upsert"
	Hosts_Delete_FullMethodName = "/hosts.Hosts/Delete"
)
View Source
const (
	Users_Create_FullMethodName = "/hosts.Users/Create"
	Users_Read_FullMethodName   = "/hosts.Users/Read"
	Users_List_FullMethodName   = "/hosts.Users/List"
	Users_Upsert_FullMethodName = "/hosts.Users/Upsert"
	Users_Delete_FullMethodName = "/hosts.Users/Delete"
)

Variables

View Source
var File_host_pb_rpc_hosts_proto protoreflect.FileDescriptor
View Source
var File_host_pb_rpc_users_proto protoreflect.FileDescriptor
View Source
var Hosts_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "hosts.Hosts",
	HandlerType: (*HostsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _Hosts_Create_Handler,
		},
		{
			MethodName: "Read",
			Handler:    _Hosts_Read_Handler,
		},
		{
			MethodName: "Upsert",
			Handler:    _Hosts_Upsert_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Hosts_Delete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "host/pb/rpc/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: "Create",
			Handler:    _Users_Create_Handler,
		},
		{
			MethodName: "Read",
			Handler:    _Users_Read_Handler,
		},
		{
			MethodName: "List",
			Handler:    _Users_List_Handler,
		},
		{
			MethodName: "Upsert",
			Handler:    _Users_Upsert_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Users_Delete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "host/pb/rpc/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 {
	Filters *HostFilters `protobuf:"bytes,1,opt,name=Filters,proto3" json:"Filters,omitempty"`
	Hosts   []*pb.Host   `protobuf:"bytes,2,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) GetFilters

func (x *CreateHostRequest) GetFilters() *HostFilters

func (*CreateHostRequest) GetHosts

func (x *CreateHostRequest) GetHosts() []*pb.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 []*pb.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() []*pb.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 []*pb.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() []*pb.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 []*pb.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() []*pb.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 []*pb.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() []*pb.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 []*pb.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() []*pb.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 []*pb.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() []*pb.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 []*pb.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() []*pb.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 HostFilters

type HostFilters struct {
	MaxResults int64 `protobuf:"varint,1,opt,name=MaxResults,proto3" json:"MaxResults,omitempty"`
	Users      bool  `protobuf:"varint,10,opt,name=Users,proto3" json:"Users,omitempty"`
	// Files: if true and read, loads host files.
	//
	//	if true and write, overwrites any matching file paths.
	Files bool `protobuf:"varint,20,opt,name=Files,proto3" json:"Files,omitempty"`
	// Processes: if true and read, loads host processes.
	//
	//	if true and write, overwrites any matching process IDs.
	Processes      bool `protobuf:"varint,30,opt,name=Processes,proto3" json:"Processes,omitempty"`
	Ports          bool `protobuf:"varint,40,opt,name=Ports,proto3" json:"Ports,omitempty"`
	Trace          bool `protobuf:"varint,41,opt,name=Trace,proto3" json:"Trace,omitempty"`
	Scripts        bool `protobuf:"varint,70,opt,name=Scripts,proto3" json:"Scripts,omitempty"`
	OSFingerprints bool `protobuf:"varint,71,opt,name=OSFingerprints,proto3" json:"OSFingerprints,omitempty"`
	// Source: if set, scope the read to only the hosts contributed by this tool (matched
	// against provenance.Source.Tool via the host_sources join) — the "give me only my
	// objects" filter. Empty means the default cross-tool shared view (all hosts).
	Source string `protobuf:"bytes,80,opt,name=Source,proto3" json:"Source,omitempty"`
	// contains filtered or unexported fields
}

func (*HostFilters) Descriptor deprecated

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

Deprecated: Use HostFilters.ProtoReflect.Descriptor instead.

func (*HostFilters) GetFiles

func (x *HostFilters) GetFiles() bool

func (*HostFilters) GetMaxResults

func (x *HostFilters) GetMaxResults() int64

func (*HostFilters) GetOSFingerprints

func (x *HostFilters) GetOSFingerprints() bool

func (*HostFilters) GetPorts

func (x *HostFilters) GetPorts() bool

func (*HostFilters) GetProcesses

func (x *HostFilters) GetProcesses() bool

func (*HostFilters) GetScripts

func (x *HostFilters) GetScripts() bool

func (*HostFilters) GetSource

func (x *HostFilters) GetSource() string

func (*HostFilters) GetTrace

func (x *HostFilters) GetTrace() bool

func (*HostFilters) GetUsers

func (x *HostFilters) GetUsers() bool

func (*HostFilters) ProtoMessage

func (*HostFilters) ProtoMessage()

func (*HostFilters) ProtoReflect

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

func (*HostFilters) Reset

func (x *HostFilters) Reset()

func (*HostFilters) String

func (x *HostFilters) String() string

type HostsClient

type HostsClient interface {
	// General
	Create(ctx context.Context, in *CreateHostRequest, opts ...grpc.CallOption) (*CreateHostResponse, error)
	Read(ctx context.Context, in *ReadHostRequest, opts ...grpc.CallOption) (*ReadHostResponse, error)
	Upsert(ctx context.Context, in *UpsertHostRequest, opts ...grpc.CallOption) (*UpsertHostResponse, error)
	Delete(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 {
	// General
	Create(context.Context, *CreateHostRequest) (*CreateHostResponse, error)
	Read(context.Context, *ReadHostRequest) (*ReadHostResponse, error)
	Upsert(context.Context, *UpsertHostRequest) (*UpsertHostResponse, error)
	Delete(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 ReadHostRequest

type ReadHostRequest struct {
	Filters *HostFilters `protobuf:"bytes,1,opt,name=Filters,proto3" json:"Filters,omitempty"`
	Host    *pb.Host     `protobuf:"bytes,2,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) GetFilters

func (x *ReadHostRequest) GetFilters() *HostFilters

func (*ReadHostRequest) GetHost

func (x *ReadHostRequest) GetHost() *pb.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 []*pb.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() []*pb.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 *pb.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() *pb.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 []*pb.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() []*pb.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 *pb.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() *pb.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 []*pb.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() []*pb.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) Create

func (UnimplementedHostsServer) Delete

func (UnimplementedHostsServer) Read

func (UnimplementedHostsServer) Upsert

type UnimplementedUsersServer

type UnimplementedUsersServer struct {
}

UnimplementedUsersServer must be embedded to have forward compatible implementations.

func (UnimplementedUsersServer) Create

func (UnimplementedUsersServer) Delete

func (UnimplementedUsersServer) List

func (UnimplementedUsersServer) Read

func (UnimplementedUsersServer) Upsert

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 {
	Filters *HostFilters `protobuf:"bytes,1,opt,name=Filters,proto3" json:"Filters,omitempty"`
	Hosts   []*pb.Host   `protobuf:"bytes,2,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) GetFilters

func (x *UpsertHostRequest) GetFilters() *HostFilters

func (*UpsertHostRequest) GetHosts

func (x *UpsertHostRequest) GetHosts() []*pb.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 []*pb.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() []*pb.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 []*pb.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() []*pb.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 []*pb.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() []*pb.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

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

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