Documentation ¶
Overview ¶
Package schema is a generated protocol buffer package.
It is generated from these files:
schema.proto
It has these top-level messages:
ProtoFile Schemas
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSchemaServiceServer ¶
func RegisterSchemaServiceServer(s *grpc.Server, srv SchemaServiceServer)
Types ¶
type ProtoFile ¶
type ProtoFile struct { FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName" json:"file_name,omitempty"` Proto string `protobuf:"bytes,2,opt,name=proto" json:"proto,omitempty"` Descriptor_ []byte `protobuf:"bytes,3,opt,name=descriptor,proto3" json:"descriptor,omitempty"` }
Contains the name and content of a *.proto file
func (*ProtoFile) Descriptor ¶
func (*ProtoFile) GetDescriptor_ ¶
func (*ProtoFile) GetFileName ¶
func (*ProtoFile) ProtoMessage ¶
func (*ProtoFile) ProtoMessage()
type SchemaServiceClient ¶
type SchemaServiceClient interface { // Return active grpc schemas GetSchema(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*Schemas, error) }
func NewSchemaServiceClient ¶
func NewSchemaServiceClient(cc *grpc.ClientConn) SchemaServiceClient
type SchemaServiceServer ¶
type Schemas ¶
type Schemas struct { // Proto files Protos []*ProtoFile `protobuf:"bytes,1,rep,name=protos" json:"protos,omitempty"` // Proto file name from which swagger.json shall be generated SwaggerFrom string `protobuf:"bytes,2,opt,name=swagger_from,json=swaggerFrom" json:"swagger_from,omitempty"` // Proto file name from which yang schemas shall be generated YangFrom string `protobuf:"bytes,3,opt,name=yang_from,json=yangFrom" json:"yang_from,omitempty"` }
Proto files and compiled descriptors for this interface
func (*Schemas) Descriptor ¶
func (*Schemas) GetSwaggerFrom ¶
func (*Schemas) GetYangFrom ¶
func (*Schemas) ProtoMessage ¶
func (*Schemas) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.