schema

package
v0.0.0-...-8f485f0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

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) Descriptor() ([]byte, []int)

func (*ProtoFile) GetDescriptor_

func (m *ProtoFile) GetDescriptor_() []byte

func (*ProtoFile) GetFileName

func (m *ProtoFile) GetFileName() string

func (*ProtoFile) GetProto

func (m *ProtoFile) GetProto() string

func (*ProtoFile) ProtoMessage

func (*ProtoFile) ProtoMessage()

func (*ProtoFile) Reset

func (m *ProtoFile) Reset()

func (*ProtoFile) String

func (m *ProtoFile) String() string

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 SchemaServiceServer interface {
	// Return active grpc schemas
	GetSchema(context.Context, *google_protobuf1.Empty) (*Schemas, error)
}

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) Descriptor() ([]byte, []int)

func (*Schemas) GetProtos

func (m *Schemas) GetProtos() []*ProtoFile

func (*Schemas) GetSwaggerFrom

func (m *Schemas) GetSwaggerFrom() string

func (*Schemas) GetYangFrom

func (m *Schemas) GetYangFrom() string

func (*Schemas) ProtoMessage

func (*Schemas) ProtoMessage()

func (*Schemas) Reset

func (m *Schemas) Reset()

func (*Schemas) String

func (m *Schemas) String() string

Jump to

Keyboard shortcuts

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