pb

package
v0.0.0-...-6278c8f Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAtlasFeatureFlagHandler

func RegisterAtlasFeatureFlagHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAtlasFeatureFlagHandler registers the http handlers for service AtlasFeatureFlag to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAtlasFeatureFlagHandlerClient

func RegisterAtlasFeatureFlagHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AtlasFeatureFlagClient) error

RegisterAtlasFeatureFlagHandlerClient registers the http handlers for service AtlasFeatureFlag to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AtlasFeatureFlagClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AtlasFeatureFlagClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AtlasFeatureFlagClient" to call the correct interceptors.

func RegisterAtlasFeatureFlagHandlerFromEndpoint

func RegisterAtlasFeatureFlagHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAtlasFeatureFlagHandlerFromEndpoint is same as RegisterAtlasFeatureFlagHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAtlasFeatureFlagServer

func RegisterAtlasFeatureFlagServer(s *grpc.Server, srv AtlasFeatureFlagServer)

Types

type AtlasFeatureFlagClient

type AtlasFeatureFlagClient interface {
	GetVersion(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*VersionResponse, error)
	List(ctx context.Context, in *ListFeatureFlagsRequest, opts ...grpc.CallOption) (*ListFeatureFlagsResponse, error)
	Read(ctx context.Context, in *ReadFeatureFlagRequest, opts ...grpc.CallOption) (*ReadFeatureFlagResponse, error)
}

AtlasFeatureFlagClient is the client API for AtlasFeatureFlag service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAtlasFeatureFlagClient

func NewAtlasFeatureFlagClient(cc *grpc.ClientConn) AtlasFeatureFlagClient

type AtlasFeatureFlagServer

AtlasFeatureFlagServer is the server API for AtlasFeatureFlag service.

type FeatureFlag

type FeatureFlag struct {
	FeatureName          string   `protobuf:"bytes,1,opt,name=feature_name,json=featureName,proto3" json:"feature_name,omitempty"`
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Origin               string   `protobuf:"bytes,3,opt,name=origin,proto3" json:"origin,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*FeatureFlag) Descriptor

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

func (*FeatureFlag) GetFeatureName

func (m *FeatureFlag) GetFeatureName() string

func (*FeatureFlag) GetOrigin

func (m *FeatureFlag) GetOrigin() string

func (*FeatureFlag) GetValue

func (m *FeatureFlag) GetValue() string

func (*FeatureFlag) ProtoMessage

func (*FeatureFlag) ProtoMessage()

func (*FeatureFlag) Reset

func (m *FeatureFlag) Reset()

func (*FeatureFlag) String

func (m *FeatureFlag) String() string

func (*FeatureFlag) Validate

func (m *FeatureFlag) Validate() error

Validate checks the field values on FeatureFlag with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*FeatureFlag) XXX_DiscardUnknown

func (m *FeatureFlag) XXX_DiscardUnknown()

func (*FeatureFlag) XXX_Marshal

func (m *FeatureFlag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FeatureFlag) XXX_Merge

func (m *FeatureFlag) XXX_Merge(src proto.Message)

func (*FeatureFlag) XXX_Size

func (m *FeatureFlag) XXX_Size() int

func (*FeatureFlag) XXX_Unmarshal

func (m *FeatureFlag) XXX_Unmarshal(b []byte) error

type FeatureFlagValidationError

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

FeatureFlagValidationError is the validation error returned by FeatureFlag.Validate if the designated constraints aren't met.

func (FeatureFlagValidationError) Cause

Cause function returns cause value.

func (FeatureFlagValidationError) Error

Error satisfies the builtin error interface

func (FeatureFlagValidationError) ErrorName

func (e FeatureFlagValidationError) ErrorName() string

ErrorName returns error name.

func (FeatureFlagValidationError) Field

Field function returns field value.

func (FeatureFlagValidationError) Key

Key function returns key value.

func (FeatureFlagValidationError) Reason

Reason function returns reason value.

type ListFeatureFlagsRequest

type ListFeatureFlagsRequest struct {
	Filter               *query.Filtering  `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	Labels               map[string]string `` /* 153-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*ListFeatureFlagsRequest) Descriptor

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

func (*ListFeatureFlagsRequest) GetFilter

func (m *ListFeatureFlagsRequest) GetFilter() *query.Filtering

func (*ListFeatureFlagsRequest) GetLabels

func (m *ListFeatureFlagsRequest) GetLabels() map[string]string

func (*ListFeatureFlagsRequest) ProtoMessage

func (*ListFeatureFlagsRequest) ProtoMessage()

func (*ListFeatureFlagsRequest) Reset

func (m *ListFeatureFlagsRequest) Reset()

func (*ListFeatureFlagsRequest) String

func (m *ListFeatureFlagsRequest) String() string

func (*ListFeatureFlagsRequest) Validate

func (m *ListFeatureFlagsRequest) Validate() error

Validate checks the field values on ListFeatureFlagsRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*ListFeatureFlagsRequest) XXX_DiscardUnknown

func (m *ListFeatureFlagsRequest) XXX_DiscardUnknown()

func (*ListFeatureFlagsRequest) XXX_Marshal

func (m *ListFeatureFlagsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListFeatureFlagsRequest) XXX_Merge

func (m *ListFeatureFlagsRequest) XXX_Merge(src proto.Message)

func (*ListFeatureFlagsRequest) XXX_Size

func (m *ListFeatureFlagsRequest) XXX_Size() int

func (*ListFeatureFlagsRequest) XXX_Unmarshal

func (m *ListFeatureFlagsRequest) XXX_Unmarshal(b []byte) error

type ListFeatureFlagsRequestValidationError

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

ListFeatureFlagsRequestValidationError is the validation error returned by ListFeatureFlagsRequest.Validate if the designated constraints aren't met.

func (ListFeatureFlagsRequestValidationError) Cause

Cause function returns cause value.

func (ListFeatureFlagsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListFeatureFlagsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListFeatureFlagsRequestValidationError) Field

Field function returns field value.

func (ListFeatureFlagsRequestValidationError) Key

Key function returns key value.

func (ListFeatureFlagsRequestValidationError) Reason

Reason function returns reason value.

type ListFeatureFlagsResponse

type ListFeatureFlagsResponse struct {
	Results              []*FeatureFlag  `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	Page                 *query.PageInfo `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*ListFeatureFlagsResponse) Descriptor

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

func (*ListFeatureFlagsResponse) GetPage

func (m *ListFeatureFlagsResponse) GetPage() *query.PageInfo

func (*ListFeatureFlagsResponse) GetResults

func (m *ListFeatureFlagsResponse) GetResults() []*FeatureFlag

func (*ListFeatureFlagsResponse) ProtoMessage

func (*ListFeatureFlagsResponse) ProtoMessage()

func (*ListFeatureFlagsResponse) Reset

func (m *ListFeatureFlagsResponse) Reset()

func (*ListFeatureFlagsResponse) String

func (m *ListFeatureFlagsResponse) String() string

func (*ListFeatureFlagsResponse) Validate

func (m *ListFeatureFlagsResponse) Validate() error

Validate checks the field values on ListFeatureFlagsResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*ListFeatureFlagsResponse) XXX_DiscardUnknown

func (m *ListFeatureFlagsResponse) XXX_DiscardUnknown()

func (*ListFeatureFlagsResponse) XXX_Marshal

func (m *ListFeatureFlagsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListFeatureFlagsResponse) XXX_Merge

func (m *ListFeatureFlagsResponse) XXX_Merge(src proto.Message)

func (*ListFeatureFlagsResponse) XXX_Size

func (m *ListFeatureFlagsResponse) XXX_Size() int

func (*ListFeatureFlagsResponse) XXX_Unmarshal

func (m *ListFeatureFlagsResponse) XXX_Unmarshal(b []byte) error

type ListFeatureFlagsResponseValidationError

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

ListFeatureFlagsResponseValidationError is the validation error returned by ListFeatureFlagsResponse.Validate if the designated constraints aren't met.

func (ListFeatureFlagsResponseValidationError) Cause

Cause function returns cause value.

func (ListFeatureFlagsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListFeatureFlagsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListFeatureFlagsResponseValidationError) Field

Field function returns field value.

func (ListFeatureFlagsResponseValidationError) Key

Key function returns key value.

func (ListFeatureFlagsResponseValidationError) Reason

Reason function returns reason value.

type ReadFeatureFlagRequest

type ReadFeatureFlagRequest struct {
	FeatureName          string                `protobuf:"bytes,1,opt,name=feature_name,json=featureName,proto3" json:"feature_name,omitempty"`
	Fields               *query.FieldSelection `protobuf:"bytes,2,opt,name=fields,proto3" json:"fields,omitempty"`
	Labels               map[string]string     `` /* 153-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*ReadFeatureFlagRequest) Descriptor

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

func (*ReadFeatureFlagRequest) GetFeatureName

func (m *ReadFeatureFlagRequest) GetFeatureName() string

func (*ReadFeatureFlagRequest) GetFields

func (*ReadFeatureFlagRequest) GetLabels

func (m *ReadFeatureFlagRequest) GetLabels() map[string]string

func (*ReadFeatureFlagRequest) ProtoMessage

func (*ReadFeatureFlagRequest) ProtoMessage()

func (*ReadFeatureFlagRequest) Reset

func (m *ReadFeatureFlagRequest) Reset()

func (*ReadFeatureFlagRequest) String

func (m *ReadFeatureFlagRequest) String() string

func (*ReadFeatureFlagRequest) Validate

func (m *ReadFeatureFlagRequest) Validate() error

Validate checks the field values on ReadFeatureFlagRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*ReadFeatureFlagRequest) XXX_DiscardUnknown

func (m *ReadFeatureFlagRequest) XXX_DiscardUnknown()

func (*ReadFeatureFlagRequest) XXX_Marshal

func (m *ReadFeatureFlagRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReadFeatureFlagRequest) XXX_Merge

func (m *ReadFeatureFlagRequest) XXX_Merge(src proto.Message)

func (*ReadFeatureFlagRequest) XXX_Size

func (m *ReadFeatureFlagRequest) XXX_Size() int

func (*ReadFeatureFlagRequest) XXX_Unmarshal

func (m *ReadFeatureFlagRequest) XXX_Unmarshal(b []byte) error

type ReadFeatureFlagRequestValidationError

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

ReadFeatureFlagRequestValidationError is the validation error returned by ReadFeatureFlagRequest.Validate if the designated constraints aren't met.

func (ReadFeatureFlagRequestValidationError) Cause

Cause function returns cause value.

func (ReadFeatureFlagRequestValidationError) Error

Error satisfies the builtin error interface

func (ReadFeatureFlagRequestValidationError) ErrorName

ErrorName returns error name.

func (ReadFeatureFlagRequestValidationError) Field

Field function returns field value.

func (ReadFeatureFlagRequestValidationError) Key

Key function returns key value.

func (ReadFeatureFlagRequestValidationError) Reason

Reason function returns reason value.

type ReadFeatureFlagResponse

type ReadFeatureFlagResponse struct {
	Result               *FeatureFlag `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*ReadFeatureFlagResponse) Descriptor

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

func (*ReadFeatureFlagResponse) GetResult

func (m *ReadFeatureFlagResponse) GetResult() *FeatureFlag

func (*ReadFeatureFlagResponse) ProtoMessage

func (*ReadFeatureFlagResponse) ProtoMessage()

func (*ReadFeatureFlagResponse) Reset

func (m *ReadFeatureFlagResponse) Reset()

func (*ReadFeatureFlagResponse) String

func (m *ReadFeatureFlagResponse) String() string

func (*ReadFeatureFlagResponse) Validate

func (m *ReadFeatureFlagResponse) Validate() error

Validate checks the field values on ReadFeatureFlagResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*ReadFeatureFlagResponse) XXX_DiscardUnknown

func (m *ReadFeatureFlagResponse) XXX_DiscardUnknown()

func (*ReadFeatureFlagResponse) XXX_Marshal

func (m *ReadFeatureFlagResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReadFeatureFlagResponse) XXX_Merge

func (m *ReadFeatureFlagResponse) XXX_Merge(src proto.Message)

func (*ReadFeatureFlagResponse) XXX_Size

func (m *ReadFeatureFlagResponse) XXX_Size() int

func (*ReadFeatureFlagResponse) XXX_Unmarshal

func (m *ReadFeatureFlagResponse) XXX_Unmarshal(b []byte) error

type ReadFeatureFlagResponseValidationError

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

ReadFeatureFlagResponseValidationError is the validation error returned by ReadFeatureFlagResponse.Validate if the designated constraints aren't met.

func (ReadFeatureFlagResponseValidationError) Cause

Cause function returns cause value.

func (ReadFeatureFlagResponseValidationError) Error

Error satisfies the builtin error interface

func (ReadFeatureFlagResponseValidationError) ErrorName

ErrorName returns error name.

func (ReadFeatureFlagResponseValidationError) Field

Field function returns field value.

func (ReadFeatureFlagResponseValidationError) Key

Key function returns key value.

func (ReadFeatureFlagResponseValidationError) Reason

Reason function returns reason value.

type VersionResponse

type VersionResponse struct {
	Version              string   `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*VersionResponse) Descriptor

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

func (*VersionResponse) GetVersion

func (m *VersionResponse) GetVersion() string

func (*VersionResponse) ProtoMessage

func (*VersionResponse) ProtoMessage()

func (*VersionResponse) Reset

func (m *VersionResponse) Reset()

func (*VersionResponse) String

func (m *VersionResponse) String() string

func (*VersionResponse) Validate

func (m *VersionResponse) Validate() error

Validate checks the field values on VersionResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*VersionResponse) XXX_DiscardUnknown

func (m *VersionResponse) XXX_DiscardUnknown()

func (*VersionResponse) XXX_Marshal

func (m *VersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VersionResponse) XXX_Merge

func (m *VersionResponse) XXX_Merge(src proto.Message)

func (*VersionResponse) XXX_Size

func (m *VersionResponse) XXX_Size() int

func (*VersionResponse) XXX_Unmarshal

func (m *VersionResponse) XXX_Unmarshal(b []byte) error

type VersionResponseValidationError

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

VersionResponseValidationError is the validation error returned by VersionResponse.Validate if the designated constraints aren't met.

func (VersionResponseValidationError) Cause

Cause function returns cause value.

func (VersionResponseValidationError) Error

Error satisfies the builtin error interface

func (VersionResponseValidationError) ErrorName

func (e VersionResponseValidationError) ErrorName() string

ErrorName returns error name.

func (VersionResponseValidationError) Field

Field function returns field value.

func (VersionResponseValidationError) Key

Key function returns key value.

func (VersionResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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