parser

package module
v0.0.0-...-aba9b32 Latest Latest
Warning

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

Go to latest
Published: May 18, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

README

parser-svc

Service Definitions for parser

Documentation

Overview

Package parser is a generated protocol buffer package.

It is generated from these files:

maven.proto
parser.proto

It has these top-level messages:

MavenResponse
ParserRequest
ParserResponse
FileInfo

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterParserServer

func RegisterParserServer(s *grpc.Server, srv ParserServer)

Types

type FileInfo

type FileInfo struct {
	Language  string   `protobuf:"bytes,1,opt,name=language" json:"language,omitempty"`
	FileNames []string `protobuf:"bytes,2,rep,name=file_names,json=fileNames" json:"file_names,omitempty"`
}

func (*FileInfo) Descriptor

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

func (*FileInfo) GetFileNames

func (m *FileInfo) GetFileNames() []string

func (*FileInfo) GetLanguage

func (m *FileInfo) GetLanguage() string

func (*FileInfo) ProtoMessage

func (*FileInfo) ProtoMessage()

func (*FileInfo) Reset

func (m *FileInfo) Reset()

func (*FileInfo) String

func (m *FileInfo) String() string

type MavenResponse

type MavenResponse struct {
	GroupId    string                    `protobuf:"bytes,1,opt,name=group_id,json=groupId" json:"group_id,omitempty"`
	ArtifactId string                    `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId" json:"artifact_id,omitempty"`
	Version    string                    `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"`
	Parent     *MavenResponse_Parent     `protobuf:"bytes,4,opt,name=parent" json:"parent,omitempty"`
	Modules    []string                  `protobuf:"bytes,5,rep,name=modules" json:"modules,omitempty"`
	Properties *MavenResponse_Properties `protobuf:"bytes,6,opt,name=properties" json:"properties,omitempty"`
}

func (*MavenResponse) Descriptor

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

func (*MavenResponse) GetArtifactId

func (m *MavenResponse) GetArtifactId() string

func (*MavenResponse) GetGroupId

func (m *MavenResponse) GetGroupId() string

func (*MavenResponse) GetModules

func (m *MavenResponse) GetModules() []string

func (*MavenResponse) GetParent

func (m *MavenResponse) GetParent() *MavenResponse_Parent

func (*MavenResponse) GetProperties

func (m *MavenResponse) GetProperties() *MavenResponse_Properties

func (*MavenResponse) GetVersion

func (m *MavenResponse) GetVersion() string

func (*MavenResponse) ProtoMessage

func (*MavenResponse) ProtoMessage()

func (*MavenResponse) Reset

func (m *MavenResponse) Reset()

func (*MavenResponse) String

func (m *MavenResponse) String() string

type MavenResponse_Parent

type MavenResponse_Parent struct {
	GroupId      string `protobuf:"bytes,1,opt,name=group_id,json=groupId" json:"group_id,omitempty"`
	ArtifactId   string `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId" json:"artifact_id,omitempty"`
	Version      string `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"`
	RelativePath string `protobuf:"bytes,4,opt,name=relative_path,json=relativePath" json:"relative_path,omitempty"`
}

func (*MavenResponse_Parent) Descriptor

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

func (*MavenResponse_Parent) GetArtifactId

func (m *MavenResponse_Parent) GetArtifactId() string

func (*MavenResponse_Parent) GetGroupId

func (m *MavenResponse_Parent) GetGroupId() string

func (*MavenResponse_Parent) GetRelativePath

func (m *MavenResponse_Parent) GetRelativePath() string

func (*MavenResponse_Parent) GetVersion

func (m *MavenResponse_Parent) GetVersion() string

func (*MavenResponse_Parent) ProtoMessage

func (*MavenResponse_Parent) ProtoMessage()

func (*MavenResponse_Parent) Reset

func (m *MavenResponse_Parent) Reset()

func (*MavenResponse_Parent) String

func (m *MavenResponse_Parent) String() string

type MavenResponse_Properties

type MavenResponse_Properties struct {
	JavaVersion string `protobuf:"bytes,1,opt,name=java_version,json=javaVersion" json:"java_version,omitempty"`
}

func (*MavenResponse_Properties) Descriptor

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

func (*MavenResponse_Properties) GetJavaVersion

func (m *MavenResponse_Properties) GetJavaVersion() string

func (*MavenResponse_Properties) ProtoMessage

func (*MavenResponse_Properties) ProtoMessage()

func (*MavenResponse_Properties) Reset

func (m *MavenResponse_Properties) Reset()

func (*MavenResponse_Properties) String

func (m *MavenResponse_Properties) String() string

type ParserClient

type ParserClient interface {
	Analyse(ctx context.Context, in *ParserRequest, opts ...grpc.CallOption) (*ParserResponse, error)
}

func NewParserClient

func NewParserClient(cc *grpc.ClientConn) ParserClient

type ParserRequest

type ParserRequest struct {
	RemoteUrl string      `protobuf:"bytes,1,opt,name=remote_url,json=remoteUrl" json:"remote_url,omitempty"`
	Version   string      `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
	FileInfo  []*FileInfo `protobuf:"bytes,3,rep,name=file_info,json=fileInfo" json:"file_info,omitempty"`
	Type      string      `protobuf:"bytes,4,opt,name=type" json:"type,omitempty"`
}

func (*ParserRequest) Descriptor

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

func (*ParserRequest) GetFileInfo

func (m *ParserRequest) GetFileInfo() []*FileInfo

func (*ParserRequest) GetRemoteUrl

func (m *ParserRequest) GetRemoteUrl() string

func (*ParserRequest) GetType

func (m *ParserRequest) GetType() string

func (*ParserRequest) GetVersion

func (m *ParserRequest) GetVersion() string

func (*ParserRequest) ProtoMessage

func (*ParserRequest) ProtoMessage()

func (*ParserRequest) Reset

func (m *ParserRequest) Reset()

func (*ParserRequest) String

func (m *ParserRequest) String() string

type ParserResponse

type ParserResponse struct {
	MavenResponse []*MavenResponse `protobuf:"bytes,1,rep,name=maven_response,json=mavenResponse" json:"maven_response,omitempty"`
}

func (*ParserResponse) Descriptor

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

func (*ParserResponse) GetMavenResponse

func (m *ParserResponse) GetMavenResponse() []*MavenResponse

func (*ParserResponse) ProtoMessage

func (*ParserResponse) ProtoMessage()

func (*ParserResponse) Reset

func (m *ParserResponse) Reset()

func (*ParserResponse) String

func (m *ParserResponse) String() string

type ParserServer

type ParserServer interface {
	Analyse(context.Context, *ParserRequest) (*ParserResponse, error)
}

Jump to

Keyboard shortcuts

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