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: 29 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_micro_api_proto protoreflect.FileDescriptor

Functions

func ApiServiceClientType

func ApiServiceClientType() reflect.Type

ApiServiceClientType .

func ApiServiceHandlerType

func ApiServiceHandlerType() reflect.Type

ApiServiceHandlerType .

func ApiServiceServerType

func ApiServiceServerType() reflect.Type

ApiServiceServerType .

func RegisterApiServiceHandler

func RegisterApiServiceHandler(r http.Router, srv ApiServiceHandler, opts ...http.HandleOption)

RegisterApiServiceHandler register ApiServiceHandler to http.Router.

func RegisterApiServiceImp

func RegisterApiServiceImp(regester transport.Register, srv ApiServiceServer, opts ...transport.ServiceOption)

RegisterApiServiceImp micro_api.proto

func RegisterApiServiceServer

func RegisterApiServiceServer(s grpc1.ServiceRegistrar, srv ApiServiceServer, opts ...grpc1.HandleOption)

func ServiceNames

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

ServiceNames return all service names

func Types

func Types() []reflect.Type

Types

type ApiRequest

type ApiRequest struct {
	Path           string   `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Method         string   `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	RedirectType   string   `protobuf:"bytes,3,opt,name=redirectType,proto3" json:"redirectType,omitempty"`
	RedirectAddr   string   `protobuf:"bytes,4,opt,name=redirectAddr,proto3" json:"redirectAddr,omitempty"`
	RedirectPath   string   `protobuf:"bytes,5,opt,name=redirectPath,proto3" json:"redirectPath,omitempty"`
	Hosts          []string `protobuf:"bytes,6,rep,name=hosts,proto3" json:"hosts,omitempty"`
	ProjectId      string   `protobuf:"bytes,7,opt,name=projectId,proto3" json:"projectId,omitempty"`
	Description    string   `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"`
	DiceApp        string   `protobuf:"bytes,9,opt,name=diceApp,proto3" json:"diceApp,omitempty"`
	DiceService    string   `protobuf:"bytes,10,opt,name=diceService,proto3" json:"diceService,omitempty"`
	OuterNetEnable bool     `protobuf:"varint,11,opt,name=outerNetEnable,proto3" json:"outerNetEnable,omitempty"`
	RuntimeId      string   `protobuf:"bytes,12,opt,name=runtimeId,proto3" json:"runtimeId,omitempty"`
	Env            string   `protobuf:"bytes,13,opt,name=env,proto3" json:"env,omitempty"`
	Policies       []string `protobuf:"bytes,14,rep,name=policies,proto3" json:"policies,omitempty"`
	ConsumerId     string   `protobuf:"bytes,15,opt,name=consumerId,proto3" json:"consumerId,omitempty"`
	// contains filtered or unexported fields
}

func (*ApiRequest) Descriptor deprecated

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

Deprecated: Use ApiRequest.ProtoReflect.Descriptor instead.

func (*ApiRequest) GetConsumerId

func (x *ApiRequest) GetConsumerId() string

func (*ApiRequest) GetDescription

func (x *ApiRequest) GetDescription() string

func (*ApiRequest) GetDiceApp

func (x *ApiRequest) GetDiceApp() string

func (*ApiRequest) GetDiceService

func (x *ApiRequest) GetDiceService() string

func (*ApiRequest) GetEnv

func (x *ApiRequest) GetEnv() string

func (*ApiRequest) GetHosts

func (x *ApiRequest) GetHosts() []string

func (*ApiRequest) GetMethod

func (x *ApiRequest) GetMethod() string

func (*ApiRequest) GetOuterNetEnable

func (x *ApiRequest) GetOuterNetEnable() bool

func (*ApiRequest) GetPath

func (x *ApiRequest) GetPath() string

func (*ApiRequest) GetPolicies

func (x *ApiRequest) GetPolicies() []string

func (*ApiRequest) GetProjectId

func (x *ApiRequest) GetProjectId() string

func (*ApiRequest) GetRedirectAddr

func (x *ApiRequest) GetRedirectAddr() string

func (*ApiRequest) GetRedirectPath

func (x *ApiRequest) GetRedirectPath() string

func (*ApiRequest) GetRedirectType

func (x *ApiRequest) GetRedirectType() string

func (*ApiRequest) GetRuntimeId

func (x *ApiRequest) GetRuntimeId() string

func (*ApiRequest) MarshalJSON

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

ApiRequest implement json.Marshaler.

func (*ApiRequest) ProtoMessage

func (*ApiRequest) ProtoMessage()

func (*ApiRequest) ProtoReflect

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

func (*ApiRequest) Reset

func (x *ApiRequest) Reset()

func (*ApiRequest) String

func (x *ApiRequest) String() string

func (*ApiRequest) UnmarshalJSON

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

ApiRequest implement json.Marshaler.

func (*ApiRequest) UnmarshalURLValues

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

ApiRequest implement urlenc.URLValuesUnmarshaler.

func (*ApiRequest) Validate

func (this *ApiRequest) Validate() error

type ApiServiceClient

type ApiServiceClient interface {
	// +publish path:"/api/gateway/api"
	GetApis(ctx context.Context, in *GetApisRequest, opts ...grpc.CallOption) (*GetApisResponse, error)
	// +publish path:"/api/gateway/api"
	CreateApi(ctx context.Context, in *CreateApiRequest, opts ...grpc.CallOption) (*CreateApiResponse, error)
	// +publish path:"/api/gateway/api/{apiId}"
	UpdateApi(ctx context.Context, in *UpdateApiRequest, opts ...grpc.CallOption) (*UpdateApiResponse, error)
	// +publish path:"/api/gateway/api/{apiId}"
	DeleteApi(ctx context.Context, in *DeleteApiRequest, opts ...grpc.CallOption) (*DeleteApiResponse, error)
}

ApiServiceClient is the client API for ApiService 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 ApiServiceHandler

type ApiServiceHandler interface {
	// +publish path:"/api/gateway/api"
	// GET /api/gateway/api
	GetApis(context.Context, *GetApisRequest) (*GetApisResponse, error)
	// +publish path:"/api/gateway/api"
	// POST /api/gateway/api
	CreateApi(context.Context, *CreateApiRequest) (*CreateApiResponse, error)
	// +publish path:"/api/gateway/api/{apiId}"
	// PATCH /api/gateway/api/{apiId}
	UpdateApi(context.Context, *UpdateApiRequest) (*UpdateApiResponse, error)
	// +publish path:"/api/gateway/api/{apiId}"
	// DELETE /api/gateway/api/{apiId}
	DeleteApi(context.Context, *DeleteApiRequest) (*DeleteApiResponse, error)
}

ApiServiceHandler is the server API for ApiService service.

type ApiServiceServer

type ApiServiceServer interface {
	// +publish path:"/api/gateway/api"
	GetApis(context.Context, *GetApisRequest) (*GetApisResponse, error)
	// +publish path:"/api/gateway/api"
	CreateApi(context.Context, *CreateApiRequest) (*CreateApiResponse, error)
	// +publish path:"/api/gateway/api/{apiId}"
	UpdateApi(context.Context, *UpdateApiRequest) (*UpdateApiResponse, error)
	// +publish path:"/api/gateway/api/{apiId}"
	DeleteApi(context.Context, *DeleteApiRequest) (*DeleteApiResponse, error)
}

ApiServiceServer is the server API for ApiService service. All implementations should embed UnimplementedApiServiceServer for forward compatibility

type CreateApiRequest

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

func (*CreateApiRequest) Descriptor deprecated

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

Deprecated: Use CreateApiRequest.ProtoReflect.Descriptor instead.

func (*CreateApiRequest) GetApiRequest

func (x *CreateApiRequest) GetApiRequest() *ApiRequest

func (*CreateApiRequest) MarshalJSON

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

CreateApiRequest implement json.Marshaler.

func (*CreateApiRequest) ProtoMessage

func (*CreateApiRequest) ProtoMessage()

func (*CreateApiRequest) ProtoReflect

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

func (*CreateApiRequest) Reset

func (x *CreateApiRequest) Reset()

func (*CreateApiRequest) String

func (x *CreateApiRequest) String() string

func (*CreateApiRequest) UnmarshalJSON

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

CreateApiRequest implement json.Marshaler.

func (*CreateApiRequest) UnmarshalURLValues

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

CreateApiRequest implement urlenc.URLValuesUnmarshaler.

func (*CreateApiRequest) Validate

func (this *CreateApiRequest) Validate() error

type CreateApiResponse

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

func (*CreateApiResponse) Descriptor deprecated

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

Deprecated: Use CreateApiResponse.ProtoReflect.Descriptor instead.

func (*CreateApiResponse) GetApiId

func (x *CreateApiResponse) GetApiId() string

func (*CreateApiResponse) MarshalJSON

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

CreateApiResponse implement json.Marshaler.

func (*CreateApiResponse) ProtoMessage

func (*CreateApiResponse) ProtoMessage()

func (*CreateApiResponse) ProtoReflect

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

func (*CreateApiResponse) Reset

func (x *CreateApiResponse) Reset()

func (*CreateApiResponse) String

func (x *CreateApiResponse) String() string

func (*CreateApiResponse) UnmarshalJSON

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

CreateApiResponse implement json.Marshaler.

func (*CreateApiResponse) UnmarshalURLValues

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

CreateApiResponse implement urlenc.URLValuesUnmarshaler.

func (*CreateApiResponse) Validate

func (this *CreateApiResponse) Validate() error

type DeleteApiRequest

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

func (*DeleteApiRequest) Descriptor deprecated

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

Deprecated: Use DeleteApiRequest.ProtoReflect.Descriptor instead.

func (*DeleteApiRequest) GetApiId

func (x *DeleteApiRequest) GetApiId() string

func (*DeleteApiRequest) MarshalJSON

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

DeleteApiRequest implement json.Marshaler.

func (*DeleteApiRequest) ProtoMessage

func (*DeleteApiRequest) ProtoMessage()

func (*DeleteApiRequest) ProtoReflect

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

func (*DeleteApiRequest) Reset

func (x *DeleteApiRequest) Reset()

func (*DeleteApiRequest) String

func (x *DeleteApiRequest) String() string

func (*DeleteApiRequest) UnmarshalJSON

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

DeleteApiRequest implement json.Marshaler.

func (*DeleteApiRequest) UnmarshalURLValues

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

DeleteApiRequest implement urlenc.URLValuesUnmarshaler.

func (*DeleteApiRequest) Validate

func (this *DeleteApiRequest) Validate() error

type DeleteApiResponse

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

func (*DeleteApiResponse) Descriptor deprecated

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

Deprecated: Use DeleteApiResponse.ProtoReflect.Descriptor instead.

func (*DeleteApiResponse) GetData

func (x *DeleteApiResponse) GetData() bool

func (*DeleteApiResponse) MarshalJSON

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

DeleteApiResponse implement json.Marshaler.

func (*DeleteApiResponse) ProtoMessage

func (*DeleteApiResponse) ProtoMessage()

func (*DeleteApiResponse) ProtoReflect

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

func (*DeleteApiResponse) Reset

func (x *DeleteApiResponse) Reset()

func (*DeleteApiResponse) String

func (x *DeleteApiResponse) String() string

func (*DeleteApiResponse) UnmarshalJSON

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

DeleteApiResponse implement json.Marshaler.

func (*DeleteApiResponse) UnmarshalURLValues

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

DeleteApiResponse implement urlenc.URLValuesUnmarshaler.

func (*DeleteApiResponse) Validate

func (this *DeleteApiResponse) Validate() error

type GetApisRequest

type GetApisRequest struct {
	From         string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	Method       string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	DiceApp      string `protobuf:"bytes,3,opt,name=diceApp,proto3" json:"diceApp,omitempty"`
	DiceService  string `protobuf:"bytes,4,opt,name=diceService,proto3" json:"diceService,omitempty"`
	RuntimeId    string `protobuf:"bytes,5,opt,name=runtimeId,proto3" json:"runtimeId,omitempty"`
	ApiPath      string `protobuf:"bytes,6,opt,name=apiPath,proto3" json:"apiPath,omitempty"`
	RegisterType string `protobuf:"bytes,7,opt,name=registerType,proto3" json:"registerType,omitempty"`
	NetType      string `protobuf:"bytes,8,opt,name=netType,proto3" json:"netType,omitempty"`
	NeedAuth     int32  `protobuf:"varint,9,opt,name=needAuth,proto3" json:"needAuth,omitempty"`
	SortField    string `protobuf:"bytes,10,opt,name=sortField,proto3" json:"sortField,omitempty"`
	SortType     string `protobuf:"bytes,11,opt,name=sortType,proto3" json:"sortType,omitempty"`
	OrgId        string `protobuf:"bytes,12,opt,name=orgId,proto3" json:"orgId,omitempty"`
	ProjectId    string `protobuf:"bytes,13,opt,name=projectId,proto3" json:"projectId,omitempty"`
	Env          string `protobuf:"bytes,14,opt,name=env,proto3" json:"env,omitempty"`
	Page         int64  `protobuf:"varint,15,opt,name=page,proto3" json:"page,omitempty"`
	Size         int64  `protobuf:"varint,16,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*GetApisRequest) Descriptor deprecated

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

Deprecated: Use GetApisRequest.ProtoReflect.Descriptor instead.

func (*GetApisRequest) GetApiPath

func (x *GetApisRequest) GetApiPath() string

func (*GetApisRequest) GetDiceApp

func (x *GetApisRequest) GetDiceApp() string

func (*GetApisRequest) GetDiceService

func (x *GetApisRequest) GetDiceService() string

func (*GetApisRequest) GetEnv

func (x *GetApisRequest) GetEnv() string

func (*GetApisRequest) GetFrom

func (x *GetApisRequest) GetFrom() string

func (*GetApisRequest) GetMethod

func (x *GetApisRequest) GetMethod() string

func (*GetApisRequest) GetNeedAuth

func (x *GetApisRequest) GetNeedAuth() int32

func (*GetApisRequest) GetNetType

func (x *GetApisRequest) GetNetType() string

func (*GetApisRequest) GetOrgId

func (x *GetApisRequest) GetOrgId() string

func (*GetApisRequest) GetPage

func (x *GetApisRequest) GetPage() int64

func (*GetApisRequest) GetProjectId

func (x *GetApisRequest) GetProjectId() string

func (*GetApisRequest) GetRegisterType

func (x *GetApisRequest) GetRegisterType() string

func (*GetApisRequest) GetRuntimeId

func (x *GetApisRequest) GetRuntimeId() string

func (*GetApisRequest) GetSize

func (x *GetApisRequest) GetSize() int64

func (*GetApisRequest) GetSortField

func (x *GetApisRequest) GetSortField() string

func (*GetApisRequest) GetSortType

func (x *GetApisRequest) GetSortType() string

func (*GetApisRequest) MarshalJSON

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

GetApisRequest implement json.Marshaler.

func (*GetApisRequest) ProtoMessage

func (*GetApisRequest) ProtoMessage()

func (*GetApisRequest) ProtoReflect

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

func (*GetApisRequest) Reset

func (x *GetApisRequest) Reset()

func (*GetApisRequest) String

func (x *GetApisRequest) String() string

func (*GetApisRequest) UnmarshalJSON

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

GetApisRequest implement json.Marshaler.

func (*GetApisRequest) UnmarshalURLValues

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

GetApisRequest implement urlenc.URLValuesUnmarshaler.

func (*GetApisRequest) Validate

func (this *GetApisRequest) Validate() error

type GetApisResponse

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

func (*GetApisResponse) Descriptor deprecated

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

Deprecated: Use GetApisResponse.ProtoReflect.Descriptor instead.

func (*GetApisResponse) GetData

func (x *GetApisResponse) GetData() *pb.PageResult

func (*GetApisResponse) MarshalJSON

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

GetApisResponse implement json.Marshaler.

func (*GetApisResponse) ProtoMessage

func (*GetApisResponse) ProtoMessage()

func (*GetApisResponse) ProtoReflect

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

func (*GetApisResponse) Reset

func (x *GetApisResponse) Reset()

func (*GetApisResponse) String

func (x *GetApisResponse) String() string

func (*GetApisResponse) UnmarshalJSON

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

GetApisResponse implement json.Marshaler.

func (*GetApisResponse) UnmarshalURLValues

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

GetApisResponse implement urlenc.URLValuesUnmarshaler.

func (*GetApisResponse) Validate

func (this *GetApisResponse) Validate() error

type Policy

type Policy struct {
	Category    string                     `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"`
	PolicyId    string                     `protobuf:"bytes,2,opt,name=policyId,proto3" json:"policyId,omitempty"`
	PolicyName  string                     `protobuf:"bytes,3,opt,name=policyName,proto3" json:"policyName,omitempty"`
	DisplayName string                     `protobuf:"bytes,4,opt,name=displayName,proto3" json:"displayName,omitempty"`
	Config      map[string]*structpb.Value `` /* 153-byte string literal not displayed */
	CreateAt    string                     `protobuf:"bytes,6,opt,name=createAt,proto3" json:"createAt,omitempty"`
	// contains filtered or unexported fields
}

func (*Policy) Descriptor deprecated

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

Deprecated: Use Policy.ProtoReflect.Descriptor instead.

func (*Policy) GetCategory

func (x *Policy) GetCategory() string

func (*Policy) GetConfig

func (x *Policy) GetConfig() map[string]*structpb.Value

func (*Policy) GetCreateAt

func (x *Policy) GetCreateAt() string

func (*Policy) GetDisplayName

func (x *Policy) GetDisplayName() string

func (*Policy) GetPolicyId

func (x *Policy) GetPolicyId() string

func (*Policy) GetPolicyName

func (x *Policy) GetPolicyName() string

func (*Policy) MarshalJSON

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

Policy implement json.Marshaler.

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) ProtoReflect

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

func (*Policy) Reset

func (x *Policy) Reset()

func (*Policy) String

func (x *Policy) String() string

func (*Policy) UnmarshalJSON

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

Policy implement json.Marshaler.

func (*Policy) UnmarshalURLValues

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

Policy implement urlenc.URLValuesUnmarshaler.

func (*Policy) Validate

func (this *Policy) Validate() error

type UnimplementedApiServiceServer

type UnimplementedApiServiceServer struct {
}

UnimplementedApiServiceServer should be embedded to have forward compatible implementations.

func (*UnimplementedApiServiceServer) CreateApi

func (*UnimplementedApiServiceServer) DeleteApi

func (*UnimplementedApiServiceServer) GetApis

func (*UnimplementedApiServiceServer) UpdateApi

type UpdateApiRequest

type UpdateApiRequest struct {
	ApiRequest *ApiRequest `protobuf:"bytes,1,opt,name=apiRequest,proto3" json:"apiRequest,omitempty"`
	ApiId      string      `protobuf:"bytes,2,opt,name=apiId,proto3" json:"apiId,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateApiRequest) Descriptor deprecated

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

Deprecated: Use UpdateApiRequest.ProtoReflect.Descriptor instead.

func (*UpdateApiRequest) GetApiId

func (x *UpdateApiRequest) GetApiId() string

func (*UpdateApiRequest) GetApiRequest

func (x *UpdateApiRequest) GetApiRequest() *ApiRequest

func (*UpdateApiRequest) MarshalJSON

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

UpdateApiRequest implement json.Marshaler.

func (*UpdateApiRequest) ProtoMessage

func (*UpdateApiRequest) ProtoMessage()

func (*UpdateApiRequest) ProtoReflect

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

func (*UpdateApiRequest) Reset

func (x *UpdateApiRequest) Reset()

func (*UpdateApiRequest) String

func (x *UpdateApiRequest) String() string

func (*UpdateApiRequest) UnmarshalJSON

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

UpdateApiRequest implement json.Marshaler.

func (*UpdateApiRequest) UnmarshalURLValues

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

UpdateApiRequest implement urlenc.URLValuesUnmarshaler.

func (*UpdateApiRequest) Validate

func (this *UpdateApiRequest) Validate() error

type UpdateApiResponse

type UpdateApiResponse struct {
	ApiId             string          `protobuf:"bytes,1,opt,name=apiId,proto3" json:"apiId,omitempty"`
	Path              string          `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	DisplayPath       string          `protobuf:"bytes,3,opt,name=displayPath,proto3" json:"displayPath,omitempty"`
	DisplayPathPrefix *structpb.Value `protobuf:"bytes,4,opt,name=displayPathPrefix,proto3" json:"displayPathPrefix,omitempty"`
	OuterNetEnable    bool            `protobuf:"varint,5,opt,name=outerNetEnable,proto3" json:"outerNetEnable,omitempty"`
	RegisterType      string          `protobuf:"bytes,6,opt,name=registerType,proto3" json:"registerType,omitempty"`
	NeedAuth          bool            `protobuf:"varint,7,opt,name=needAuth,proto3" json:"needAuth,omitempty"`
	Method            *structpb.Value `protobuf:"bytes,8,opt,name=method,proto3" json:"method,omitempty"`
	Description       string          `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"`
	RedirectAddr      string          `protobuf:"bytes,10,opt,name=redirectAddr,proto3" json:"redirectAddr,omitempty"`
	RedirectPath      string          `protobuf:"bytes,11,opt,name=redirectPath,proto3" json:"redirectPath,omitempty"`
	RedirectType      string          `protobuf:"bytes,12,opt,name=redirectType,proto3" json:"redirectType,omitempty"`
	MonitorPath       string          `protobuf:"bytes,13,opt,name=monitorPath,proto3" json:"monitorPath,omitempty"`
	CreateAt          string          `protobuf:"bytes,14,opt,name=createAt,proto3" json:"createAt,omitempty"`
	Policies          []*Policy       `protobuf:"bytes,15,rep,name=policies,proto3" json:"policies,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateApiResponse) Descriptor deprecated

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

Deprecated: Use UpdateApiResponse.ProtoReflect.Descriptor instead.

func (*UpdateApiResponse) GetApiId

func (x *UpdateApiResponse) GetApiId() string

func (*UpdateApiResponse) GetCreateAt

func (x *UpdateApiResponse) GetCreateAt() string

func (*UpdateApiResponse) GetDescription

func (x *UpdateApiResponse) GetDescription() string

func (*UpdateApiResponse) GetDisplayPath

func (x *UpdateApiResponse) GetDisplayPath() string

func (*UpdateApiResponse) GetDisplayPathPrefix

func (x *UpdateApiResponse) GetDisplayPathPrefix() *structpb.Value

func (*UpdateApiResponse) GetMethod

func (x *UpdateApiResponse) GetMethod() *structpb.Value

func (*UpdateApiResponse) GetMonitorPath

func (x *UpdateApiResponse) GetMonitorPath() string

func (*UpdateApiResponse) GetNeedAuth

func (x *UpdateApiResponse) GetNeedAuth() bool

func (*UpdateApiResponse) GetOuterNetEnable

func (x *UpdateApiResponse) GetOuterNetEnable() bool

func (*UpdateApiResponse) GetPath

func (x *UpdateApiResponse) GetPath() string

func (*UpdateApiResponse) GetPolicies

func (x *UpdateApiResponse) GetPolicies() []*Policy

func (*UpdateApiResponse) GetRedirectAddr

func (x *UpdateApiResponse) GetRedirectAddr() string

func (*UpdateApiResponse) GetRedirectPath

func (x *UpdateApiResponse) GetRedirectPath() string

func (*UpdateApiResponse) GetRedirectType

func (x *UpdateApiResponse) GetRedirectType() string

func (*UpdateApiResponse) GetRegisterType

func (x *UpdateApiResponse) GetRegisterType() string

func (*UpdateApiResponse) MarshalJSON

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

UpdateApiResponse implement json.Marshaler.

func (*UpdateApiResponse) ProtoMessage

func (*UpdateApiResponse) ProtoMessage()

func (*UpdateApiResponse) ProtoReflect

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

func (*UpdateApiResponse) Reset

func (x *UpdateApiResponse) Reset()

func (*UpdateApiResponse) String

func (x *UpdateApiResponse) String() string

func (*UpdateApiResponse) UnmarshalJSON

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

UpdateApiResponse implement json.Marshaler.

func (*UpdateApiResponse) UnmarshalURLValues

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

UpdateApiResponse implement urlenc.URLValuesUnmarshaler.

func (*UpdateApiResponse) Validate

func (this *UpdateApiResponse) Validate() error

Jump to

Keyboard shortcuts

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