pb

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 28 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_global_proto protoreflect.FileDescriptor

Functions

func GlobalServiceClientType

func GlobalServiceClientType() reflect.Type

GlobalServiceClientType .

func GlobalServiceHandlerType

func GlobalServiceHandlerType() reflect.Type

GlobalServiceHandlerType .

func GlobalServiceServerType

func GlobalServiceServerType() reflect.Type

GlobalServiceServerType .

func RegisterGlobalServiceHandler

func RegisterGlobalServiceHandler(r http.Router, srv GlobalServiceHandler, opts ...http.HandleOption)

RegisterGlobalServiceHandler register GlobalServiceHandler to http.Router.

func RegisterGlobalServiceImp

func RegisterGlobalServiceImp(regester transport.Register, srv GlobalServiceServer, opts ...transport.ServiceOption)

RegisterGlobalServiceImp global.proto

func RegisterGlobalServiceServer

func RegisterGlobalServiceServer(s grpc1.ServiceRegistrar, srv GlobalServiceServer, opts ...grpc1.HandleOption)

func ServiceNames

func ServiceNames(svr ...string) []string

ServiceNames return all service names

func Types

func Types() []reflect.Type

Types

type CreateTenantRequest

type CreateTenantRequest struct {
	Id              string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	TenantGroup     string `protobuf:"bytes,2,opt,name=tenantGroup,proto3" json:"tenantGroup,omitempty"`
	Az              string `protobuf:"bytes,3,opt,name=az,proto3" json:"az,omitempty"`
	Env             string `protobuf:"bytes,4,opt,name=env,proto3" json:"env,omitempty"`
	ProjectId       string `protobuf:"bytes,5,opt,name=projectId,proto3" json:"projectId,omitempty"`
	ProjectName     string `protobuf:"bytes,6,opt,name=projectName,proto3" json:"projectName,omitempty"`
	AdminAddr       string `protobuf:"bytes,7,opt,name=adminAddr,proto3" json:"adminAddr,omitempty"`
	GatewayEndpoint string `protobuf:"bytes,8,opt,name=gatewayEndpoint,proto3" json:"gatewayEndpoint,omitempty"`
	InnerAddr       string `protobuf:"bytes,9,opt,name=innerAddr,proto3" json:"innerAddr,omitempty"`
	ServiceName     string `protobuf:"bytes,10,opt,name=serviceName,proto3" json:"serviceName,omitempty"`
	InstanceId      string `protobuf:"bytes,11,opt,name=instanceId,proto3" json:"instanceId,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTenantRequest) Descriptor deprecated

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

Deprecated: Use CreateTenantRequest.ProtoReflect.Descriptor instead.

func (*CreateTenantRequest) GetAdminAddr

func (x *CreateTenantRequest) GetAdminAddr() string

func (*CreateTenantRequest) GetAz

func (x *CreateTenantRequest) GetAz() string

func (*CreateTenantRequest) GetEnv

func (x *CreateTenantRequest) GetEnv() string

func (*CreateTenantRequest) GetGatewayEndpoint

func (x *CreateTenantRequest) GetGatewayEndpoint() string

func (*CreateTenantRequest) GetId

func (x *CreateTenantRequest) GetId() string

func (*CreateTenantRequest) GetInnerAddr

func (x *CreateTenantRequest) GetInnerAddr() string

func (*CreateTenantRequest) GetInstanceId

func (x *CreateTenantRequest) GetInstanceId() string

func (*CreateTenantRequest) GetProjectId

func (x *CreateTenantRequest) GetProjectId() string

func (*CreateTenantRequest) GetProjectName

func (x *CreateTenantRequest) GetProjectName() string

func (*CreateTenantRequest) GetServiceName

func (x *CreateTenantRequest) GetServiceName() string

func (*CreateTenantRequest) GetTenantGroup

func (x *CreateTenantRequest) GetTenantGroup() string

func (*CreateTenantRequest) MarshalJSON

func (m *CreateTenantRequest) MarshalJSON() ([]byte, error)

CreateTenantRequest implement json.Marshaler.

func (*CreateTenantRequest) ProtoMessage

func (*CreateTenantRequest) ProtoMessage()

func (*CreateTenantRequest) ProtoReflect

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

func (*CreateTenantRequest) Reset

func (x *CreateTenantRequest) Reset()

func (*CreateTenantRequest) String

func (x *CreateTenantRequest) String() string

func (*CreateTenantRequest) UnmarshalJSON

func (m *CreateTenantRequest) UnmarshalJSON(b []byte) error

CreateTenantRequest implement json.Marshaler.

func (*CreateTenantRequest) UnmarshalURLValues

func (m *CreateTenantRequest) UnmarshalURLValues(prefix string, values url.Values) error

CreateTenantRequest implement urlenc.URLValuesUnmarshaler.

func (*CreateTenantRequest) Validate

func (this *CreateTenantRequest) Validate() error

type CreateTenantResponse

type CreateTenantResponse struct {
	Data bool `protobuf:"varint,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTenantResponse) Descriptor deprecated

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

Deprecated: Use CreateTenantResponse.ProtoReflect.Descriptor instead.

func (*CreateTenantResponse) GetData

func (x *CreateTenantResponse) GetData() bool

func (*CreateTenantResponse) MarshalJSON

func (m *CreateTenantResponse) MarshalJSON() ([]byte, error)

CreateTenantResponse implement json.Marshaler.

func (*CreateTenantResponse) ProtoMessage

func (*CreateTenantResponse) ProtoMessage()

func (*CreateTenantResponse) ProtoReflect

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

func (*CreateTenantResponse) Reset

func (x *CreateTenantResponse) Reset()

func (*CreateTenantResponse) String

func (x *CreateTenantResponse) String() string

func (*CreateTenantResponse) UnmarshalJSON

func (m *CreateTenantResponse) UnmarshalJSON(b []byte) error

CreateTenantResponse implement json.Marshaler.

func (*CreateTenantResponse) UnmarshalURLValues

func (m *CreateTenantResponse) UnmarshalURLValues(prefix string, values url.Values) error

CreateTenantResponse implement urlenc.URLValuesUnmarshaler.

func (*CreateTenantResponse) Validate

func (this *CreateTenantResponse) Validate() error

type GetFeaturesRequest

type GetFeaturesRequest struct {
	ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFeaturesRequest) Descriptor deprecated

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

Deprecated: Use GetFeaturesRequest.ProtoReflect.Descriptor instead.

func (*GetFeaturesRequest) GetClusterName

func (x *GetFeaturesRequest) GetClusterName() string

func (*GetFeaturesRequest) MarshalJSON

func (m *GetFeaturesRequest) MarshalJSON() ([]byte, error)

GetFeaturesRequest implement json.Marshaler.

func (*GetFeaturesRequest) ProtoMessage

func (*GetFeaturesRequest) ProtoMessage()

func (*GetFeaturesRequest) ProtoReflect

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

func (*GetFeaturesRequest) Reset

func (x *GetFeaturesRequest) Reset()

func (*GetFeaturesRequest) String

func (x *GetFeaturesRequest) String() string

func (*GetFeaturesRequest) UnmarshalJSON

func (m *GetFeaturesRequest) UnmarshalJSON(b []byte) error

GetFeaturesRequest implement json.Marshaler.

func (*GetFeaturesRequest) UnmarshalURLValues

func (m *GetFeaturesRequest) UnmarshalURLValues(prefix string, values url.Values) error

GetFeaturesRequest implement urlenc.URLValuesUnmarshaler.

func (*GetFeaturesRequest) Validate

func (this *GetFeaturesRequest) Validate() error

type GetFeaturesResponse

type GetFeaturesResponse struct {
	Data map[string]string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetFeaturesResponse) Descriptor deprecated

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

Deprecated: Use GetFeaturesResponse.ProtoReflect.Descriptor instead.

func (*GetFeaturesResponse) GetData

func (x *GetFeaturesResponse) GetData() map[string]string

func (*GetFeaturesResponse) MarshalJSON

func (m *GetFeaturesResponse) MarshalJSON() ([]byte, error)

GetFeaturesResponse implement json.Marshaler.

func (*GetFeaturesResponse) ProtoMessage

func (*GetFeaturesResponse) ProtoMessage()

func (*GetFeaturesResponse) ProtoReflect

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

func (*GetFeaturesResponse) Reset

func (x *GetFeaturesResponse) Reset()

func (*GetFeaturesResponse) String

func (x *GetFeaturesResponse) String() string

func (*GetFeaturesResponse) UnmarshalJSON

func (m *GetFeaturesResponse) UnmarshalJSON(b []byte) error

GetFeaturesResponse implement json.Marshaler.

func (*GetFeaturesResponse) UnmarshalURLValues

func (m *GetFeaturesResponse) UnmarshalURLValues(prefix string, values url.Values) error

GetFeaturesResponse implement urlenc.URLValuesUnmarshaler.

func (*GetFeaturesResponse) Validate

func (this *GetFeaturesResponse) Validate() error

type GetHealthRequest

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

func (*GetHealthRequest) Descriptor deprecated

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

Deprecated: Use GetHealthRequest.ProtoReflect.Descriptor instead.

func (*GetHealthRequest) MarshalJSON

func (m *GetHealthRequest) MarshalJSON() ([]byte, error)

GetHealthRequest implement json.Marshaler.

func (*GetHealthRequest) ProtoMessage

func (*GetHealthRequest) ProtoMessage()

func (*GetHealthRequest) ProtoReflect

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

func (*GetHealthRequest) Reset

func (x *GetHealthRequest) Reset()

func (*GetHealthRequest) String

func (x *GetHealthRequest) String() string

func (*GetHealthRequest) UnmarshalJSON

func (m *GetHealthRequest) UnmarshalJSON(b []byte) error

GetHealthRequest implement json.Marshaler.

func (*GetHealthRequest) UnmarshalURLValues

func (m *GetHealthRequest) UnmarshalURLValues(prefix string, values url.Values) error

GetHealthRequest implement urlenc.URLValuesUnmarshaler.

func (*GetHealthRequest) Validate

func (this *GetHealthRequest) Validate() error

type GetHealthResponse

type GetHealthResponse struct {
	Status  string          `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	Modules []*HealthModule `protobuf:"bytes,2,rep,name=modules,proto3" json:"modules,omitempty"`
	// contains filtered or unexported fields
}

func (*GetHealthResponse) Descriptor deprecated

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

Deprecated: Use GetHealthResponse.ProtoReflect.Descriptor instead.

func (*GetHealthResponse) GetModules

func (x *GetHealthResponse) GetModules() []*HealthModule

func (*GetHealthResponse) GetStatus

func (x *GetHealthResponse) GetStatus() string

func (*GetHealthResponse) MarshalJSON

func (m *GetHealthResponse) MarshalJSON() ([]byte, error)

GetHealthResponse implement json.Marshaler.

func (*GetHealthResponse) ProtoMessage

func (*GetHealthResponse) ProtoMessage()

func (*GetHealthResponse) ProtoReflect

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

func (*GetHealthResponse) Reset

func (x *GetHealthResponse) Reset()

func (*GetHealthResponse) String

func (x *GetHealthResponse) String() string

func (*GetHealthResponse) UnmarshalJSON

func (m *GetHealthResponse) UnmarshalJSON(b []byte) error

GetHealthResponse implement json.Marshaler.

func (*GetHealthResponse) UnmarshalURLValues

func (m *GetHealthResponse) UnmarshalURLValues(prefix string, values url.Values) error

GetHealthResponse implement urlenc.URLValuesUnmarshaler.

func (*GetHealthResponse) Validate

func (this *GetHealthResponse) Validate() error

type GetTenantGroupRequest

type GetTenantGroupRequest struct {
	ProjectId string `protobuf:"bytes,1,opt,name=projectId,proto3" json:"projectId,omitempty"`
	Env       string `protobuf:"bytes,2,opt,name=env,proto3" json:"env,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTenantGroupRequest) Descriptor deprecated

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

Deprecated: Use GetTenantGroupRequest.ProtoReflect.Descriptor instead.

func (*GetTenantGroupRequest) GetEnv

func (x *GetTenantGroupRequest) GetEnv() string

func (*GetTenantGroupRequest) GetProjectId

func (x *GetTenantGroupRequest) GetProjectId() string

func (*GetTenantGroupRequest) MarshalJSON

func (m *GetTenantGroupRequest) MarshalJSON() ([]byte, error)

GetTenantGroupRequest implement json.Marshaler.

func (*GetTenantGroupRequest) ProtoMessage

func (*GetTenantGroupRequest) ProtoMessage()

func (*GetTenantGroupRequest) ProtoReflect

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

func (*GetTenantGroupRequest) Reset

func (x *GetTenantGroupRequest) Reset()

func (*GetTenantGroupRequest) String

func (x *GetTenantGroupRequest) String() string

func (*GetTenantGroupRequest) UnmarshalJSON

func (m *GetTenantGroupRequest) UnmarshalJSON(b []byte) error

GetTenantGroupRequest implement json.Marshaler.

func (*GetTenantGroupRequest) UnmarshalURLValues

func (m *GetTenantGroupRequest) UnmarshalURLValues(prefix string, values url.Values) error

GetTenantGroupRequest implement urlenc.URLValuesUnmarshaler.

func (*GetTenantGroupRequest) Validate

func (this *GetTenantGroupRequest) Validate() error

type GetTenantGroupResponse

type GetTenantGroupResponse struct {
	Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTenantGroupResponse) Descriptor deprecated

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

Deprecated: Use GetTenantGroupResponse.ProtoReflect.Descriptor instead.

func (*GetTenantGroupResponse) GetData

func (x *GetTenantGroupResponse) GetData() string

func (*GetTenantGroupResponse) MarshalJSON

func (m *GetTenantGroupResponse) MarshalJSON() ([]byte, error)

GetTenantGroupResponse implement json.Marshaler.

func (*GetTenantGroupResponse) ProtoMessage

func (*GetTenantGroupResponse) ProtoMessage()

func (*GetTenantGroupResponse) ProtoReflect

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

func (*GetTenantGroupResponse) Reset

func (x *GetTenantGroupResponse) Reset()

func (*GetTenantGroupResponse) String

func (x *GetTenantGroupResponse) String() string

func (*GetTenantGroupResponse) UnmarshalJSON

func (m *GetTenantGroupResponse) UnmarshalJSON(b []byte) error

GetTenantGroupResponse implement json.Marshaler.

func (*GetTenantGroupResponse) UnmarshalURLValues

func (m *GetTenantGroupResponse) UnmarshalURLValues(prefix string, values url.Values) error

GetTenantGroupResponse implement urlenc.URLValuesUnmarshaler.

func (*GetTenantGroupResponse) Validate

func (this *GetTenantGroupResponse) Validate() error

type GlobalServiceClient

type GlobalServiceClient interface {
	GetHealth(ctx context.Context, in *GetHealthRequest, opts ...grpc.CallOption) (*GetHealthResponse, error)
	GetTenantGroup(ctx context.Context, in *GetTenantGroupRequest, opts ...grpc.CallOption) (*GetTenantGroupResponse, error)
	CreateTenant(ctx context.Context, in *CreateTenantRequest, opts ...grpc.CallOption) (*CreateTenantResponse, error)
	GetFeatures(ctx context.Context, in *GetFeaturesRequest, opts ...grpc.CallOption) (*GetFeaturesResponse, error)
}

GlobalServiceClient is the client API for GlobalService 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 GlobalServiceHandler

type GlobalServiceHandler interface {
	// GET /_api/health
	GetHealth(context.Context, *GetHealthRequest) (*GetHealthResponse, error)
	// GET /api/gateway/tenant-group
	GetTenantGroup(context.Context, *GetTenantGroupRequest) (*GetTenantGroupResponse, error)
	// POST /api/gateway/tenants
	CreateTenant(context.Context, *CreateTenantRequest) (*CreateTenantResponse, error)
	// GET /api/gateway/openapi/gateway-features/{clusterName}
	GetFeatures(context.Context, *GetFeaturesRequest) (*GetFeaturesResponse, error)
}

GlobalServiceHandler is the server API for GlobalService service.

type GlobalServiceServer

GlobalServiceServer is the server API for GlobalService service. All implementations should embed UnimplementedGlobalServiceServer for forward compatibility

type HealthModule

type HealthModule struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Status  string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*HealthModule) Descriptor deprecated

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

Deprecated: Use HealthModule.ProtoReflect.Descriptor instead.

func (*HealthModule) GetMessage

func (x *HealthModule) GetMessage() string

func (*HealthModule) GetName

func (x *HealthModule) GetName() string

func (*HealthModule) GetStatus

func (x *HealthModule) GetStatus() string

func (*HealthModule) MarshalJSON

func (m *HealthModule) MarshalJSON() ([]byte, error)

HealthModule implement json.Marshaler.

func (*HealthModule) ProtoMessage

func (*HealthModule) ProtoMessage()

func (*HealthModule) ProtoReflect

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

func (*HealthModule) Reset

func (x *HealthModule) Reset()

func (*HealthModule) String

func (x *HealthModule) String() string

func (*HealthModule) UnmarshalJSON

func (m *HealthModule) UnmarshalJSON(b []byte) error

HealthModule implement json.Marshaler.

func (*HealthModule) UnmarshalURLValues

func (m *HealthModule) UnmarshalURLValues(prefix string, values url.Values) error

HealthModule implement urlenc.URLValuesUnmarshaler.

func (*HealthModule) Validate

func (this *HealthModule) Validate() error

type UnimplementedGlobalServiceServer

type UnimplementedGlobalServiceServer struct {
}

UnimplementedGlobalServiceServer should be embedded to have forward compatible implementations.

func (*UnimplementedGlobalServiceServer) CreateTenant

func (*UnimplementedGlobalServiceServer) GetFeatures

func (*UnimplementedGlobalServiceServer) GetHealth

func (*UnimplementedGlobalServiceServer) GetTenantGroup

Jump to

Keyboard shortcuts

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