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: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_configcenter_proto protoreflect.FileDescriptor

Functions

func ConfigCenterServiceClientType

func ConfigCenterServiceClientType() reflect.Type

ConfigCenterServiceClientType .

func ConfigCenterServiceHandlerType

func ConfigCenterServiceHandlerType() reflect.Type

ConfigCenterServiceHandlerType .

func ConfigCenterServiceServerType

func ConfigCenterServiceServerType() reflect.Type

ConfigCenterServiceServerType .

func RegisterConfigCenterServiceHandler

func RegisterConfigCenterServiceHandler(r http.Router, srv ConfigCenterServiceHandler, opts ...http.HandleOption)

RegisterConfigCenterServiceHandler register ConfigCenterServiceHandler to http.Router.

func RegisterConfigCenterServiceImp

func RegisterConfigCenterServiceImp(regester transport.Register, srv ConfigCenterServiceServer, opts ...transport.ServiceOption)

RegisterConfigCenterServiceImp configcenter.proto

func RegisterConfigCenterServiceServer

func RegisterConfigCenterServiceServer(s grpc1.ServiceRegistrar, srv ConfigCenterServiceServer, opts ...grpc1.HandleOption)

func ServiceNames

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

ServiceNames return all service names

func Types

func Types() []reflect.Type

Types

type ConfigCenterServiceClient

type ConfigCenterServiceClient interface {
	GetGroups(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*GetGroupResponse, error)
	GetGroupProperties(ctx context.Context, in *GetGroupPropertiesRequest, opts ...grpc.CallOption) (*GetGroupPropertiesResponse, error)
	SaveGroupProperties(ctx context.Context, in *SaveGroupPropertiesRequest, opts ...grpc.CallOption) (*SaveGroupPropertiesResponse, error)
}

ConfigCenterServiceClient is the client API for ConfigCenterService 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 ConfigCenterServiceHandler

type ConfigCenterServiceHandler interface {
	// GET /api/msp/config/tenants/{tenantID}/groups
	GetGroups(context.Context, *GetGroupRequest) (*GetGroupResponse, error)
	// GET /api/msp/config/tenants/{tenantID}/groups/{groupID}
	GetGroupProperties(context.Context, *GetGroupPropertiesRequest) (*GetGroupPropertiesResponse, error)
	// POST /api/msp/config/tenants/{tenantID}/groups/{groupID}
	SaveGroupProperties(context.Context, *SaveGroupPropertiesRequest) (*SaveGroupPropertiesResponse, error)
}

ConfigCenterServiceHandler is the server API for ConfigCenterService service.

type ConfigCenterServiceServer

type ConfigCenterServiceServer interface {
	GetGroups(context.Context, *GetGroupRequest) (*GetGroupResponse, error)
	GetGroupProperties(context.Context, *GetGroupPropertiesRequest) (*GetGroupPropertiesResponse, error)
	SaveGroupProperties(context.Context, *SaveGroupPropertiesRequest) (*SaveGroupPropertiesResponse, error)
}

ConfigCenterServiceServer is the server API for ConfigCenterService service. All implementations should embed UnimplementedConfigCenterServiceServer for forward compatibility

type GetGroupPropertiesRequest

type GetGroupPropertiesRequest struct {
	TenantID string `protobuf:"bytes,1,opt,name=tenantID,proto3" json:"tenantID,omitempty"`
	GroupID  string `protobuf:"bytes,2,opt,name=groupID,proto3" json:"groupID,omitempty"`
	// contains filtered or unexported fields
}

GetGroupProperties

func (*GetGroupPropertiesRequest) Descriptor deprecated

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

Deprecated: Use GetGroupPropertiesRequest.ProtoReflect.Descriptor instead.

func (*GetGroupPropertiesRequest) GetGroupID

func (x *GetGroupPropertiesRequest) GetGroupID() string

func (*GetGroupPropertiesRequest) GetTenantID

func (x *GetGroupPropertiesRequest) GetTenantID() string

func (*GetGroupPropertiesRequest) MarshalJSON

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

GetGroupPropertiesRequest implement json.Marshaler.

func (*GetGroupPropertiesRequest) ProtoMessage

func (*GetGroupPropertiesRequest) ProtoMessage()

func (*GetGroupPropertiesRequest) ProtoReflect

func (*GetGroupPropertiesRequest) Reset

func (x *GetGroupPropertiesRequest) Reset()

func (*GetGroupPropertiesRequest) String

func (x *GetGroupPropertiesRequest) String() string

func (*GetGroupPropertiesRequest) UnmarshalJSON

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

GetGroupPropertiesRequest implement json.Marshaler.

func (*GetGroupPropertiesRequest) UnmarshalURLValues

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

GetGroupPropertiesRequest implement urlenc.URLValuesUnmarshaler.

func (*GetGroupPropertiesRequest) Validate

func (this *GetGroupPropertiesRequest) Validate() error

type GetGroupPropertiesResponse

type GetGroupPropertiesResponse struct {
	Data []*GroupProperties `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGroupPropertiesResponse) Descriptor deprecated

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

Deprecated: Use GetGroupPropertiesResponse.ProtoReflect.Descriptor instead.

func (*GetGroupPropertiesResponse) GetData

func (*GetGroupPropertiesResponse) MarshalJSON

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

GetGroupPropertiesResponse implement json.Marshaler.

func (*GetGroupPropertiesResponse) ProtoMessage

func (*GetGroupPropertiesResponse) ProtoMessage()

func (*GetGroupPropertiesResponse) ProtoReflect

func (*GetGroupPropertiesResponse) Reset

func (x *GetGroupPropertiesResponse) Reset()

func (*GetGroupPropertiesResponse) String

func (x *GetGroupPropertiesResponse) String() string

func (*GetGroupPropertiesResponse) UnmarshalJSON

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

GetGroupPropertiesResponse implement json.Marshaler.

func (*GetGroupPropertiesResponse) UnmarshalURLValues

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

GetGroupPropertiesResponse implement urlenc.URLValuesUnmarshaler.

func (*GetGroupPropertiesResponse) Validate

func (this *GetGroupPropertiesResponse) Validate() error

type GetGroupRequest

type GetGroupRequest struct {
	TenantID string `protobuf:"bytes,1,opt,name=tenantID,proto3" json:"tenantID,omitempty"`
	Keyword  string `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"`
	PageNum  int64  `protobuf:"varint,3,opt,name=pageNum,proto3" json:"pageNum,omitempty"`
	PageSize int64  `protobuf:"varint,4,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

GetGroups

func (*GetGroupRequest) Descriptor deprecated

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

Deprecated: Use GetGroupRequest.ProtoReflect.Descriptor instead.

func (*GetGroupRequest) GetKeyword

func (x *GetGroupRequest) GetKeyword() string

func (*GetGroupRequest) GetPageNum

func (x *GetGroupRequest) GetPageNum() int64

func (*GetGroupRequest) GetPageSize

func (x *GetGroupRequest) GetPageSize() int64

func (*GetGroupRequest) GetTenantID

func (x *GetGroupRequest) GetTenantID() string

func (*GetGroupRequest) MarshalJSON

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

GetGroupRequest implement json.Marshaler.

func (*GetGroupRequest) ProtoMessage

func (*GetGroupRequest) ProtoMessage()

func (*GetGroupRequest) ProtoReflect

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

func (*GetGroupRequest) Reset

func (x *GetGroupRequest) Reset()

func (*GetGroupRequest) String

func (x *GetGroupRequest) String() string

func (*GetGroupRequest) UnmarshalJSON

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

GetGroupRequest implement json.Marshaler.

func (*GetGroupRequest) UnmarshalURLValues

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

GetGroupRequest implement urlenc.URLValuesUnmarshaler.

func (*GetGroupRequest) Validate

func (this *GetGroupRequest) Validate() error

type GetGroupResponse

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

func (*GetGroupResponse) Descriptor deprecated

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

Deprecated: Use GetGroupResponse.ProtoReflect.Descriptor instead.

func (*GetGroupResponse) GetData

func (x *GetGroupResponse) GetData() *Groups

func (*GetGroupResponse) MarshalJSON

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

GetGroupResponse implement json.Marshaler.

func (*GetGroupResponse) ProtoMessage

func (*GetGroupResponse) ProtoMessage()

func (*GetGroupResponse) ProtoReflect

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

func (*GetGroupResponse) Reset

func (x *GetGroupResponse) Reset()

func (*GetGroupResponse) String

func (x *GetGroupResponse) String() string

func (*GetGroupResponse) UnmarshalJSON

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

GetGroupResponse implement json.Marshaler.

func (*GetGroupResponse) UnmarshalURLValues

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

GetGroupResponse implement urlenc.URLValuesUnmarshaler.

func (*GetGroupResponse) Validate

func (this *GetGroupResponse) Validate() error

type GroupProperties

type GroupProperties struct {
	Group      string      `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	Properties []*Property `protobuf:"bytes,2,rep,name=properties,proto3" json:"properties,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupProperties) Descriptor deprecated

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

Deprecated: Use GroupProperties.ProtoReflect.Descriptor instead.

func (*GroupProperties) GetGroup

func (x *GroupProperties) GetGroup() string

func (*GroupProperties) GetProperties

func (x *GroupProperties) GetProperties() []*Property

func (*GroupProperties) MarshalJSON

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

GroupProperties implement json.Marshaler.

func (*GroupProperties) ProtoMessage

func (*GroupProperties) ProtoMessage()

func (*GroupProperties) ProtoReflect

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

func (*GroupProperties) Reset

func (x *GroupProperties) Reset()

func (*GroupProperties) String

func (x *GroupProperties) String() string

func (*GroupProperties) UnmarshalJSON

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

GroupProperties implement json.Marshaler.

func (*GroupProperties) UnmarshalURLValues

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

GroupProperties implement urlenc.URLValuesUnmarshaler.

func (*GroupProperties) Validate

func (this *GroupProperties) Validate() error

type Groups

type Groups struct {
	Total int64    `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	List  []string `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*Groups) Descriptor deprecated

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

Deprecated: Use Groups.ProtoReflect.Descriptor instead.

func (*Groups) GetList

func (x *Groups) GetList() []string

func (*Groups) GetTotal

func (x *Groups) GetTotal() int64

func (*Groups) MarshalJSON

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

Groups implement json.Marshaler.

func (*Groups) ProtoMessage

func (*Groups) ProtoMessage()

func (*Groups) ProtoReflect

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

func (*Groups) Reset

func (x *Groups) Reset()

func (*Groups) String

func (x *Groups) String() string

func (*Groups) UnmarshalJSON

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

Groups implement json.Marshaler.

func (*Groups) UnmarshalURLValues

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

Groups implement urlenc.URLValuesUnmarshaler.

func (*Groups) Validate

func (this *Groups) Validate() error

type Property

type Property struct {
	Key    string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value  string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
	// contains filtered or unexported fields
}

func (*Property) Descriptor deprecated

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

Deprecated: Use Property.ProtoReflect.Descriptor instead.

func (*Property) GetKey

func (x *Property) GetKey() string

func (*Property) GetSource

func (x *Property) GetSource() string

func (*Property) GetValue

func (x *Property) GetValue() string

func (*Property) MarshalJSON

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

Property implement json.Marshaler.

func (*Property) ProtoMessage

func (*Property) ProtoMessage()

func (*Property) ProtoReflect

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

func (*Property) Reset

func (x *Property) Reset()

func (*Property) String

func (x *Property) String() string

func (*Property) UnmarshalJSON

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

Property implement json.Marshaler.

func (*Property) UnmarshalURLValues

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

Property implement urlenc.URLValuesUnmarshaler.

func (*Property) Validate

func (this *Property) Validate() error

type SaveGroupPropertiesRequest

type SaveGroupPropertiesRequest struct {
	TenantID   string      `protobuf:"bytes,1,opt,name=tenantID,proto3" json:"tenantID,omitempty"`
	GroupID    string      `protobuf:"bytes,2,opt,name=groupID,proto3" json:"groupID,omitempty"`
	Properties []*Property `protobuf:"bytes,3,rep,name=properties,proto3" json:"properties,omitempty"`
	// contains filtered or unexported fields
}

SaveGroupProperties

func (*SaveGroupPropertiesRequest) Descriptor deprecated

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

Deprecated: Use SaveGroupPropertiesRequest.ProtoReflect.Descriptor instead.

func (*SaveGroupPropertiesRequest) GetGroupID

func (x *SaveGroupPropertiesRequest) GetGroupID() string

func (*SaveGroupPropertiesRequest) GetProperties

func (x *SaveGroupPropertiesRequest) GetProperties() []*Property

func (*SaveGroupPropertiesRequest) GetTenantID

func (x *SaveGroupPropertiesRequest) GetTenantID() string

func (*SaveGroupPropertiesRequest) MarshalJSON

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

SaveGroupPropertiesRequest implement json.Marshaler.

func (*SaveGroupPropertiesRequest) ProtoMessage

func (*SaveGroupPropertiesRequest) ProtoMessage()

func (*SaveGroupPropertiesRequest) ProtoReflect

func (*SaveGroupPropertiesRequest) Reset

func (x *SaveGroupPropertiesRequest) Reset()

func (*SaveGroupPropertiesRequest) String

func (x *SaveGroupPropertiesRequest) String() string

func (*SaveGroupPropertiesRequest) UnmarshalJSON

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

SaveGroupPropertiesRequest implement json.Marshaler.

func (*SaveGroupPropertiesRequest) UnmarshalURLValues

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

SaveGroupPropertiesRequest implement urlenc.URLValuesUnmarshaler.

func (*SaveGroupPropertiesRequest) Validate

func (this *SaveGroupPropertiesRequest) Validate() error

type SaveGroupPropertiesResponse

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

func (*SaveGroupPropertiesResponse) Descriptor deprecated

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

Deprecated: Use SaveGroupPropertiesResponse.ProtoReflect.Descriptor instead.

func (*SaveGroupPropertiesResponse) GetData

func (x *SaveGroupPropertiesResponse) GetData() bool

func (*SaveGroupPropertiesResponse) MarshalJSON

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

SaveGroupPropertiesResponse implement json.Marshaler.

func (*SaveGroupPropertiesResponse) ProtoMessage

func (*SaveGroupPropertiesResponse) ProtoMessage()

func (*SaveGroupPropertiesResponse) ProtoReflect

func (*SaveGroupPropertiesResponse) Reset

func (x *SaveGroupPropertiesResponse) Reset()

func (*SaveGroupPropertiesResponse) String

func (x *SaveGroupPropertiesResponse) String() string

func (*SaveGroupPropertiesResponse) UnmarshalJSON

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

SaveGroupPropertiesResponse implement json.Marshaler.

func (*SaveGroupPropertiesResponse) UnmarshalURLValues

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

SaveGroupPropertiesResponse implement urlenc.URLValuesUnmarshaler.

func (*SaveGroupPropertiesResponse) Validate

func (this *SaveGroupPropertiesResponse) Validate() error

type UnimplementedConfigCenterServiceServer

type UnimplementedConfigCenterServiceServer struct {
}

UnimplementedConfigCenterServiceServer should be embedded to have forward compatible implementations.

func (*UnimplementedConfigCenterServiceServer) GetGroupProperties

func (*UnimplementedConfigCenterServiceServer) GetGroups

func (*UnimplementedConfigCenterServiceServer) SaveGroupProperties

Jump to

Keyboard shortcuts

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