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: 25 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_legacy_upstream_lb_proto protoreflect.FileDescriptor

Functions

func RegisterUpstreamLbServiceHandler

func RegisterUpstreamLbServiceHandler(r http.Router, srv UpstreamLbServiceHandler, opts ...http.HandleOption)

RegisterUpstreamLbServiceHandler register UpstreamLbServiceHandler to http.Router.

func RegisterUpstreamLbServiceImp

func RegisterUpstreamLbServiceImp(regester transport.Register, srv UpstreamLbServiceServer, opts ...transport.ServiceOption)

RegisterUpstreamLbServiceImp legacy_upstream_lb.proto

func RegisterUpstreamLbServiceServer

func RegisterUpstreamLbServiceServer(s grpc1.ServiceRegistrar, srv UpstreamLbServiceServer, opts ...grpc1.HandleOption)

func ServiceNames

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

ServiceNames return all service names

func Types

func Types() []reflect.Type

func UpstreamLbServiceClientType

func UpstreamLbServiceClientType() reflect.Type

UpstreamLbServiceClientType .

func UpstreamLbServiceHandlerType

func UpstreamLbServiceHandlerType() reflect.Type

UpstreamLbServiceHandlerType .

func UpstreamLbServiceServerType

func UpstreamLbServiceServerType() reflect.Type

UpstreamLbServiceServerType .

Types

type TargetOfflineRequest

type TargetOfflineRequest struct {
	Lb *UpstreamLb `protobuf:"bytes,1,opt,name=lb,proto3" json:"lb,omitempty"`
	// contains filtered or unexported fields
}

func (*TargetOfflineRequest) Descriptor deprecated

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

Deprecated: Use TargetOfflineRequest.ProtoReflect.Descriptor instead.

func (*TargetOfflineRequest) GetLb

func (x *TargetOfflineRequest) GetLb() *UpstreamLb

func (*TargetOfflineRequest) MarshalJSON

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

TargetOfflineRequest implement json.Marshaler.

func (*TargetOfflineRequest) ProtoMessage

func (*TargetOfflineRequest) ProtoMessage()

func (*TargetOfflineRequest) ProtoReflect

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

func (*TargetOfflineRequest) Reset

func (x *TargetOfflineRequest) Reset()

func (*TargetOfflineRequest) String

func (x *TargetOfflineRequest) String() string

func (*TargetOfflineRequest) UnmarshalJSON

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

TargetOfflineRequest implement json.Marshaler.

func (*TargetOfflineRequest) UnmarshalURLValues

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

TargetOfflineRequest implement urlenc.URLValuesUnmarshaler.

func (*TargetOfflineRequest) Validate

func (this *TargetOfflineRequest) Validate() error

type TargetOfflineResponse

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

func (*TargetOfflineResponse) Descriptor deprecated

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

Deprecated: Use TargetOfflineResponse.ProtoReflect.Descriptor instead.

func (*TargetOfflineResponse) GetData

func (x *TargetOfflineResponse) GetData() bool

func (*TargetOfflineResponse) MarshalJSON

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

TargetOfflineResponse implement json.Marshaler.

func (*TargetOfflineResponse) ProtoMessage

func (*TargetOfflineResponse) ProtoMessage()

func (*TargetOfflineResponse) ProtoReflect

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

func (*TargetOfflineResponse) Reset

func (x *TargetOfflineResponse) Reset()

func (*TargetOfflineResponse) String

func (x *TargetOfflineResponse) String() string

func (*TargetOfflineResponse) UnmarshalJSON

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

TargetOfflineResponse implement json.Marshaler.

func (*TargetOfflineResponse) UnmarshalURLValues

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

TargetOfflineResponse implement urlenc.URLValuesUnmarshaler.

func (*TargetOfflineResponse) Validate

func (this *TargetOfflineResponse) Validate() error

type TargetOnlineRequest

type TargetOnlineRequest struct {
	Lb *UpstreamLb `protobuf:"bytes,1,opt,name=lb,proto3" json:"lb,omitempty"`
	// contains filtered or unexported fields
}

func (*TargetOnlineRequest) Descriptor deprecated

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

Deprecated: Use TargetOnlineRequest.ProtoReflect.Descriptor instead.

func (*TargetOnlineRequest) GetLb

func (x *TargetOnlineRequest) GetLb() *UpstreamLb

func (*TargetOnlineRequest) MarshalJSON

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

TargetOnlineRequest implement json.Marshaler.

func (*TargetOnlineRequest) ProtoMessage

func (*TargetOnlineRequest) ProtoMessage()

func (*TargetOnlineRequest) ProtoReflect

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

func (*TargetOnlineRequest) Reset

func (x *TargetOnlineRequest) Reset()

func (*TargetOnlineRequest) String

func (x *TargetOnlineRequest) String() string

func (*TargetOnlineRequest) UnmarshalJSON

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

TargetOnlineRequest implement json.Marshaler.

func (*TargetOnlineRequest) UnmarshalURLValues

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

TargetOnlineRequest implement urlenc.URLValuesUnmarshaler.

func (*TargetOnlineRequest) Validate

func (this *TargetOnlineRequest) Validate() error

type TargetOnlineResponse

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

func (*TargetOnlineResponse) Descriptor deprecated

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

Deprecated: Use TargetOnlineResponse.ProtoReflect.Descriptor instead.

func (*TargetOnlineResponse) GetData

func (x *TargetOnlineResponse) GetData() bool

func (*TargetOnlineResponse) MarshalJSON

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

TargetOnlineResponse implement json.Marshaler.

func (*TargetOnlineResponse) ProtoMessage

func (*TargetOnlineResponse) ProtoMessage()

func (*TargetOnlineResponse) ProtoReflect

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

func (*TargetOnlineResponse) Reset

func (x *TargetOnlineResponse) Reset()

func (*TargetOnlineResponse) String

func (x *TargetOnlineResponse) String() string

func (*TargetOnlineResponse) UnmarshalJSON

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

TargetOnlineResponse implement json.Marshaler.

func (*TargetOnlineResponse) UnmarshalURLValues

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

TargetOnlineResponse implement urlenc.URLValuesUnmarshaler.

func (*TargetOnlineResponse) Validate

func (this *TargetOnlineResponse) Validate() error

type UnimplementedUpstreamLbServiceServer

type UnimplementedUpstreamLbServiceServer struct {
}

UnimplementedUpstreamLbServiceServer should be embedded to have forward compatible implementations.

func (*UnimplementedUpstreamLbServiceServer) TargetOffline

func (*UnimplementedUpstreamLbServiceServer) TargetOnline

type UpstreamLb

type UpstreamLb struct {
	Az              string   `protobuf:"bytes,1,opt,name=az,proto3" json:"az,omitempty"`
	LbName          string   `protobuf:"bytes,2,opt,name=lbName,proto3" json:"lbName,omitempty"`
	OrgId           string   `protobuf:"bytes,3,opt,name=orgId,proto3" json:"orgId,omitempty"`
	ProjectId       string   `protobuf:"bytes,4,opt,name=projectId,proto3" json:"projectId,omitempty"`
	Env             string   `protobuf:"bytes,5,opt,name=env,proto3" json:"env,omitempty"`
	DeploymentId    int32    `protobuf:"varint,6,opt,name=deploymentId,proto3" json:"deploymentId,omitempty"`
	HealthcheckPath string   `protobuf:"bytes,7,opt,name=healthcheckPath,proto3" json:"healthcheckPath,omitempty"`
	Targets         []string `protobuf:"bytes,8,rep,name=targets,proto3" json:"targets,omitempty"`
	// contains filtered or unexported fields
}

func (*UpstreamLb) Descriptor deprecated

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

Deprecated: Use UpstreamLb.ProtoReflect.Descriptor instead.

func (*UpstreamLb) GetAz

func (x *UpstreamLb) GetAz() string

func (*UpstreamLb) GetDeploymentId

func (x *UpstreamLb) GetDeploymentId() int32

func (*UpstreamLb) GetEnv

func (x *UpstreamLb) GetEnv() string

func (*UpstreamLb) GetHealthcheckPath

func (x *UpstreamLb) GetHealthcheckPath() string

func (*UpstreamLb) GetLbName

func (x *UpstreamLb) GetLbName() string

func (*UpstreamLb) GetOrgId

func (x *UpstreamLb) GetOrgId() string

func (*UpstreamLb) GetProjectId

func (x *UpstreamLb) GetProjectId() string

func (*UpstreamLb) GetTargets

func (x *UpstreamLb) GetTargets() []string

func (*UpstreamLb) MarshalJSON

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

UpstreamLb implement json.Marshaler.

func (*UpstreamLb) ProtoMessage

func (*UpstreamLb) ProtoMessage()

func (*UpstreamLb) ProtoReflect

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

func (*UpstreamLb) Reset

func (x *UpstreamLb) Reset()

func (*UpstreamLb) String

func (x *UpstreamLb) String() string

func (*UpstreamLb) UnmarshalJSON

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

UpstreamLb implement json.Marshaler.

func (*UpstreamLb) UnmarshalURLValues

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

UpstreamLb implement urlenc.URLValuesUnmarshaler.

func (*UpstreamLb) Validate

func (this *UpstreamLb) Validate() error

type UpstreamLbServiceClient

type UpstreamLbServiceClient interface {
	TargetOnline(ctx context.Context, in *TargetOnlineRequest, opts ...grpc.CallOption) (*TargetOnlineResponse, error)
	TargetOffline(ctx context.Context, in *TargetOfflineRequest, opts ...grpc.CallOption) (*TargetOfflineResponse, error)
}

UpstreamLbServiceClient is the client API for UpstreamLbService 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 UpstreamLbServiceHandler

type UpstreamLbServiceHandler interface {
	// PUT /api/gateway/target/online
	TargetOnline(context.Context, *TargetOnlineRequest) (*TargetOnlineResponse, error)
	// PUT /api/gateway/target/offline
	TargetOffline(context.Context, *TargetOfflineRequest) (*TargetOfflineResponse, error)
}

UpstreamLbServiceHandler is the server API for UpstreamLbService service.

type UpstreamLbServiceServer

type UpstreamLbServiceServer interface {
	TargetOnline(context.Context, *TargetOnlineRequest) (*TargetOnlineResponse, error)
	TargetOffline(context.Context, *TargetOfflineRequest) (*TargetOfflineResponse, error)
}

UpstreamLbServiceServer is the server API for UpstreamLbService service. All implementations should embed UnimplementedUpstreamLbServiceServer for forward compatibility

Jump to

Keyboard shortcuts

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