Documentation ¶
Overview ¶
Package vhost contains data-types for managing virtual hosting.
Index ¶
- Variables
- func RegisterVHostsServer(s grpc.ServiceRegistrar, srv VHostsServer)
- func WithVHost(ctx context.Context, vhost *VHost) context.Context
- type EnsureRequest
- func (*EnsureRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnsureRequest) GetDelete() bool
- func (x *EnsureRequest) GetVhost() *VHost
- func (*EnsureRequest) ProtoMessage()
- func (x *EnsureRequest) ProtoReflect() protoreflect.Message
- func (x *EnsureRequest) Reset()
- func (x *EnsureRequest) String() string
- type UnimplementedVHostsServer
- type UnsafeVHostsServer
- type VHost
- type VHostsClient
- type VHostsServer
- type VHosts_ListClient
- type VHosts_ListServer
Constants ¶
This section is empty.
Variables ¶
var File_vhost_proto protoreflect.FileDescriptor
Functions ¶
func RegisterVHostsServer ¶
func RegisterVHostsServer(s grpc.ServiceRegistrar, srv VHostsServer)
Types ¶
type EnsureRequest ¶
type EnsureRequest struct { Vhost *VHost `protobuf:"bytes,1,opt,name=vhost,proto3" json:"vhost,omitempty"` Delete bool `protobuf:"varint,2,opt,name=delete,proto3" json:"delete,omitempty"` // contains filtered or unexported fields }
func (*EnsureRequest) Descriptor
deprecated
func (*EnsureRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnsureRequest.ProtoReflect.Descriptor instead.
func (*EnsureRequest) GetDelete ¶
func (x *EnsureRequest) GetDelete() bool
func (*EnsureRequest) GetVhost ¶
func (x *EnsureRequest) GetVhost() *VHost
func (*EnsureRequest) ProtoMessage ¶
func (*EnsureRequest) ProtoMessage()
func (*EnsureRequest) ProtoReflect ¶
func (x *EnsureRequest) ProtoReflect() protoreflect.Message
func (*EnsureRequest) Reset ¶
func (x *EnsureRequest) Reset()
func (*EnsureRequest) String ¶
func (x *EnsureRequest) String() string
type UnimplementedVHostsServer ¶
type UnimplementedVHostsServer struct { }
UnimplementedVHostsServer must be embedded to have forward compatible implementations.
func (UnimplementedVHostsServer) Ensure ¶
func (UnimplementedVHostsServer) Ensure(context.Context, *EnsureRequest) (*emptypb.Empty, error)
func (UnimplementedVHostsServer) List ¶
func (UnimplementedVHostsServer) List(*emptypb.Empty, VHosts_ListServer) error
type UnsafeVHostsServer ¶
type UnsafeVHostsServer interface {
// contains filtered or unexported methods
}
UnsafeVHostsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VHostsServer will result in compilation errors.
type VHost ¶
type VHost struct { Vhost string `protobuf:"bytes,1,opt,name=vhost,proto3" json:"vhost,omitempty"` TenantId *tenant.ID `protobuf:"bytes,2,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` // contains filtered or unexported fields }
func FromContext ¶
FromContext returns the VHost associated with the context, or nil.
func (*VHost) Descriptor
deprecated
func (*VHost) GetTenantId ¶
func (*VHost) ProtoMessage ¶
func (*VHost) ProtoMessage()
func (*VHost) ProtoReflect ¶
func (x *VHost) ProtoReflect() protoreflect.Message
type VHostsClient ¶
type VHostsClient interface { Ensure(ctx context.Context, in *EnsureRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) List(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (VHosts_ListClient, error) }
VHostsClient is the client API for VHosts 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 NewVHostsClient ¶
func NewVHostsClient(cc grpc.ClientConnInterface) VHostsClient
type VHostsServer ¶
type VHostsServer interface { Ensure(context.Context, *EnsureRequest) (*emptypb.Empty, error) List(*emptypb.Empty, VHosts_ListServer) error // contains filtered or unexported methods }
VHostsServer is the server API for VHosts service. All implementations must embed UnimplementedVHostsServer for forward compatibility
type VHosts_ListClient ¶
type VHosts_ListClient interface { Recv() (*VHost, error) grpc.ClientStream }
type VHosts_ListServer ¶
type VHosts_ListServer interface { Send(*VHost) error grpc.ServerStream }