sdk.v3: gopkg.in/bblfsh/sdk.v3/protocol Index | Files | Directories

package protocol

import "gopkg.in/bblfsh/sdk.v3/protocol"

Index

Package Files

driver.go driver.pb.go

Constants

const (

    // DefaultGRPCMaxMessageBytes is maximum msg size for gRPC.
    DefaultGRPCMaxMessageBytes = 100 * mb
)

Variables

var (
    ErrInvalidLengthDriver = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowDriver   = fmt.Errorf("proto: integer overflow")
)
var DevelopmentStatus_name = map[int32]string{
    0:  "DEV_INACTIVE",
    1:  "DEV_PLANNING",
    2:  "DEV_PREALPHA",
    3:  "DEV_ALPHA",
    4:  "DEV_BETA",
    5:  "DEV_STABLE",
    6:  "DEV_MATURE",
}
var DevelopmentStatus_value = map[string]int32{
    "DEV_INACTIVE": 0,
    "DEV_PLANNING": 1,
    "DEV_PREALPHA": 2,
    "DEV_ALPHA":    3,
    "DEV_BETA":     4,
    "DEV_STABLE":   5,
    "DEV_MATURE":   6,
}
var Mode_name = map[int32]string{
    0:  "DEFAULT_MODE",
    1:  "NATIVE",
    2:  "PREPROCESSED",
    4:  "ANNOTATED",
    8:  "SEMANTIC",
}
var Mode_value = map[string]int32{
    "DEFAULT_MODE": 0,
    "NATIVE":       1,
    "PREPROCESSED": 2,
    "ANNOTATED":    4,
    "SEMANTIC":     8,
}

func AsDriver Uses

func AsDriver(cc *grpc.ClientConn) driver.Driver

AsDriver creates a v2 driver client for a given gRPC client.

func DialOptions Uses

func DialOptions() []grpc.DialOption

DialOptions returns a set of common options that should be used when dialing bblfsh server.

It automatically enables OpenTrace if a global tracer is set.

func RegisterDriver Uses

func RegisterDriver(srv *grpc.Server, d driver.Driver)

RegisterDriver registers a v2 driver server on a given gRPC server.

func RegisterDriverHostServer Uses

func RegisterDriverHostServer(s *grpc.Server, srv DriverHostServer)

func RegisterDriverServer Uses

func RegisterDriverServer(s *grpc.Server, srv DriverServer)

func ServerOptions Uses

func ServerOptions() []grpc.ServerOption

ServerOptions returns a set of common options that should be used in bblfsh server.

It automatically enables OpenTrace if a global tracer is set.

type DevelopmentStatus Uses

type DevelopmentStatus int32
const (
    DevelopmentStatus_Inactive DevelopmentStatus = 0
    DevelopmentStatus_Planning DevelopmentStatus = 1
    DevelopmentStatus_PreAlpha DevelopmentStatus = 2
    DevelopmentStatus_Alpha    DevelopmentStatus = 3
    DevelopmentStatus_Beta     DevelopmentStatus = 4
    DevelopmentStatus_Stable   DevelopmentStatus = 5
    DevelopmentStatus_Mature   DevelopmentStatus = 6
)

func (DevelopmentStatus) EnumDescriptor Uses

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

func (DevelopmentStatus) String Uses

func (x DevelopmentStatus) String() string

type DriverClient Uses

type DriverClient interface {
    // Parse returns an UAST for a given source file.
    Parse(ctx context.Context, in *ParseRequest, opts ...grpc.CallOption) (*ParseResponse, error)
}

DriverClient is the client API for Driver service.

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

func NewDriverClient Uses

func NewDriverClient(cc *grpc.ClientConn) DriverClient

type DriverHostClient Uses

type DriverHostClient interface {
    // ServerVersion returns version information of this server.
    ServerVersion(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error)
    // SupportedLanguages returns a list of languages supported by the server.
    SupportedLanguages(ctx context.Context, in *SupportedLanguagesRequest, opts ...grpc.CallOption) (*SupportedLanguagesResponse, error)
}

DriverHostClient is the client API for DriverHost service.

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

func NewDriverHostClient Uses

func NewDriverHostClient(cc *grpc.ClientConn) DriverHostClient

type DriverHostServer Uses

type DriverHostServer interface {
    // ServerVersion returns version information of this server.
    ServerVersion(context.Context, *VersionRequest) (*VersionResponse, error)
    // SupportedLanguages returns a list of languages supported by the server.
    SupportedLanguages(context.Context, *SupportedLanguagesRequest) (*SupportedLanguagesResponse, error)
}

DriverHostServer is the server API for DriverHost service.

type DriverServer Uses

type DriverServer interface {
    // Parse returns an UAST for a given source file.
    Parse(context.Context, *ParseRequest) (*ParseResponse, error)
}

DriverServer is the server API for Driver service.

type ErrorDetails Uses

type ErrorDetails struct {
    // Types that are valid to be assigned to Reason:
    //	*ErrorDetails_InvalidFileEncoding
    //	*ErrorDetails_UnsupportedLanguage
    //	*ErrorDetails_CannotDetectLanguage
    //	*ErrorDetails_UnsupportedTransformMode
    //	*ErrorDetails_TransformFailure
    //	*ErrorDetails_DriverFailure
    Reason               isErrorDetails_Reason `protobuf_oneof:"reason"`
    XXX_NoUnkeyedLiteral struct{}              `json:"-"`
    XXX_unrecognized     []byte                `json:"-"`
    XXX_sizecache        int32                 `json:"-"`
}

ErrorDetails adds bblfsh-specific information to gRPC errors (google.rpc.Status).

func (*ErrorDetails) Descriptor Uses

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

func (*ErrorDetails) GetCannotDetectLanguage Uses

func (m *ErrorDetails) GetCannotDetectLanguage() bool

func (*ErrorDetails) GetDriverFailure Uses

func (m *ErrorDetails) GetDriverFailure() bool

func (*ErrorDetails) GetInvalidFileEncoding Uses

func (m *ErrorDetails) GetInvalidFileEncoding() bool

func (*ErrorDetails) GetReason Uses

func (m *ErrorDetails) GetReason() isErrorDetails_Reason

func (*ErrorDetails) GetTransformFailure Uses

func (m *ErrorDetails) GetTransformFailure() bool

func (*ErrorDetails) GetUnsupportedLanguage Uses

func (m *ErrorDetails) GetUnsupportedLanguage() string

func (*ErrorDetails) GetUnsupportedTransformMode Uses

func (m *ErrorDetails) GetUnsupportedTransformMode() bool

func (*ErrorDetails) Marshal Uses

func (m *ErrorDetails) Marshal() (dAtA []byte, err error)

func (*ErrorDetails) MarshalTo Uses

func (m *ErrorDetails) MarshalTo(dAtA []byte) (int, error)

func (*ErrorDetails) MarshalToSizedBuffer Uses

func (m *ErrorDetails) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ErrorDetails) ProtoMessage Uses

func (*ErrorDetails) ProtoMessage()

func (*ErrorDetails) ProtoSize Uses

func (m *ErrorDetails) ProtoSize() (n int)

func (*ErrorDetails) Reset Uses

func (m *ErrorDetails) Reset()

func (*ErrorDetails) String Uses

func (m *ErrorDetails) String() string

func (*ErrorDetails) Unmarshal Uses

func (m *ErrorDetails) Unmarshal(dAtA []byte) error

func (*ErrorDetails) XXX_DiscardUnknown Uses

func (m *ErrorDetails) XXX_DiscardUnknown()

func (*ErrorDetails) XXX_Marshal Uses

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

func (*ErrorDetails) XXX_Merge Uses

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

func (*ErrorDetails) XXX_MessageName Uses

func (*ErrorDetails) XXX_MessageName() string

func (*ErrorDetails) XXX_OneofFuncs Uses

func (*ErrorDetails) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*ErrorDetails) XXX_Size Uses

func (m *ErrorDetails) XXX_Size() int

func (*ErrorDetails) XXX_Unmarshal Uses

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

type ErrorDetails_CannotDetectLanguage Uses

type ErrorDetails_CannotDetectLanguage struct {
    CannotDetectLanguage bool `protobuf:"varint,3,opt,name=cannot_detect_language,json=cannotDetectLanguage,proto3,oneof"`
}

func (*ErrorDetails_CannotDetectLanguage) MarshalTo Uses

func (m *ErrorDetails_CannotDetectLanguage) MarshalTo(dAtA []byte) (int, error)

func (*ErrorDetails_CannotDetectLanguage) MarshalToSizedBuffer Uses

func (m *ErrorDetails_CannotDetectLanguage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ErrorDetails_CannotDetectLanguage) ProtoSize Uses

func (m *ErrorDetails_CannotDetectLanguage) ProtoSize() (n int)

type ErrorDetails_DriverFailure Uses

type ErrorDetails_DriverFailure struct {
    DriverFailure bool `protobuf:"varint,6,opt,name=driver_failure,json=driverFailure,proto3,oneof"`
}

func (*ErrorDetails_DriverFailure) MarshalTo Uses

func (m *ErrorDetails_DriverFailure) MarshalTo(dAtA []byte) (int, error)

func (*ErrorDetails_DriverFailure) MarshalToSizedBuffer Uses

func (m *ErrorDetails_DriverFailure) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ErrorDetails_DriverFailure) ProtoSize Uses

func (m *ErrorDetails_DriverFailure) ProtoSize() (n int)

type ErrorDetails_InvalidFileEncoding Uses

type ErrorDetails_InvalidFileEncoding struct {
    InvalidFileEncoding bool `protobuf:"varint,1,opt,name=invalid_file_encoding,json=invalidFileEncoding,proto3,oneof"`
}

func (*ErrorDetails_InvalidFileEncoding) MarshalTo Uses

func (m *ErrorDetails_InvalidFileEncoding) MarshalTo(dAtA []byte) (int, error)

func (*ErrorDetails_InvalidFileEncoding) MarshalToSizedBuffer Uses

func (m *ErrorDetails_InvalidFileEncoding) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ErrorDetails_InvalidFileEncoding) ProtoSize Uses

func (m *ErrorDetails_InvalidFileEncoding) ProtoSize() (n int)

type ErrorDetails_TransformFailure Uses

type ErrorDetails_TransformFailure struct {
    TransformFailure bool `protobuf:"varint,5,opt,name=transform_failure,json=transformFailure,proto3,oneof"`
}

func (*ErrorDetails_TransformFailure) MarshalTo Uses

func (m *ErrorDetails_TransformFailure) MarshalTo(dAtA []byte) (int, error)

func (*ErrorDetails_TransformFailure) MarshalToSizedBuffer Uses

func (m *ErrorDetails_TransformFailure) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ErrorDetails_TransformFailure) ProtoSize Uses

func (m *ErrorDetails_TransformFailure) ProtoSize() (n int)

type ErrorDetails_UnsupportedLanguage Uses

type ErrorDetails_UnsupportedLanguage struct {
    UnsupportedLanguage string `protobuf:"bytes,2,opt,name=unsupported_language,json=unsupportedLanguage,proto3,oneof"`
}

func (*ErrorDetails_UnsupportedLanguage) MarshalTo Uses

func (m *ErrorDetails_UnsupportedLanguage) MarshalTo(dAtA []byte) (int, error)

func (*ErrorDetails_UnsupportedLanguage) MarshalToSizedBuffer Uses

func (m *ErrorDetails_UnsupportedLanguage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ErrorDetails_UnsupportedLanguage) ProtoSize Uses

func (m *ErrorDetails_UnsupportedLanguage) ProtoSize() (n int)

type ErrorDetails_UnsupportedTransformMode Uses

type ErrorDetails_UnsupportedTransformMode struct {
    UnsupportedTransformMode bool `protobuf:"varint,4,opt,name=unsupported_transform_mode,json=unsupportedTransformMode,proto3,oneof"`
}

func (*ErrorDetails_UnsupportedTransformMode) MarshalTo Uses

func (m *ErrorDetails_UnsupportedTransformMode) MarshalTo(dAtA []byte) (int, error)

func (*ErrorDetails_UnsupportedTransformMode) MarshalToSizedBuffer Uses

func (m *ErrorDetails_UnsupportedTransformMode) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ErrorDetails_UnsupportedTransformMode) ProtoSize Uses

func (m *ErrorDetails_UnsupportedTransformMode) ProtoSize() (n int)

type Manifest Uses

type Manifest struct {
    // Name is a human-readable language or driver name.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Language is a Babelfish language identifier.
    Language string `protobuf:"bytes,2,opt,name=language,proto3" json:"language,omitempty"`
    // Aliases is a list of alternative language identifiers from Enry/Linguist.
    Aliases []string `protobuf:"bytes,3,rep,name=aliases,proto3" json:"aliases,omitempty"`
    // Version of the language driver.
    Version *Version `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
    // Status of the driver development.
    Status DevelopmentStatus `protobuf:"varint,5,opt,name=status,proto3,enum=gopkg.in.bblfsh.sdk.v2.protocol.DevelopmentStatus" json:"status,omitempty"`
    // Features this driver supports.
    Features             []string `protobuf:"bytes,6,rep,name=features,proto3" json:"features,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func NewManifest Uses

func NewManifest(m *manifest.Manifest) *Manifest

NewManifest converts driver manifest to the corresponding protocol message.

func (*Manifest) Descriptor Uses

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

func (*Manifest) Marshal Uses

func (m *Manifest) Marshal() (dAtA []byte, err error)

func (*Manifest) MarshalTo Uses

func (m *Manifest) MarshalTo(dAtA []byte) (int, error)

func (*Manifest) MarshalToSizedBuffer Uses

func (m *Manifest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Manifest) ProtoMessage Uses

func (*Manifest) ProtoMessage()

func (*Manifest) ProtoSize Uses

func (m *Manifest) ProtoSize() (n int)

func (*Manifest) Reset Uses

func (m *Manifest) Reset()

func (*Manifest) String Uses

func (m *Manifest) String() string

func (*Manifest) ToNative Uses

func (m *Manifest) ToNative() *manifest.Manifest

ToNative converts the manifest message to the driver manifest used by the SDK.

func (*Manifest) Unmarshal Uses

func (m *Manifest) Unmarshal(dAtA []byte) error

func (*Manifest) XXX_DiscardUnknown Uses

func (m *Manifest) XXX_DiscardUnknown()

func (*Manifest) XXX_Marshal Uses

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

func (*Manifest) XXX_Merge Uses

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

func (*Manifest) XXX_Size Uses

func (m *Manifest) XXX_Size() int

func (*Manifest) XXX_Unmarshal Uses

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

type Mode Uses

type Mode int32
const (
    // DefaultMode selects the transformation mode that is considered to produce UAST of the best quality.
    Mode_DefaultMode Mode = 0
    // Native disables any UAST transformations and emits a native language AST as returned by the parser.
    Mode_Native Mode = 1
    // Preprocessed runs only basic transformation over native AST (normalize positional info, type fields).
    Mode_Preprocessed Mode = 2
    // Annotated UAST is based on native AST, but provides role annotations for nodes.
    Mode_Annotated Mode = 4
    // Semantic UAST normalizes native AST nodes to a unified structure where possible.
    Mode_Semantic Mode = 8
)

func (Mode) EnumDescriptor Uses

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

func (Mode) String Uses

func (x Mode) String() string

type ParseError Uses

type ParseError struct {
    // Text is an error message.
    Text                 string   `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ParseError) Descriptor Uses

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

func (*ParseError) Marshal Uses

func (m *ParseError) Marshal() (dAtA []byte, err error)

func (*ParseError) MarshalTo Uses

func (m *ParseError) MarshalTo(dAtA []byte) (int, error)

func (*ParseError) MarshalToSizedBuffer Uses

func (m *ParseError) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ParseError) ProtoMessage Uses

func (*ParseError) ProtoMessage()

func (*ParseError) ProtoSize Uses

func (m *ParseError) ProtoSize() (n int)

func (*ParseError) Reset Uses

func (m *ParseError) Reset()

func (*ParseError) String Uses

func (m *ParseError) String() string

func (*ParseError) Unmarshal Uses

func (m *ParseError) Unmarshal(dAtA []byte) error

func (*ParseError) XXX_DiscardUnknown Uses

func (m *ParseError) XXX_DiscardUnknown()

func (*ParseError) XXX_Marshal Uses

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

func (*ParseError) XXX_Merge Uses

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

func (*ParseError) XXX_Size Uses

func (m *ParseError) XXX_Size() int

func (*ParseError) XXX_Unmarshal Uses

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

type ParseRequest Uses

type ParseRequest struct {
    // Content stores the content of a source file. Required.
    Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
    // Language can be set optionally to disable automatic language detection.
    Language string `protobuf:"bytes,2,opt,name=language,proto3" json:"language,omitempty"`
    // Filename can be set optionally to assist automatic language detection.
    Filename string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"`
    // Mode sets a transformation pipeline used for UAST.
    Mode                 Mode     `protobuf:"varint,4,opt,name=mode,proto3,enum=gopkg.in.bblfsh.sdk.v2.protocol.Mode" json:"mode,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

ParseRequest is a request to parse a file and get its UAST.

func (*ParseRequest) Descriptor Uses

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

func (*ParseRequest) Marshal Uses

func (m *ParseRequest) Marshal() (dAtA []byte, err error)

func (*ParseRequest) MarshalTo Uses

func (m *ParseRequest) MarshalTo(dAtA []byte) (int, error)

func (*ParseRequest) MarshalToSizedBuffer Uses

func (m *ParseRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ParseRequest) ProtoMessage Uses

func (*ParseRequest) ProtoMessage()

func (*ParseRequest) ProtoSize Uses

func (m *ParseRequest) ProtoSize() (n int)

func (*ParseRequest) Reset Uses

func (m *ParseRequest) Reset()

func (*ParseRequest) String Uses

func (m *ParseRequest) String() string

func (*ParseRequest) Unmarshal Uses

func (m *ParseRequest) Unmarshal(dAtA []byte) error

func (*ParseRequest) XXX_DiscardUnknown Uses

func (m *ParseRequest) XXX_DiscardUnknown()

func (*ParseRequest) XXX_Marshal Uses

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

func (*ParseRequest) XXX_Merge Uses

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

func (*ParseRequest) XXX_Size Uses

func (m *ParseRequest) XXX_Size() int

func (*ParseRequest) XXX_Unmarshal Uses

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

type ParseResponse Uses

type ParseResponse struct {
    // UAST is a binary encoding of the resulting UAST.
    Uast []byte `protobuf:"bytes,1,opt,name=uast,proto3" json:"uast,omitempty"`
    // Language that was automatically detected.
    Language string `protobuf:"bytes,2,opt,name=language,proto3" json:"language,omitempty"`
    // Errors is a list of parsing errors.
    // Only set if parser was able to return a response. Otherwise gRPC error codes are used.
    Errors               []*ParseError `protobuf:"bytes,3,rep,name=errors,proto3" json:"errors,omitempty"`
    XXX_NoUnkeyedLiteral struct{}      `json:"-"`
    XXX_unrecognized     []byte        `json:"-"`
    XXX_sizecache        int32         `json:"-"`
}

ParseResponse is the reply to ParseRequest.

func (*ParseResponse) Descriptor Uses

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

func (*ParseResponse) Marshal Uses

func (m *ParseResponse) Marshal() (dAtA []byte, err error)

func (*ParseResponse) MarshalTo Uses

func (m *ParseResponse) MarshalTo(dAtA []byte) (int, error)

func (*ParseResponse) MarshalToSizedBuffer Uses

func (m *ParseResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ParseResponse) Nodes Uses

func (m *ParseResponse) Nodes() (nodes.Node, error)

func (*ParseResponse) ProtoMessage Uses

func (*ParseResponse) ProtoMessage()

func (*ParseResponse) ProtoSize Uses

func (m *ParseResponse) ProtoSize() (n int)

func (*ParseResponse) Reset Uses

func (m *ParseResponse) Reset()

func (*ParseResponse) String Uses

func (m *ParseResponse) String() string

func (*ParseResponse) Unmarshal Uses

func (m *ParseResponse) Unmarshal(dAtA []byte) error

func (*ParseResponse) XXX_DiscardUnknown Uses

func (m *ParseResponse) XXX_DiscardUnknown()

func (*ParseResponse) XXX_Marshal Uses

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

func (*ParseResponse) XXX_Merge Uses

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

func (*ParseResponse) XXX_Size Uses

func (m *ParseResponse) XXX_Size() int

func (*ParseResponse) XXX_Unmarshal Uses

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

type SupportedLanguagesRequest Uses

type SupportedLanguagesRequest struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*SupportedLanguagesRequest) Descriptor Uses

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

func (*SupportedLanguagesRequest) Marshal Uses

func (m *SupportedLanguagesRequest) Marshal() (dAtA []byte, err error)

func (*SupportedLanguagesRequest) MarshalTo Uses

func (m *SupportedLanguagesRequest) MarshalTo(dAtA []byte) (int, error)

func (*SupportedLanguagesRequest) MarshalToSizedBuffer Uses

func (m *SupportedLanguagesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SupportedLanguagesRequest) ProtoMessage Uses

func (*SupportedLanguagesRequest) ProtoMessage()

func (*SupportedLanguagesRequest) ProtoSize Uses

func (m *SupportedLanguagesRequest) ProtoSize() (n int)

func (*SupportedLanguagesRequest) Reset Uses

func (m *SupportedLanguagesRequest) Reset()

func (*SupportedLanguagesRequest) String Uses

func (m *SupportedLanguagesRequest) String() string

func (*SupportedLanguagesRequest) Unmarshal Uses

func (m *SupportedLanguagesRequest) Unmarshal(dAtA []byte) error

func (*SupportedLanguagesRequest) XXX_DiscardUnknown Uses

func (m *SupportedLanguagesRequest) XXX_DiscardUnknown()

func (*SupportedLanguagesRequest) XXX_Marshal Uses

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

func (*SupportedLanguagesRequest) XXX_Merge Uses

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

func (*SupportedLanguagesRequest) XXX_Size Uses

func (m *SupportedLanguagesRequest) XXX_Size() int

func (*SupportedLanguagesRequest) XXX_Unmarshal Uses

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

type SupportedLanguagesResponse Uses

type SupportedLanguagesResponse struct {
    // Languages is a list of driver manifests for each language supported by the server.
    Languages            []*Manifest `protobuf:"bytes,1,rep,name=languages,proto3" json:"languages,omitempty"`
    XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    XXX_unrecognized     []byte      `json:"-"`
    XXX_sizecache        int32       `json:"-"`
}

func (*SupportedLanguagesResponse) Descriptor Uses

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

func (*SupportedLanguagesResponse) Marshal Uses

func (m *SupportedLanguagesResponse) Marshal() (dAtA []byte, err error)

func (*SupportedLanguagesResponse) MarshalTo Uses

func (m *SupportedLanguagesResponse) MarshalTo(dAtA []byte) (int, error)

func (*SupportedLanguagesResponse) MarshalToSizedBuffer Uses

func (m *SupportedLanguagesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SupportedLanguagesResponse) ProtoMessage Uses

func (*SupportedLanguagesResponse) ProtoMessage()

func (*SupportedLanguagesResponse) ProtoSize Uses

func (m *SupportedLanguagesResponse) ProtoSize() (n int)

func (*SupportedLanguagesResponse) Reset Uses

func (m *SupportedLanguagesResponse) Reset()

func (*SupportedLanguagesResponse) String Uses

func (m *SupportedLanguagesResponse) String() string

func (*SupportedLanguagesResponse) Unmarshal Uses

func (m *SupportedLanguagesResponse) Unmarshal(dAtA []byte) error

func (*SupportedLanguagesResponse) XXX_DiscardUnknown Uses

func (m *SupportedLanguagesResponse) XXX_DiscardUnknown()

func (*SupportedLanguagesResponse) XXX_Marshal Uses

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

func (*SupportedLanguagesResponse) XXX_Merge Uses

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

func (*SupportedLanguagesResponse) XXX_Size Uses

func (m *SupportedLanguagesResponse) XXX_Size() int

func (*SupportedLanguagesResponse) XXX_Unmarshal Uses

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

type UnimplementedDriverHostServer Uses

type UnimplementedDriverHostServer struct {
}

UnimplementedDriverHostServer can be embedded to have forward compatible implementations.

func (*UnimplementedDriverHostServer) ServerVersion Uses

func (*UnimplementedDriverHostServer) ServerVersion(ctx context.Context, req *VersionRequest) (*VersionResponse, error)

func (*UnimplementedDriverHostServer) SupportedLanguages Uses

func (*UnimplementedDriverHostServer) SupportedLanguages(ctx context.Context, req *SupportedLanguagesRequest) (*SupportedLanguagesResponse, error)

type UnimplementedDriverServer Uses

type UnimplementedDriverServer struct {
}

UnimplementedDriverServer can be embedded to have forward compatible implementations.

func (*UnimplementedDriverServer) Parse Uses

func (*UnimplementedDriverServer) Parse(ctx context.Context, req *ParseRequest) (*ParseResponse, error)

type Version Uses

type Version struct {
    Version              string    `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
    Build                time.Time `protobuf:"bytes,2,opt,name=build,proto3,stdtime" json:"build"`
    XXX_NoUnkeyedLiteral struct{}  `json:"-"`
    XXX_unrecognized     []byte    `json:"-"`
    XXX_sizecache        int32     `json:"-"`
}

func (*Version) Descriptor Uses

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

func (*Version) Marshal Uses

func (m *Version) Marshal() (dAtA []byte, err error)

func (*Version) MarshalTo Uses

func (m *Version) MarshalTo(dAtA []byte) (int, error)

func (*Version) MarshalToSizedBuffer Uses

func (m *Version) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Version) ProtoMessage Uses

func (*Version) ProtoMessage()

func (*Version) ProtoSize Uses

func (m *Version) ProtoSize() (n int)

func (*Version) Reset Uses

func (m *Version) Reset()

func (*Version) String Uses

func (m *Version) String() string

func (*Version) Unmarshal Uses

func (m *Version) Unmarshal(dAtA []byte) error

func (*Version) XXX_DiscardUnknown Uses

func (m *Version) XXX_DiscardUnknown()

func (*Version) XXX_Marshal Uses

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

func (*Version) XXX_Merge Uses

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

func (*Version) XXX_Size Uses

func (m *Version) XXX_Size() int

func (*Version) XXX_Unmarshal Uses

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

type VersionRequest Uses

type VersionRequest struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*VersionRequest) Descriptor Uses

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

func (*VersionRequest) Marshal Uses

func (m *VersionRequest) Marshal() (dAtA []byte, err error)

func (*VersionRequest) MarshalTo Uses

func (m *VersionRequest) MarshalTo(dAtA []byte) (int, error)

func (*VersionRequest) MarshalToSizedBuffer Uses

func (m *VersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VersionRequest) ProtoMessage Uses

func (*VersionRequest) ProtoMessage()

func (*VersionRequest) ProtoSize Uses

func (m *VersionRequest) ProtoSize() (n int)

func (*VersionRequest) Reset Uses

func (m *VersionRequest) Reset()

func (*VersionRequest) String Uses

func (m *VersionRequest) String() string

func (*VersionRequest) Unmarshal Uses

func (m *VersionRequest) Unmarshal(dAtA []byte) error

func (*VersionRequest) XXX_DiscardUnknown Uses

func (m *VersionRequest) XXX_DiscardUnknown()

func (*VersionRequest) XXX_Marshal Uses

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

func (*VersionRequest) XXX_Merge Uses

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

func (*VersionRequest) XXX_Size Uses

func (m *VersionRequest) XXX_Size() int

func (*VersionRequest) XXX_Unmarshal Uses

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

type VersionResponse Uses

type VersionResponse struct {
    Version              *Version `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 Uses

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

func (*VersionResponse) Marshal Uses

func (m *VersionResponse) Marshal() (dAtA []byte, err error)

func (*VersionResponse) MarshalTo Uses

func (m *VersionResponse) MarshalTo(dAtA []byte) (int, error)

func (*VersionResponse) MarshalToSizedBuffer Uses

func (m *VersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VersionResponse) ProtoMessage Uses

func (*VersionResponse) ProtoMessage()

func (*VersionResponse) ProtoSize Uses

func (m *VersionResponse) ProtoSize() (n int)

func (*VersionResponse) Reset Uses

func (m *VersionResponse) Reset()

func (*VersionResponse) String Uses

func (m *VersionResponse) String() string

func (*VersionResponse) Unmarshal Uses

func (m *VersionResponse) Unmarshal(dAtA []byte) error

func (*VersionResponse) XXX_DiscardUnknown Uses

func (m *VersionResponse) XXX_DiscardUnknown()

func (*VersionResponse) XXX_Marshal Uses

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

func (*VersionResponse) XXX_Merge Uses

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

func (*VersionResponse) XXX_Size Uses

func (m *VersionResponse) XXX_Size() int

func (*VersionResponse) XXX_Unmarshal Uses

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

Directories

PathSynopsis
v1

Package protocol imports 25 packages (graph). Updated 2019-10-16. Refresh now. Tools for package owners.