Documentation ¶
Index ¶
- Variables
- type Call
- func (*Call) Descriptor() ([]byte, []int)deprecated
- func (x *Call) GetGetResourceMethod() string
- func (x *Call) GetListField() string
- func (x *Call) GetMethodType() MethodType
- func (x *Call) GetName() string
- func (x *Call) GetRequestType() string
- func (x *Call) GetResourceType() string
- func (x *Call) GetResponseType() string
- func (*Call) ProtoMessage()
- func (x *Call) ProtoReflect() protoreflect.Message
- func (x *Call) Reset()
- func (x *Call) String() string
- type Command
- func (*Command) Descriptor() ([]byte, []int)deprecated
- func (x *Command) GetApi() string
- func (x *Command) GetApiImportPath() *ImportPath
- func (x *Command) GetApiVersion() string
- func (x *Command) GetEnumFlags() []*EnumFlag
- func (x *Command) GetInt32Flags() []*Flag
- func (x *Command) GetLong() string
- func (x *Command) GetMethod() string
- func (x *Command) GetMethodType() MethodType
- func (x *Command) GetPackage() string
- func (x *Command) GetRequest() *RequestMessage
- func (x *Command) GetResponse() *ResponseMessage
- func (x *Command) GetShort() string
- func (x *Command) GetStringFlags() []*Flag
- func (x *Command) GetUse() string
- func (*Command) ProtoMessage()
- func (x *Command) ProtoReflect() protoreflect.Message
- func (x *Command) Reset()
- func (x *Command) String() string
- type Ent
- func (*Ent) Descriptor() ([]byte, []int)deprecated
- func (x *Ent) GetEnumFields() []*EnumField
- func (x *Ent) GetFields() []string
- func (x *Ent) GetImportPath() *ImportPath
- func (x *Ent) GetName() string
- func (*Ent) ProtoMessage()
- func (x *Ent) ProtoReflect() protoreflect.Message
- func (x *Ent) Reset()
- func (x *Ent) String() string
- type EnumField
- type EnumFlag
- func (*EnumFlag) Descriptor() ([]byte, []int)deprecated
- func (x *EnumFlag) GetDisplayName() string
- func (x *EnumFlag) GetName() string
- func (x *EnumFlag) GetPath() string
- func (x *EnumFlag) GetType() string
- func (x *EnumFlag) GetUsage() string
- func (*EnumFlag) ProtoMessage()
- func (x *EnumFlag) ProtoReflect() protoreflect.Message
- func (x *EnumFlag) Reset()
- func (x *EnumFlag) String() string
- type Flag
- func (*Flag) Descriptor() ([]byte, []int)deprecated
- func (x *Flag) GetDisplayName() string
- func (x *Flag) GetName() string
- func (x *Flag) GetPath() string
- func (x *Flag) GetUsage() string
- func (x *Flag) GetValue() string
- func (*Flag) ProtoMessage()
- func (x *Flag) ProtoReflect() protoreflect.Message
- func (x *Flag) Reset()
- func (x *Flag) String() string
- type ImportPath
- type MethodType
- type Package
- func (*Package) Descriptor() ([]byte, []int)deprecated
- func (x *Package) GetLong() string
- func (x *Package) GetPackage() string
- func (x *Package) GetShort() string
- func (x *Package) GetSubCommands() []*Command
- func (x *Package) GetSubPackages() []*Package
- func (x *Package) GetUse() string
- func (*Package) ProtoMessage()
- func (x *Package) ProtoReflect() protoreflect.Message
- func (x *Package) Reset()
- func (x *Package) String() string
- type Pagination
- type RequestMessage
- func (*RequestMessage) Descriptor() ([]byte, []int)deprecated
- func (x *RequestMessage) GetChildren() []*RequestMessage
- func (x *RequestMessage) GetFields() []*RequestMessageField
- func (x *RequestMessage) GetName() string
- func (x *RequestMessage) GetType() string
- func (*RequestMessage) ProtoMessage()
- func (x *RequestMessage) ProtoReflect() protoreflect.Message
- func (x *RequestMessage) Reset()
- func (x *RequestMessage) String() string
- type RequestMessageField
- func (*RequestMessageField) Descriptor() ([]byte, []int)deprecated
- func (x *RequestMessageField) GetName() string
- func (x *RequestMessageField) GetValue() string
- func (*RequestMessageField) ProtoMessage()
- func (x *RequestMessageField) ProtoReflect() protoreflect.Message
- func (x *RequestMessageField) Reset()
- func (x *RequestMessageField) String() string
- type ResponseMessage
- func (*ResponseMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ResponseMessage) GetListField() string
- func (x *ResponseMessage) GetType() string
- func (*ResponseMessage) ProtoMessage()
- func (x *ResponseMessage) ProtoReflect() protoreflect.Message
- func (x *ResponseMessage) Reset()
- func (x *ResponseMessage) String() string
- type Service
- func (*Service) Descriptor() ([]byte, []int)deprecated
- func (x *Service) GetApiImportPath() *ImportPath
- func (x *Service) GetApiVersion() string
- func (x *Service) GetCalls() []*Call
- func (x *Service) GetName() string
- func (*Service) ProtoMessage()
- func (x *Service) ProtoReflect() protoreflect.Message
- func (x *Service) Reset()
- func (x *Service) String() string
Constants ¶
This section is empty.
Variables ¶
var ( MethodType_name = map[int32]string{ 0: "METHOD_TYPE_UNSPECIFIED", 1: "METHOD_TYPE_CREATE", 2: "METHOD_TYPE_GET", 3: "METHOD_TYPE_DELETE", 4: "METHOD_TYPE_LIST", 5: "METHOD_TYPE_UPDATE", } MethodType_value = map[string]int32{ "METHOD_TYPE_UNSPECIFIED": 0, "METHOD_TYPE_CREATE": 1, "METHOD_TYPE_GET": 2, "METHOD_TYPE_DELETE": 3, "METHOD_TYPE_LIST": 4, "METHOD_TYPE_UPDATE": 5, } )
Enum value maps for MethodType.
var File_api_inhouse_v1_api_proto protoreflect.FileDescriptor
var File_api_inhouse_v1_cligen_proto protoreflect.FileDescriptor
var File_api_inhouse_v1_entgen_proto protoreflect.FileDescriptor
var File_api_inhouse_v1_gen_proto protoreflect.FileDescriptor
var File_api_inhouse_v1_servergen_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Call ¶
type Call struct { // name is the name of the call. // e.g. CreateCluster Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // method_type is the type of the method. MethodType MethodType `protobuf:"varint,2,opt,name=method_type,json=methodType,proto3,enum=api.inhouse.v1.MethodType" json:"method_type,omitempty"` // request_type is the type of the gRPC request. // e.g. v1alpha.CreateClusterRequest RequestType string `protobuf:"bytes,3,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"` // response_type is the type of the gRPC response. // e.g. v1alpha.Cluster ResponseType string `protobuf:"bytes,4,opt,name=response_type,json=responseType,proto3" json:"response_type,omitempty"` // resource_type is the type of the resource. // e.g. v1alpha.Cluster ResourceType string `protobuf:"bytes,5,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"` // get_resource_method is the name of the method to get the resource from the request. // e.g. GetCluster GetResourceMethod string `protobuf:"bytes,6,opt,name=get_resource_method,json=getResourceMethod,proto3" json:"get_resource_method,omitempty"` // list_field is the name of the field to set the resource list to the response. // e.g. Clusters ListField string `protobuf:"bytes,7,opt,name=list_field,json=listField,proto3" json:"list_field,omitempty"` // contains filtered or unexported fields }
Call represents a gRPC call.
func (*Call) Descriptor
deprecated
func (*Call) GetGetResourceMethod ¶
func (*Call) GetListField ¶
func (*Call) GetMethodType ¶
func (x *Call) GetMethodType() MethodType
func (*Call) GetRequestType ¶
func (*Call) GetResourceType ¶
func (*Call) GetResponseType ¶
func (*Call) ProtoMessage ¶
func (*Call) ProtoMessage()
func (*Call) ProtoReflect ¶
func (x *Call) ProtoReflect() protoreflect.Message
type Command ¶
type Command struct { // api is the name of the gRPC API. // e.g. ke Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` // api_version is the version of the gRPC API. // e.g. v1alpha ApiVersion string `protobuf:"bytes,2,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` // api_import_path is the import path of the gRPC API. // e.g. github.com/nokamoto/2pf23/pkg/api/ke/v1alpha ApiImportPath *ImportPath `protobuf:"bytes,3,opt,name=api_import_path,json=apiImportPath,proto3" json:"api_import_path,omitempty"` // package is the name of the generated code package. // e.g. cluster Package string `protobuf:"bytes,4,opt,name=package,proto3" json:"package,omitempty"` // use is the name of the command. // e.g. create Use string `protobuf:"bytes,5,opt,name=use,proto3" json:"use,omitempty"` // short is the short description of the command. Short string `protobuf:"bytes,6,opt,name=short,proto3" json:"short,omitempty"` // long is the long description of the command. Long string `protobuf:"bytes,7,opt,name=long,proto3" json:"long,omitempty"` // method is the name of the gRPC method. // e.g. CreateCluster Method string `protobuf:"bytes,8,opt,name=method,proto3" json:"method,omitempty"` // method_type is the type of the gRPC method. MethodType MethodType `protobuf:"varint,9,opt,name=method_type,json=methodType,proto3,enum=api.inhouse.v1.MethodType" json:"method_type,omitempty"` // request is the request message passed to the gRPC method at runtime. Request *RequestMessage `protobuf:"bytes,11,opt,name=request,proto3" json:"request,omitempty"` // response is the response message returned from the gRPC method at runtime. Response *ResponseMessage `protobuf:"bytes,12,opt,name=response,proto3" json:"response,omitempty"` // string_flags is the list of string flags of the command. StringFlags []*Flag `protobuf:"bytes,13,rep,name=string_flags,json=stringFlags,proto3" json:"string_flags,omitempty"` // int32_flags is the list of number flags of the command. Int32Flags []*Flag `protobuf:"bytes,14,rep,name=int32_flags,json=int32Flags,proto3" json:"int32_flags,omitempty"` // enum_flags is the list of enum flags of the command. EnumFlags []*EnumFlag `protobuf:"bytes,15,rep,name=enum_flags,json=enumFlags,proto3" json:"enum_flags,omitempty"` // contains filtered or unexported fields }
Command represents golang code to call a single gRPC method.
func (*Command) Descriptor
deprecated
func (*Command) GetApiImportPath ¶
func (x *Command) GetApiImportPath() *ImportPath
func (*Command) GetApiVersion ¶
func (*Command) GetEnumFlags ¶
func (*Command) GetInt32Flags ¶
func (*Command) GetMethodType ¶
func (x *Command) GetMethodType() MethodType
func (*Command) GetPackage ¶
func (*Command) GetRequest ¶
func (x *Command) GetRequest() *RequestMessage
func (*Command) GetResponse ¶
func (x *Command) GetResponse() *ResponseMessage
func (*Command) GetStringFlags ¶
func (*Command) ProtoMessage ¶
func (*Command) ProtoMessage()
func (*Command) ProtoReflect ¶
func (x *Command) ProtoReflect() protoreflect.Message
type Ent ¶
type Ent struct { // name is the name of the ent resource. // e.g. Cluster Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // import_path is the import path of the proto resource. // e.g. github.com/nokamoto/2pf23/pkg/api/ke/v1alpha ImportPath *ImportPath `protobuf:"bytes,2,opt,name=import_path,json=importPath,proto3" json:"import_path,omitempty"` // fields is the list of fields of the resource. // e.g. DisplayName, NumNodes Fields []string `protobuf:"bytes,3,rep,name=fields,proto3" json:"fields,omitempty"` // enum_fields is the list of enum fields of the resource. EnumFields []*EnumField `protobuf:"bytes,4,rep,name=enum_fields,json=enumFields,proto3" json:"enum_fields,omitempty"` // contains filtered or unexported fields }
func (*Ent) Descriptor
deprecated
func (*Ent) GetEnumFields ¶
func (*Ent) GetImportPath ¶
func (x *Ent) GetImportPath() *ImportPath
func (*Ent) ProtoMessage ¶
func (*Ent) ProtoMessage()
func (*Ent) ProtoReflect ¶
func (x *Ent) ProtoReflect() protoreflect.Message
type EnumField ¶
type EnumField struct { // type is the type of the enum field. // e.g. v1alpha.MachineType Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // name is the name of the enum field. // e.g. MachineType Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
EnumField is a field of an enum.
func (*EnumField) Descriptor
deprecated
func (*EnumField) ProtoMessage ¶
func (*EnumField) ProtoMessage()
func (*EnumField) ProtoReflect ¶
func (x *EnumField) ProtoReflect() protoreflect.Message
type EnumFlag ¶
type EnumFlag struct { // name is the variable name. // e.g. machineType Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // type is the enum type. // e.g. v1alpha.MachineType Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // display_name is the display name of the flag. // e.g. machine-type DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // usage is the usage string of the flag. Usage string `protobuf:"bytes,4,opt,name=usage,proto3" json:"usage,omitempty"` // path is the field mask path of the flag. // e.g. machine_type Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
EnumFlag represents command line flag of enum.
func (*EnumFlag) Descriptor
deprecated
func (*EnumFlag) GetDisplayName ¶
func (*EnumFlag) ProtoMessage ¶
func (*EnumFlag) ProtoMessage()
func (*EnumFlag) ProtoReflect ¶
func (x *EnumFlag) ProtoReflect() protoreflect.Message
type Flag ¶
type Flag struct { // name is the variable name. // e.g. displayName Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // display_name is the display name of the flag. // e.g. display-name DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // value is the default value of the flag. // e.g. default value Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // usage is the usage string of the flag. Usage string `protobuf:"bytes,4,opt,name=usage,proto3" json:"usage,omitempty"` // path is the field mask path of the flag. // e.g. display_name Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
Flag represents command line flag.
``` var displayName string cmd.Flags().StringVar(&displayName, "display-name", "default value", "usage string") ```
func (*Flag) Descriptor
deprecated
func (*Flag) GetDisplayName ¶
func (*Flag) ProtoMessage ¶
func (*Flag) ProtoMessage()
func (*Flag) ProtoReflect ¶
func (x *Flag) ProtoReflect() protoreflect.Message
type ImportPath ¶
type ImportPath struct { // alias is the alias of the import path. // e.g. v1alpha Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"` // path is the import path. // e.g. github.com/nokamoto/2pf23/pkg/api/ke/v1alpha Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
ImportPath represents golang import path.
``` import v1alpha "github.com/nokamoto/2pf23/pkg/api/ke/v1alpha" ```
func (*ImportPath) Descriptor
deprecated
func (*ImportPath) Descriptor() ([]byte, []int)
Deprecated: Use ImportPath.ProtoReflect.Descriptor instead.
func (*ImportPath) GetAlias ¶
func (x *ImportPath) GetAlias() string
func (*ImportPath) GetPath ¶
func (x *ImportPath) GetPath() string
func (*ImportPath) ProtoMessage ¶
func (*ImportPath) ProtoMessage()
func (*ImportPath) ProtoReflect ¶
func (x *ImportPath) ProtoReflect() protoreflect.Message
func (*ImportPath) Reset ¶
func (x *ImportPath) Reset()
func (*ImportPath) String ¶
func (x *ImportPath) String() string
type MethodType ¶
type MethodType int32
const ( MethodType_METHOD_TYPE_UNSPECIFIED MethodType = 0 MethodType_METHOD_TYPE_CREATE MethodType = 1 MethodType_METHOD_TYPE_GET MethodType = 2 MethodType_METHOD_TYPE_DELETE MethodType = 3 MethodType_METHOD_TYPE_LIST MethodType = 4 MethodType_METHOD_TYPE_UPDATE MethodType = 5 )
func (MethodType) Descriptor ¶
func (MethodType) Descriptor() protoreflect.EnumDescriptor
func (MethodType) Enum ¶
func (x MethodType) Enum() *MethodType
func (MethodType) EnumDescriptor
deprecated
func (MethodType) EnumDescriptor() ([]byte, []int)
Deprecated: Use MethodType.Descriptor instead.
func (MethodType) Number ¶
func (x MethodType) Number() protoreflect.EnumNumber
func (MethodType) String ¶
func (x MethodType) String() string
func (MethodType) Type ¶
func (MethodType) Type() protoreflect.EnumType
type Package ¶
type Package struct { // package is the name of the generated code package. // e.g. cluster Package string `protobuf:"bytes,1,opt,name=package,proto3" json:"package,omitempty"` // use is the name of the root command. Use string `protobuf:"bytes,3,opt,name=use,proto3" json:"use,omitempty"` // short is the short description of the root command. Short string `protobuf:"bytes,4,opt,name=short,proto3" json:"short,omitempty"` // long is the long description of the root command. Long string `protobuf:"bytes,5,opt,name=long,proto3" json:"long,omitempty"` // sub_commands is the list of sub commands. // The root command adds sub commands to the CLI. SubCommands []*Command `protobuf:"bytes,6,rep,name=sub_commands,json=subCommands,proto3" json:"sub_commands,omitempty"` // sub_packages is the list of sub packages. // The root command adds root commands of sub packages to the CLI. SubPackages []*Package `protobuf:"bytes,7,rep,name=sub_packages,json=subPackages,proto3" json:"sub_packages,omitempty"` // contains filtered or unexported fields }
Package represents golang codes hierarchy and root command.
The root command is the entry point of the CLI. The hierarchy of the commands is represented by sub_commands and sub_packages.
{root-directory} ├── ke │ ├── root.go │ └── v1alpha │ ├── cluster │ │ ├── createcluster.go │ │ └── root.go │ └── root.go └── root.go
func (*Package) Descriptor
deprecated
func (*Package) GetPackage ¶
func (*Package) GetSubCommands ¶
func (*Package) GetSubPackages ¶
func (*Package) ProtoMessage ¶
func (*Package) ProtoMessage()
func (*Package) ProtoReflect ¶
func (x *Package) ProtoReflect() protoreflect.Message
type Pagination ¶
type Pagination struct { // The cursor is the cursor of the page. It is the index of the first item in the page. Cursor int64 `protobuf:"varint,1,opt,name=cursor,proto3" json:"cursor,omitempty"` // contains filtered or unexported fields }
Pagination is the pagination information for a page token. The page token is base64 encoded string of the serialized Pagination message.
func (*Pagination) Descriptor
deprecated
func (*Pagination) Descriptor() ([]byte, []int)
Deprecated: Use Pagination.ProtoReflect.Descriptor instead.
func (*Pagination) GetCursor ¶
func (x *Pagination) GetCursor() int64
func (*Pagination) ProtoMessage ¶
func (*Pagination) ProtoMessage()
func (*Pagination) ProtoReflect ¶
func (x *Pagination) ProtoReflect() protoreflect.Message
func (*Pagination) Reset ¶
func (x *Pagination) Reset()
func (*Pagination) String ¶
func (x *Pagination) String() string
type RequestMessage ¶
type RequestMessage struct { // name is the field set by this message. // e.g. Cluster Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // type is the type of the field. // e.g. v1alpha.Cluster Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // fields is the list of non message fields. Fields []*RequestMessageField `protobuf:"bytes,3,rep,name=fields,proto3" json:"fields,omitempty"` // children is the list of message fields. Children []*RequestMessage `protobuf:"bytes,4,rep,name=children,proto3" json:"children,omitempty"` // contains filtered or unexported fields }
RequestMessage represents golang struct.
```
&v1alpha.ClusterCreateRequest { Cluster: &v1alpha.Cluster { DisplayName: displayName, } }
```
func (*RequestMessage) Descriptor
deprecated
func (*RequestMessage) Descriptor() ([]byte, []int)
Deprecated: Use RequestMessage.ProtoReflect.Descriptor instead.
func (*RequestMessage) GetChildren ¶
func (x *RequestMessage) GetChildren() []*RequestMessage
func (*RequestMessage) GetFields ¶
func (x *RequestMessage) GetFields() []*RequestMessageField
func (*RequestMessage) GetName ¶
func (x *RequestMessage) GetName() string
func (*RequestMessage) GetType ¶
func (x *RequestMessage) GetType() string
func (*RequestMessage) ProtoMessage ¶
func (*RequestMessage) ProtoMessage()
func (*RequestMessage) ProtoReflect ¶
func (x *RequestMessage) ProtoReflect() protoreflect.Message
func (*RequestMessage) Reset ¶
func (x *RequestMessage) Reset()
func (*RequestMessage) String ¶
func (x *RequestMessage) String() string
type RequestMessageField ¶
type RequestMessageField struct { // name is the field name. // e.g. DisplayName Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // value is the field value. // e.g. displayName Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
RequestMessageField represents golang struct field value.
``` Displayname: displayName ```
func (*RequestMessageField) Descriptor
deprecated
func (*RequestMessageField) Descriptor() ([]byte, []int)
Deprecated: Use RequestMessageField.ProtoReflect.Descriptor instead.
func (*RequestMessageField) GetName ¶
func (x *RequestMessageField) GetName() string
func (*RequestMessageField) GetValue ¶
func (x *RequestMessageField) GetValue() string
func (*RequestMessageField) ProtoMessage ¶
func (*RequestMessageField) ProtoMessage()
func (*RequestMessageField) ProtoReflect ¶
func (x *RequestMessageField) ProtoReflect() protoreflect.Message
func (*RequestMessageField) Reset ¶
func (x *RequestMessageField) Reset()
func (*RequestMessageField) String ¶
func (x *RequestMessageField) String() string
type ResponseMessage ¶
type ResponseMessage struct { // type is the type of the response. // e.g. v1alpha.ListClusterResponse Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // list_field is the field name of the resource list. // e.g. Clusters ListField string `protobuf:"bytes,2,opt,name=list_field,json=listField,proto3" json:"list_field,omitempty"` // contains filtered or unexported fields }
ResponseMessage represents golang struct.
``` var cluster *v1alpha.ListClusterResponse cluster.Clusters = append(cluster.Clusters, cluster.Clusters...) ```
func (*ResponseMessage) Descriptor
deprecated
func (*ResponseMessage) Descriptor() ([]byte, []int)
Deprecated: Use ResponseMessage.ProtoReflect.Descriptor instead.
func (*ResponseMessage) GetListField ¶
func (x *ResponseMessage) GetListField() string
func (*ResponseMessage) GetType ¶
func (x *ResponseMessage) GetType() string
func (*ResponseMessage) ProtoMessage ¶
func (*ResponseMessage) ProtoMessage()
func (*ResponseMessage) ProtoReflect ¶
func (x *ResponseMessage) ProtoReflect() protoreflect.Message
func (*ResponseMessage) Reset ¶
func (x *ResponseMessage) Reset()
func (*ResponseMessage) String ¶
func (x *ResponseMessage) String() string
type Service ¶
type Service struct { // name is the name of the gRPC service. // e.g. ke Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // api_version is the version of the gRPC API. // e.g. v1alpha ApiVersion string `protobuf:"bytes,2,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` // api_import_path is the import path of the gRPC API. // e.g. github.com/nokamoto/2pf23/pkg/api/ke/v1alpha ApiImportPath *ImportPath `protobuf:"bytes,3,opt,name=api_import_path,json=apiImportPath,proto3" json:"api_import_path,omitempty"` // calls is the list of gRPC calls. Calls []*Call `protobuf:"bytes,4,rep,name=calls,proto3" json:"calls,omitempty"` // contains filtered or unexported fields }
Service represents golang code to receive gRPC requests.
func (*Service) Descriptor
deprecated
func (*Service) GetApiImportPath ¶
func (x *Service) GetApiImportPath() *ImportPath
func (*Service) GetApiVersion ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message