Help us shape the future of Go! Take the 2026 Go Developer Survey

v1

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HttpMethod_name = map[int32]string{
		0: "GET",
		1: "POST",
		2: "PUT",
		3: "DELETE",
		4: "PATCH",
		5: "OPTIONS",
		6: "HEAD",
		7: "CONNECT",
		8: "TRACE",
	}
	HttpMethod_value = map[string]int32{
		"GET":     0,
		"POST":    1,
		"PUT":     2,
		"DELETE":  3,
		"PATCH":   4,
		"OPTIONS": 5,
		"HEAD":    6,
		"CONNECT": 7,
		"TRACE":   8,
	}
)

Enum value maps for HttpMethod.

Functions

This section is empty.

Types

type API

type API struct {

	// Types that are assignable to Value:
	//
	//	*API_Tcp
	//	*API_Rest
	//	*API_Grpc
	Value isAPI_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*API) Descriptor deprecated

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

Deprecated: Use API.ProtoReflect.Descriptor instead.

func (*API) GetGrpc

func (x *API) GetGrpc() *GrpcAPI

func (*API) GetRest

func (x *API) GetRest() *RestAPI

func (*API) GetTcp

func (x *API) GetTcp() *TcpAPI

func (*API) GetValue

func (m *API) GetValue() isAPI_Value

func (*API) ProtoMessage

func (*API) ProtoMessage()

func (*API) ProtoReflect

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

func (*API) Reset

func (x *API) Reset()

func (*API) String

func (x *API) String() string

type API_Grpc

type API_Grpc struct {
	Grpc *GrpcAPI `protobuf:"bytes,3,opt,name=grpc,proto3,oneof"`
}

type API_Rest

type API_Rest struct {
	Rest *RestAPI `protobuf:"bytes,2,opt,name=rest,proto3,oneof"`
}

type API_Tcp

type API_Tcp struct {
	Tcp *TcpAPI `protobuf:"bytes,1,opt,name=tcp,proto3,oneof"`
}

type ApplicationEndpointGroup

type ApplicationEndpointGroup struct {
	Name                  string                  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Public                bool                    `protobuf:"varint,2,opt,name=public,proto3" json:"public,omitempty"`
	ServiceEndpointGroups []*ServiceEndpointGroup `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ApplicationEndpointGroup) Descriptor deprecated

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

Deprecated: Use ApplicationEndpointGroup.ProtoReflect.Descriptor instead.

func (*ApplicationEndpointGroup) GetName

func (x *ApplicationEndpointGroup) GetName() string

func (*ApplicationEndpointGroup) GetPublic

func (x *ApplicationEndpointGroup) GetPublic() bool

func (*ApplicationEndpointGroup) GetServiceEndpointGroups

func (x *ApplicationEndpointGroup) GetServiceEndpointGroups() []*ServiceEndpointGroup

func (*ApplicationEndpointGroup) ProtoMessage

func (*ApplicationEndpointGroup) ProtoMessage()

func (*ApplicationEndpointGroup) ProtoReflect

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

func (*ApplicationEndpointGroup) Reset

func (x *ApplicationEndpointGroup) Reset()

func (*ApplicationEndpointGroup) String

func (x *ApplicationEndpointGroup) String() string

type Endpoint

type Endpoint struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Public      bool   `protobuf:"varint,3,opt,name=public,proto3" json:"public,omitempty"`
	Api         *API   `protobuf:"bytes,4,opt,name=api,proto3" json:"api,omitempty"`
	// contains filtered or unexported fields
}

func (*Endpoint) Descriptor deprecated

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

Deprecated: Use Endpoint.ProtoReflect.Descriptor instead.

func (*Endpoint) GetApi

func (x *Endpoint) GetApi() *API

func (*Endpoint) GetDescription

func (x *Endpoint) GetDescription() string

func (*Endpoint) GetName

func (x *Endpoint) GetName() string

func (*Endpoint) GetPublic

func (x *Endpoint) GetPublic() bool

func (*Endpoint) ProtoMessage

func (*Endpoint) ProtoMessage()

func (*Endpoint) ProtoReflect

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

func (*Endpoint) Reset

func (x *Endpoint) Reset()

func (*Endpoint) String

func (x *Endpoint) String() string

type EndpointGroup

type EndpointGroup struct {
	ApplicationEndpointGroup []*ApplicationEndpointGroup `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*EndpointGroup) Descriptor deprecated

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

Deprecated: Use EndpointGroup.ProtoReflect.Descriptor instead.

func (*EndpointGroup) GetApplicationEndpointGroup

func (x *EndpointGroup) GetApplicationEndpointGroup() []*ApplicationEndpointGroup

func (*EndpointGroup) ProtoMessage

func (*EndpointGroup) ProtoMessage()

func (*EndpointGroup) ProtoReflect

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

func (*EndpointGroup) Reset

func (x *EndpointGroup) Reset()

func (*EndpointGroup) String

func (x *EndpointGroup) String() string

type GrpcAPI

type GrpcAPI struct {
	Proto []byte `protobuf:"bytes,1,opt,name=proto,proto3" json:"proto,omitempty"`
	// contains filtered or unexported fields
}

func (*GrpcAPI) Descriptor deprecated

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

Deprecated: Use GrpcAPI.ProtoReflect.Descriptor instead.

func (*GrpcAPI) GetProto

func (x *GrpcAPI) GetProto() []byte

func (*GrpcAPI) ProtoMessage

func (*GrpcAPI) ProtoMessage()

func (*GrpcAPI) ProtoReflect

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

func (*GrpcAPI) Reset

func (x *GrpcAPI) Reset()

func (*GrpcAPI) String

func (x *GrpcAPI) String() string

type HttpAPI

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

func (*HttpAPI) Descriptor deprecated

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

Deprecated: Use HttpAPI.ProtoReflect.Descriptor instead.

func (*HttpAPI) ProtoMessage

func (*HttpAPI) ProtoMessage()

func (*HttpAPI) ProtoReflect

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

func (*HttpAPI) Reset

func (x *HttpAPI) Reset()

func (*HttpAPI) String

func (x *HttpAPI) String() string

type HttpMethod

type HttpMethod int32
const (
	HttpMethod_GET     HttpMethod = 0
	HttpMethod_POST    HttpMethod = 1
	HttpMethod_PUT     HttpMethod = 2
	HttpMethod_DELETE  HttpMethod = 3
	HttpMethod_PATCH   HttpMethod = 4
	HttpMethod_OPTIONS HttpMethod = 5
	HttpMethod_HEAD    HttpMethod = 6
	HttpMethod_CONNECT HttpMethod = 7
	HttpMethod_TRACE   HttpMethod = 8
)

func (HttpMethod) Descriptor

func (HttpMethod) Descriptor() protoreflect.EnumDescriptor

func (HttpMethod) Enum

func (x HttpMethod) Enum() *HttpMethod

func (HttpMethod) EnumDescriptor deprecated

func (HttpMethod) EnumDescriptor() ([]byte, []int)

Deprecated: Use HttpMethod.Descriptor instead.

func (HttpMethod) Number

func (x HttpMethod) Number() protoreflect.EnumNumber

func (HttpMethod) String

func (x HttpMethod) String() string

func (HttpMethod) Type

type RestAPI

type RestAPI struct {
	Openapi []byte       `protobuf:"bytes,1,opt,name=openapi,proto3" json:"openapi,omitempty"`
	Routes  []*RestRoute `protobuf:"bytes,2,rep,name=routes,proto3" json:"routes,omitempty"`
	// contains filtered or unexported fields
}

func (*RestAPI) Descriptor deprecated

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

Deprecated: Use RestAPI.ProtoReflect.Descriptor instead.

func (*RestAPI) GetOpenapi

func (x *RestAPI) GetOpenapi() []byte

func (*RestAPI) GetRoutes

func (x *RestAPI) GetRoutes() []*RestRoute

func (*RestAPI) ProtoMessage

func (*RestAPI) ProtoMessage()

func (*RestAPI) ProtoReflect

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

func (*RestAPI) Reset

func (x *RestAPI) Reset()

func (*RestAPI) String

func (x *RestAPI) String() string

type RestRoute

type RestRoute struct {
	Methods []HttpMethod `protobuf:"varint,1,rep,packed,name=methods,proto3,enum=v1.core.api.HttpMethod" json:"methods,omitempty"`
	Path    string       `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*RestRoute) Descriptor deprecated

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

Deprecated: Use RestRoute.ProtoReflect.Descriptor instead.

func (*RestRoute) GetMethods

func (x *RestRoute) GetMethods() []HttpMethod

func (*RestRoute) GetPath

func (x *RestRoute) GetPath() string

func (*RestRoute) ProtoMessage

func (*RestRoute) ProtoMessage()

func (*RestRoute) ProtoReflect

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

func (*RestRoute) Reset

func (x *RestRoute) Reset()

func (*RestRoute) String

func (x *RestRoute) String() string

type ServiceEndpointGroup

type ServiceEndpointGroup struct {
	Unique    string      `protobuf:"bytes,1,opt,name=unique,proto3" json:"unique,omitempty"`
	Public    bool        `protobuf:"varint,2,opt,name=public,proto3" json:"public,omitempty"`
	Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceEndpointGroup) Descriptor deprecated

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

Deprecated: Use ServiceEndpointGroup.ProtoReflect.Descriptor instead.

func (*ServiceEndpointGroup) GetEndpoints

func (x *ServiceEndpointGroup) GetEndpoints() []*Endpoint

func (*ServiceEndpointGroup) GetPublic

func (x *ServiceEndpointGroup) GetPublic() bool

func (*ServiceEndpointGroup) GetUnique

func (x *ServiceEndpointGroup) GetUnique() string

func (*ServiceEndpointGroup) ProtoMessage

func (*ServiceEndpointGroup) ProtoMessage()

func (*ServiceEndpointGroup) ProtoReflect

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

func (*ServiceEndpointGroup) Reset

func (x *ServiceEndpointGroup) Reset()

func (*ServiceEndpointGroup) String

func (x *ServiceEndpointGroup) String() string

type TcpAPI

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

func (*TcpAPI) Descriptor deprecated

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

Deprecated: Use TcpAPI.ProtoReflect.Descriptor instead.

func (*TcpAPI) ProtoMessage

func (*TcpAPI) ProtoMessage()

func (*TcpAPI) ProtoReflect

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

func (*TcpAPI) Reset

func (x *TcpAPI) Reset()

func (*TcpAPI) String

func (x *TcpAPI) String() string

Jump to

Keyboard shortcuts

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