v1

package
v0.3.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_proto_host_v1_host_proto protoreflect.FileDescriptor
View Source
var HostService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pkg.proto.host.v1.HostService",
	HandlerType: (*HostServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAll",
			Handler:    _HostService_GetAll_Handler,
		},
		{
			MethodName: "GetByID",
			Handler:    _HostService_GetByID_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _HostService_Delete_Handler,
		},
		{
			MethodName: "Store",
			Handler:    _HostService_Store_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _HostService_Update_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/proto/host/v1/host.proto",
}

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

Functions

func RegisterHostServiceServer

func RegisterHostServiceServer(s grpc.ServiceRegistrar, srv HostServiceServer)

Types

type DeleteRequest

type DeleteRequest struct {
	Id *v1.UUID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetId

func (x *DeleteRequest) GetId() *v1.UUID

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

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

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

type DeleteResponse

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

func (*DeleteResponse) Descriptor deprecated

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

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect

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

func (*DeleteResponse) Reset

func (x *DeleteResponse) Reset()

func (*DeleteResponse) String

func (x *DeleteResponse) String() string

type GetAllRequest

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

func (*GetAllRequest) Descriptor deprecated

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

Deprecated: Use GetAllRequest.ProtoReflect.Descriptor instead.

func (*GetAllRequest) ProtoMessage

func (*GetAllRequest) ProtoMessage()

func (*GetAllRequest) ProtoReflect

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

func (*GetAllRequest) Reset

func (x *GetAllRequest) Reset()

func (*GetAllRequest) String

func (x *GetAllRequest) String() string

type GetAllResponse

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

func (*GetAllResponse) Descriptor deprecated

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

Deprecated: Use GetAllResponse.ProtoReflect.Descriptor instead.

func (*GetAllResponse) GetHosts

func (x *GetAllResponse) GetHosts() []*Host

func (*GetAllResponse) ProtoMessage

func (*GetAllResponse) ProtoMessage()

func (*GetAllResponse) ProtoReflect

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

func (*GetAllResponse) Reset

func (x *GetAllResponse) Reset()

func (*GetAllResponse) String

func (x *GetAllResponse) String() string

type GetByIDRequest

type GetByIDRequest struct {
	Id *v1.UUID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetByIDRequest) Descriptor deprecated

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

Deprecated: Use GetByIDRequest.ProtoReflect.Descriptor instead.

func (*GetByIDRequest) GetId

func (x *GetByIDRequest) GetId() *v1.UUID

func (*GetByIDRequest) ProtoMessage

func (*GetByIDRequest) ProtoMessage()

func (*GetByIDRequest) ProtoReflect

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

func (*GetByIDRequest) Reset

func (x *GetByIDRequest) Reset()

func (*GetByIDRequest) String

func (x *GetByIDRequest) String() string

type GetByIDResponse

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

func (*GetByIDResponse) Descriptor deprecated

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

Deprecated: Use GetByIDResponse.ProtoReflect.Descriptor instead.

func (*GetByIDResponse) GetHost

func (x *GetByIDResponse) GetHost() *Host

func (*GetByIDResponse) ProtoMessage

func (*GetByIDResponse) ProtoMessage()

func (*GetByIDResponse) ProtoReflect

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

func (*GetByIDResponse) Reset

func (x *GetByIDResponse) Reset()

func (*GetByIDResponse) String

func (x *GetByIDResponse) String() string

type Host

type Host struct {
	Id               *v1.UUID                `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Address          string                  `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	HostGroupId      *v1.UUID                `protobuf:"bytes,3,opt,name=host_group_id,json=hostGroupId,proto3" json:"host_group_id,omitempty"`
	TeamId           *v1.UUID                `protobuf:"bytes,4,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty"`
	Pause            *wrapperspb.BoolValue   `protobuf:"bytes,5,opt,name=pause,proto3" json:"pause,omitempty"`
	Hide             *wrapperspb.BoolValue   `protobuf:"bytes,6,opt,name=hide,proto3" json:"hide,omitempty"`
	EditHost         *wrapperspb.BoolValue   `protobuf:"bytes,7,opt,name=edit_host,json=editHost,proto3" json:"edit_host,omitempty"`
	Services         []*v11.Service          `protobuf:"bytes,8,rep,name=services,proto3" json:"services,omitempty"`
	AddressListRange *wrapperspb.StringValue `protobuf:"bytes,9,opt,name=address_list_range,json=addressListRange,proto3" json:"address_list_range,omitempty"`
	// contains filtered or unexported fields
}

func (*Host) Descriptor deprecated

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

Deprecated: Use Host.ProtoReflect.Descriptor instead.

func (*Host) GetAddress

func (x *Host) GetAddress() string

func (*Host) GetAddressListRange

func (x *Host) GetAddressListRange() *wrapperspb.StringValue

func (*Host) GetEditHost

func (x *Host) GetEditHost() *wrapperspb.BoolValue

func (*Host) GetHide

func (x *Host) GetHide() *wrapperspb.BoolValue

func (*Host) GetHostGroupId

func (x *Host) GetHostGroupId() *v1.UUID

func (*Host) GetId

func (x *Host) GetId() *v1.UUID

func (*Host) GetPause

func (x *Host) GetPause() *wrapperspb.BoolValue

func (*Host) GetServices

func (x *Host) GetServices() []*v11.Service

func (*Host) GetTeamId

func (x *Host) GetTeamId() *v1.UUID

func (*Host) ProtoMessage

func (*Host) ProtoMessage()

func (*Host) ProtoReflect

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

func (*Host) Reset

func (x *Host) Reset()

func (*Host) String

func (x *Host) String() string

type HostServiceClient

type HostServiceClient interface {
	GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (*GetAllResponse, error)
	GetByID(ctx context.Context, in *GetByIDRequest, opts ...grpc.CallOption) (*GetByIDResponse, error)
	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
	Store(ctx context.Context, in *StoreRequest, opts ...grpc.CallOption) (*StoreResponse, error)
	Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
}

HostServiceClient is the client API for HostService 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 HostServiceServer

type HostServiceServer interface {
	GetAll(context.Context, *GetAllRequest) (*GetAllResponse, error)
	GetByID(context.Context, *GetByIDRequest) (*GetByIDResponse, error)
	Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
	Store(context.Context, *StoreRequest) (*StoreResponse, error)
	Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
	// contains filtered or unexported methods
}

HostServiceServer is the server API for HostService service. All implementations must embed UnimplementedHostServiceServer for forward compatibility

type StoreRequest

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

func (*StoreRequest) Descriptor deprecated

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

Deprecated: Use StoreRequest.ProtoReflect.Descriptor instead.

func (*StoreRequest) GetHosts

func (x *StoreRequest) GetHosts() []*Host

func (*StoreRequest) ProtoMessage

func (*StoreRequest) ProtoMessage()

func (*StoreRequest) ProtoReflect

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

func (*StoreRequest) Reset

func (x *StoreRequest) Reset()

func (*StoreRequest) String

func (x *StoreRequest) String() string

type StoreResponse

type StoreResponse struct {
	Ids []*v1.UUID `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreResponse) Descriptor deprecated

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

Deprecated: Use StoreResponse.ProtoReflect.Descriptor instead.

func (*StoreResponse) GetIds

func (x *StoreResponse) GetIds() []*v1.UUID

func (*StoreResponse) ProtoMessage

func (*StoreResponse) ProtoMessage()

func (*StoreResponse) ProtoReflect

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

func (*StoreResponse) Reset

func (x *StoreResponse) Reset()

func (*StoreResponse) String

func (x *StoreResponse) String() string

type UnimplementedHostServiceServer

type UnimplementedHostServiceServer struct {
}

UnimplementedHostServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedHostServiceServer) Delete

func (UnimplementedHostServiceServer) GetAll

func (UnimplementedHostServiceServer) GetByID

func (UnimplementedHostServiceServer) Store

func (UnimplementedHostServiceServer) Update

type UnsafeHostServiceServer

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

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

type UpdateRequest

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

func (*UpdateRequest) Descriptor deprecated

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

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetHost

func (x *UpdateRequest) GetHost() *Host

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) ProtoReflect

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

func (*UpdateRequest) Reset

func (x *UpdateRequest) Reset()

func (*UpdateRequest) String

func (x *UpdateRequest) String() string

type UpdateResponse

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

func (*UpdateResponse) Descriptor deprecated

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

Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.

func (*UpdateResponse) ProtoMessage

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) ProtoReflect

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

func (*UpdateResponse) Reset

func (x *UpdateResponse) Reset()

func (*UpdateResponse) String

func (x *UpdateResponse) String() string

Jump to

Keyboard shortcuts

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