Documentation ¶
Overview ¶
Package go_ltp is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client APIClient) error
- func RegisterAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAPIServer(s *grpc.Server, srv APIServer)
- func RegisterHealthServer(s *grpc.Server, srv HealthServer)
- type APIClient
- type APIServer
- type CreateItemRequest
- func (*CreateItemRequest) Descriptor() ([]byte, []int)
- func (m *CreateItemRequest) GetStatements() []*Statement
- func (m *CreateItemRequest) GetTypes() []string
- func (*CreateItemRequest) ProtoMessage()
- func (m *CreateItemRequest) Reset()
- func (m *CreateItemRequest) String() string
- func (m *CreateItemRequest) XXX_DiscardUnknown()
- func (m *CreateItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateItemRequest) XXX_Merge(src proto.Message)
- func (m *CreateItemRequest) XXX_Size() int
- func (m *CreateItemRequest) XXX_Unmarshal(b []byte) error
- type CreateItemResponse
- func (*CreateItemResponse) Descriptor() ([]byte, []int)
- func (m *CreateItemResponse) GetItem() *Item
- func (*CreateItemResponse) ProtoMessage()
- func (m *CreateItemResponse) Reset()
- func (m *CreateItemResponse) String() string
- func (m *CreateItemResponse) XXX_DiscardUnknown()
- func (m *CreateItemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateItemResponse) XXX_Merge(src proto.Message)
- func (m *CreateItemResponse) XXX_Size() int
- func (m *CreateItemResponse) XXX_Unmarshal(b []byte) error
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type GetItemRequest
- func (*GetItemRequest) Descriptor() ([]byte, []int)
- func (m *GetItemRequest) GetIRI() string
- func (*GetItemRequest) ProtoMessage()
- func (m *GetItemRequest) Reset()
- func (m *GetItemRequest) String() string
- func (m *GetItemRequest) XXX_DiscardUnknown()
- func (m *GetItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetItemRequest) XXX_Merge(src proto.Message)
- func (m *GetItemRequest) XXX_Size() int
- func (m *GetItemRequest) XXX_Unmarshal(b []byte) error
- type GetItemResponse
- func (*GetItemResponse) Descriptor() ([]byte, []int)
- func (m *GetItemResponse) GetItem() *Item
- func (*GetItemResponse) ProtoMessage()
- func (m *GetItemResponse) Reset()
- func (m *GetItemResponse) String() string
- func (m *GetItemResponse) XXX_DiscardUnknown()
- func (m *GetItemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetItemResponse) XXX_Merge(src proto.Message)
- func (m *GetItemResponse) XXX_Size() int
- func (m *GetItemResponse) XXX_Unmarshal(b []byte) error
- type GetTypeRequest
- func (*GetTypeRequest) Descriptor() ([]byte, []int)
- func (m *GetTypeRequest) GetIRI() string
- func (*GetTypeRequest) ProtoMessage()
- func (m *GetTypeRequest) Reset()
- func (m *GetTypeRequest) String() string
- func (m *GetTypeRequest) XXX_DiscardUnknown()
- func (m *GetTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTypeRequest) XXX_Merge(src proto.Message)
- func (m *GetTypeRequest) XXX_Size() int
- func (m *GetTypeRequest) XXX_Unmarshal(b []byte) error
- type GetTypeResponse
- func (*GetTypeResponse) Descriptor() ([]byte, []int)
- func (m *GetTypeResponse) GetType() *Type
- func (*GetTypeResponse) ProtoMessage()
- func (m *GetTypeResponse) Reset()
- func (m *GetTypeResponse) String() string
- func (m *GetTypeResponse) XXX_DiscardUnknown()
- func (m *GetTypeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTypeResponse) XXX_Merge(src proto.Message)
- func (m *GetTypeResponse) XXX_Size() int
- func (m *GetTypeResponse) XXX_Unmarshal(b []byte) error
- type HealthCheckRequest
- func (*HealthCheckRequest) Descriptor() ([]byte, []int)
- func (m *HealthCheckRequest) GetService() string
- func (*HealthCheckRequest) ProtoMessage()
- func (m *HealthCheckRequest) Reset()
- func (m *HealthCheckRequest) String() string
- func (m *HealthCheckRequest) XXX_DiscardUnknown()
- func (m *HealthCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HealthCheckRequest) XXX_Merge(src proto.Message)
- func (m *HealthCheckRequest) XXX_Size() int
- func (m *HealthCheckRequest) XXX_Unmarshal(b []byte) error
- type HealthCheckResponse
- func (*HealthCheckResponse) Descriptor() ([]byte, []int)
- func (m *HealthCheckResponse) GetStatus() HealthCheckResponse_ServingStatus
- func (*HealthCheckResponse) ProtoMessage()
- func (m *HealthCheckResponse) Reset()
- func (m *HealthCheckResponse) String() string
- func (m *HealthCheckResponse) XXX_DiscardUnknown()
- func (m *HealthCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HealthCheckResponse) XXX_Merge(src proto.Message)
- func (m *HealthCheckResponse) XXX_Size() int
- func (m *HealthCheckResponse) XXX_Unmarshal(b []byte) error
- type HealthCheckResponse_ServingStatus
- type HealthClient
- type HealthServer
- type Item
- func (*Item) Descriptor() ([]byte, []int)
- func (m *Item) GetIRI() string
- func (m *Item) GetStatements() []*Statement
- func (m *Item) GetTypes() []string
- func (*Item) ProtoMessage()
- func (m *Item) Reset()
- func (m *Item) String() string
- func (m *Item) XXX_DiscardUnknown()
- func (m *Item) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Item) XXX_Merge(src proto.Message)
- func (m *Item) XXX_Size() int
- func (m *Item) XXX_Unmarshal(b []byte) error
- type Scope
- func (*Scope) Descriptor() ([]byte, []int)
- func (m *Scope) GetAgent() string
- func (m *Scope) GetAssertionTime() *timestamp.Timestamp
- func (*Scope) ProtoMessage()
- func (m *Scope) Reset()
- func (m *Scope) String() string
- func (m *Scope) XXX_DiscardUnknown()
- func (m *Scope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Scope) XXX_Merge(src proto.Message)
- func (m *Scope) XXX_Size() int
- func (m *Scope) XXX_Unmarshal(b []byte) error
- type ServerInfoResponse
- func (*ServerInfoResponse) Descriptor() ([]byte, []int)
- func (m *ServerInfoResponse) GetInfoItems() map[string]string
- func (*ServerInfoResponse) ProtoMessage()
- func (m *ServerInfoResponse) Reset()
- func (m *ServerInfoResponse) String() string
- func (m *ServerInfoResponse) XXX_DiscardUnknown()
- func (m *ServerInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ServerInfoResponse) XXX_Merge(src proto.Message)
- func (m *ServerInfoResponse) XXX_Size() int
- func (m *ServerInfoResponse) XXX_Unmarshal(b []byte) error
- type Statement
- func (*Statement) Descriptor() ([]byte, []int)
- func (m *Statement) GetLabel() string
- func (m *Statement) GetObject() string
- func (m *Statement) GetPredicate() string
- func (m *Statement) GetSubject() string
- func (*Statement) ProtoMessage()
- func (m *Statement) Reset()
- func (m *Statement) String() string
- func (m *Statement) XXX_DiscardUnknown()
- func (m *Statement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Statement) XXX_Merge(src proto.Message)
- func (m *Statement) XXX_Size() int
- func (m *Statement) XXX_Unmarshal(b []byte) error
- type Type
- func (*Type) Descriptor() ([]byte, []int)
- func (m *Type) GetChildren() []*Type
- func (m *Type) GetIRI() string
- func (m *Type) GetLabel() string
- func (m *Type) GetParents() []*Type
- func (*Type) ProtoMessage()
- func (m *Type) Reset()
- func (m *Type) String() string
- func (m *Type) XXX_DiscardUnknown()
- func (m *Type) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Type) XXX_Merge(src proto.Message)
- func (m *Type) XXX_Size() int
- func (m *Type) XXX_Unmarshal(b []byte) error
- type VersionResponse
- func (*VersionResponse) Descriptor() ([]byte, []int)
- func (m *VersionResponse) GetVersionString() string
- func (*VersionResponse) ProtoMessage()
- func (m *VersionResponse) Reset()
- func (m *VersionResponse) String() string
- func (m *VersionResponse) XXX_DiscardUnknown()
- func (m *VersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VersionResponse) XXX_Merge(src proto.Message)
- func (m *VersionResponse) XXX_Size() int
- func (m *VersionResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var HealthCheckResponse_ServingStatus_name = map[int32]string{
0: "UNKNOWN",
1: "SERVING",
2: "NOT_SERVING",
}
var HealthCheckResponse_ServingStatus_value = map[string]int32{
"UNKNOWN": 0,
"SERVING": 1,
"NOT_SERVING": 2,
}
Functions ¶
func RegisterAPIHandler ¶
RegisterAPIHandler registers the http handlers for service API to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAPIHandlerClient ¶
RegisterAPIHandlerClient registers the http handlers for service API to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "APIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "APIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "APIClient" to call the correct interceptors.
func RegisterAPIHandlerFromEndpoint ¶
func RegisterAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAPIHandlerFromEndpoint is same as RegisterAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAPIServer ¶
func RegisterHealthServer ¶
func RegisterHealthServer(s *grpc.Server, srv HealthServer)
Types ¶
type APIClient ¶
type APIClient interface { CreateItem(ctx context.Context, in *CreateItemRequest, opts ...grpc.CallOption) (*CreateItemResponse, error) GetItem(ctx context.Context, in *GetItemRequest, opts ...grpc.CallOption) (*GetItemResponse, error) GetVersion(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*VersionResponse, error) GetServerInfo(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ServerInfoResponse, error) }
APIClient is the client API for API service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAPIClient ¶
func NewAPIClient(cc *grpc.ClientConn) APIClient
type APIServer ¶
type APIServer interface { CreateItem(context.Context, *CreateItemRequest) (*CreateItemResponse, error) GetItem(context.Context, *GetItemRequest) (*GetItemResponse, error) GetVersion(context.Context, *Empty) (*VersionResponse, error) GetServerInfo(context.Context, *Empty) (*ServerInfoResponse, error) }
APIServer is the server API for API service.
type CreateItemRequest ¶
type CreateItemRequest struct { Types []string `protobuf:"bytes,1,rep,name=Types,proto3" json:"Types,omitempty"` Statements []*Statement `protobuf:"bytes,2,rep,name=Statements,proto3" json:"Statements,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateItemRequest) Descriptor ¶
func (*CreateItemRequest) Descriptor() ([]byte, []int)
func (*CreateItemRequest) GetStatements ¶
func (m *CreateItemRequest) GetStatements() []*Statement
func (*CreateItemRequest) GetTypes ¶
func (m *CreateItemRequest) GetTypes() []string
func (*CreateItemRequest) ProtoMessage ¶
func (*CreateItemRequest) ProtoMessage()
func (*CreateItemRequest) Reset ¶
func (m *CreateItemRequest) Reset()
func (*CreateItemRequest) String ¶
func (m *CreateItemRequest) String() string
func (*CreateItemRequest) XXX_DiscardUnknown ¶
func (m *CreateItemRequest) XXX_DiscardUnknown()
func (*CreateItemRequest) XXX_Marshal ¶
func (m *CreateItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateItemRequest) XXX_Merge ¶
func (m *CreateItemRequest) XXX_Merge(src proto.Message)
func (*CreateItemRequest) XXX_Size ¶
func (m *CreateItemRequest) XXX_Size() int
func (*CreateItemRequest) XXX_Unmarshal ¶
func (m *CreateItemRequest) XXX_Unmarshal(b []byte) error
type CreateItemResponse ¶
type CreateItemResponse struct { Item *Item `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateItemResponse) Descriptor ¶
func (*CreateItemResponse) Descriptor() ([]byte, []int)
func (*CreateItemResponse) GetItem ¶
func (m *CreateItemResponse) GetItem() *Item
func (*CreateItemResponse) ProtoMessage ¶
func (*CreateItemResponse) ProtoMessage()
func (*CreateItemResponse) Reset ¶
func (m *CreateItemResponse) Reset()
func (*CreateItemResponse) String ¶
func (m *CreateItemResponse) String() string
func (*CreateItemResponse) XXX_DiscardUnknown ¶
func (m *CreateItemResponse) XXX_DiscardUnknown()
func (*CreateItemResponse) XXX_Marshal ¶
func (m *CreateItemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateItemResponse) XXX_Merge ¶
func (m *CreateItemResponse) XXX_Merge(src proto.Message)
func (*CreateItemResponse) XXX_Size ¶
func (m *CreateItemResponse) XXX_Size() int
func (*CreateItemResponse) XXX_Unmarshal ¶
func (m *CreateItemResponse) XXX_Unmarshal(b []byte) error
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type GetItemRequest ¶
type GetItemRequest struct { IRI string `protobuf:"bytes,1,opt,name=IRI,proto3" json:"IRI,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetItemRequest) Descriptor ¶
func (*GetItemRequest) Descriptor() ([]byte, []int)
func (*GetItemRequest) GetIRI ¶
func (m *GetItemRequest) GetIRI() string
func (*GetItemRequest) ProtoMessage ¶
func (*GetItemRequest) ProtoMessage()
func (*GetItemRequest) Reset ¶
func (m *GetItemRequest) Reset()
func (*GetItemRequest) String ¶
func (m *GetItemRequest) String() string
func (*GetItemRequest) XXX_DiscardUnknown ¶
func (m *GetItemRequest) XXX_DiscardUnknown()
func (*GetItemRequest) XXX_Marshal ¶
func (m *GetItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetItemRequest) XXX_Merge ¶
func (m *GetItemRequest) XXX_Merge(src proto.Message)
func (*GetItemRequest) XXX_Size ¶
func (m *GetItemRequest) XXX_Size() int
func (*GetItemRequest) XXX_Unmarshal ¶
func (m *GetItemRequest) XXX_Unmarshal(b []byte) error
type GetItemResponse ¶
type GetItemResponse struct { Item *Item `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetItemResponse) Descriptor ¶
func (*GetItemResponse) Descriptor() ([]byte, []int)
func (*GetItemResponse) GetItem ¶
func (m *GetItemResponse) GetItem() *Item
func (*GetItemResponse) ProtoMessage ¶
func (*GetItemResponse) ProtoMessage()
func (*GetItemResponse) Reset ¶
func (m *GetItemResponse) Reset()
func (*GetItemResponse) String ¶
func (m *GetItemResponse) String() string
func (*GetItemResponse) XXX_DiscardUnknown ¶
func (m *GetItemResponse) XXX_DiscardUnknown()
func (*GetItemResponse) XXX_Marshal ¶
func (m *GetItemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetItemResponse) XXX_Merge ¶
func (m *GetItemResponse) XXX_Merge(src proto.Message)
func (*GetItemResponse) XXX_Size ¶
func (m *GetItemResponse) XXX_Size() int
func (*GetItemResponse) XXX_Unmarshal ¶
func (m *GetItemResponse) XXX_Unmarshal(b []byte) error
type GetTypeRequest ¶
type GetTypeRequest struct { IRI string `protobuf:"bytes,1,opt,name=IRI,proto3" json:"IRI,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetTypeRequest) Descriptor ¶
func (*GetTypeRequest) Descriptor() ([]byte, []int)
func (*GetTypeRequest) GetIRI ¶
func (m *GetTypeRequest) GetIRI() string
func (*GetTypeRequest) ProtoMessage ¶
func (*GetTypeRequest) ProtoMessage()
func (*GetTypeRequest) Reset ¶
func (m *GetTypeRequest) Reset()
func (*GetTypeRequest) String ¶
func (m *GetTypeRequest) String() string
func (*GetTypeRequest) XXX_DiscardUnknown ¶
func (m *GetTypeRequest) XXX_DiscardUnknown()
func (*GetTypeRequest) XXX_Marshal ¶
func (m *GetTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTypeRequest) XXX_Merge ¶
func (m *GetTypeRequest) XXX_Merge(src proto.Message)
func (*GetTypeRequest) XXX_Size ¶
func (m *GetTypeRequest) XXX_Size() int
func (*GetTypeRequest) XXX_Unmarshal ¶
func (m *GetTypeRequest) XXX_Unmarshal(b []byte) error
type GetTypeResponse ¶
type GetTypeResponse struct { Type *Type `protobuf:"bytes,1,opt,name=Type,proto3" json:"Type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetTypeResponse) Descriptor ¶
func (*GetTypeResponse) Descriptor() ([]byte, []int)
func (*GetTypeResponse) GetType ¶
func (m *GetTypeResponse) GetType() *Type
func (*GetTypeResponse) ProtoMessage ¶
func (*GetTypeResponse) ProtoMessage()
func (*GetTypeResponse) Reset ¶
func (m *GetTypeResponse) Reset()
func (*GetTypeResponse) String ¶
func (m *GetTypeResponse) String() string
func (*GetTypeResponse) XXX_DiscardUnknown ¶
func (m *GetTypeResponse) XXX_DiscardUnknown()
func (*GetTypeResponse) XXX_Marshal ¶
func (m *GetTypeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTypeResponse) XXX_Merge ¶
func (m *GetTypeResponse) XXX_Merge(src proto.Message)
func (*GetTypeResponse) XXX_Size ¶
func (m *GetTypeResponse) XXX_Size() int
func (*GetTypeResponse) XXX_Unmarshal ¶
func (m *GetTypeResponse) XXX_Unmarshal(b []byte) error
type HealthCheckRequest ¶
type HealthCheckRequest struct { Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HealthCheckRequest) Descriptor ¶
func (*HealthCheckRequest) Descriptor() ([]byte, []int)
func (*HealthCheckRequest) GetService ¶
func (m *HealthCheckRequest) GetService() string
func (*HealthCheckRequest) ProtoMessage ¶
func (*HealthCheckRequest) ProtoMessage()
func (*HealthCheckRequest) Reset ¶
func (m *HealthCheckRequest) Reset()
func (*HealthCheckRequest) String ¶
func (m *HealthCheckRequest) String() string
func (*HealthCheckRequest) XXX_DiscardUnknown ¶
func (m *HealthCheckRequest) XXX_DiscardUnknown()
func (*HealthCheckRequest) XXX_Marshal ¶
func (m *HealthCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HealthCheckRequest) XXX_Merge ¶
func (m *HealthCheckRequest) XXX_Merge(src proto.Message)
func (*HealthCheckRequest) XXX_Size ¶
func (m *HealthCheckRequest) XXX_Size() int
func (*HealthCheckRequest) XXX_Unmarshal ¶
func (m *HealthCheckRequest) XXX_Unmarshal(b []byte) error
type HealthCheckResponse ¶
type HealthCheckResponse struct { Status HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=proto.HealthCheckResponse_ServingStatus" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HealthCheckResponse) Descriptor ¶
func (*HealthCheckResponse) Descriptor() ([]byte, []int)
func (*HealthCheckResponse) GetStatus ¶
func (m *HealthCheckResponse) GetStatus() HealthCheckResponse_ServingStatus
func (*HealthCheckResponse) ProtoMessage ¶
func (*HealthCheckResponse) ProtoMessage()
func (*HealthCheckResponse) Reset ¶
func (m *HealthCheckResponse) Reset()
func (*HealthCheckResponse) String ¶
func (m *HealthCheckResponse) String() string
func (*HealthCheckResponse) XXX_DiscardUnknown ¶
func (m *HealthCheckResponse) XXX_DiscardUnknown()
func (*HealthCheckResponse) XXX_Marshal ¶
func (m *HealthCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HealthCheckResponse) XXX_Merge ¶
func (m *HealthCheckResponse) XXX_Merge(src proto.Message)
func (*HealthCheckResponse) XXX_Size ¶
func (m *HealthCheckResponse) XXX_Size() int
func (*HealthCheckResponse) XXX_Unmarshal ¶
func (m *HealthCheckResponse) XXX_Unmarshal(b []byte) error
type HealthCheckResponse_ServingStatus ¶
type HealthCheckResponse_ServingStatus int32
const ( HealthCheckResponse_UNKNOWN HealthCheckResponse_ServingStatus = 0 HealthCheckResponse_SERVING HealthCheckResponse_ServingStatus = 1 HealthCheckResponse_NOT_SERVING HealthCheckResponse_ServingStatus = 2 )
func (HealthCheckResponse_ServingStatus) EnumDescriptor ¶
func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int)
func (HealthCheckResponse_ServingStatus) String ¶
func (x HealthCheckResponse_ServingStatus) String() string
type HealthClient ¶
type HealthClient interface {
Check(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error)
}
HealthClient is the client API for Health service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewHealthClient ¶
func NewHealthClient(cc *grpc.ClientConn) HealthClient
type HealthServer ¶
type HealthServer interface {
Check(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error)
}
HealthServer is the server API for Health service.
type Item ¶
type Item struct { IRI string `protobuf:"bytes,1,opt,name=IRI,proto3" json:"IRI,omitempty"` Types []string `protobuf:"bytes,2,rep,name=Types,proto3" json:"Types,omitempty"` Statements []*Statement `protobuf:"bytes,3,rep,name=Statements,proto3" json:"Statements,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Item) Descriptor ¶
func (*Item) GetStatements ¶
func (*Item) ProtoMessage ¶
func (*Item) ProtoMessage()
func (*Item) XXX_DiscardUnknown ¶
func (m *Item) XXX_DiscardUnknown()
func (*Item) XXX_Unmarshal ¶
type Scope ¶
type Scope struct { Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` AssertionTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=assertionTime,proto3" json:"assertionTime,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The scope bounds the set of statements or assertions being made by an agent. Example: scope := &Scope{Time.now(), "ltp_client.shawnlower.net", nil}
func (*Scope) Descriptor ¶
func (*Scope) GetAssertionTime ¶
func (*Scope) ProtoMessage ¶
func (*Scope) ProtoMessage()
func (*Scope) XXX_DiscardUnknown ¶
func (m *Scope) XXX_DiscardUnknown()
func (*Scope) XXX_Marshal ¶
func (*Scope) XXX_Unmarshal ¶
type ServerInfoResponse ¶
type ServerInfoResponse struct { InfoItems map[string]string `` /* 159-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ServerInfoResponse) Descriptor ¶
func (*ServerInfoResponse) Descriptor() ([]byte, []int)
func (*ServerInfoResponse) GetInfoItems ¶
func (m *ServerInfoResponse) GetInfoItems() map[string]string
func (*ServerInfoResponse) ProtoMessage ¶
func (*ServerInfoResponse) ProtoMessage()
func (*ServerInfoResponse) Reset ¶
func (m *ServerInfoResponse) Reset()
func (*ServerInfoResponse) String ¶
func (m *ServerInfoResponse) String() string
func (*ServerInfoResponse) XXX_DiscardUnknown ¶
func (m *ServerInfoResponse) XXX_DiscardUnknown()
func (*ServerInfoResponse) XXX_Marshal ¶
func (m *ServerInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ServerInfoResponse) XXX_Merge ¶
func (m *ServerInfoResponse) XXX_Merge(src proto.Message)
func (*ServerInfoResponse) XXX_Size ¶
func (m *ServerInfoResponse) XXX_Size() int
func (*ServerInfoResponse) XXX_Unmarshal ¶
func (m *ServerInfoResponse) XXX_Unmarshal(b []byte) error
type Statement ¶
type Statement struct { Subject string `protobuf:"bytes,1,opt,name=Subject,proto3" json:"Subject,omitempty"` Predicate string `protobuf:"bytes,2,opt,name=Predicate,proto3" json:"Predicate,omitempty"` Object string `protobuf:"bytes,3,opt,name=Object,proto3" json:"Object,omitempty"` Label string `protobuf:"bytes,4,opt,name=Label,proto3" json:"Label,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A semantic 'statement' about the world. Can generally be viewed as an RDF triple, with an additional 'Scope', used for provenance. This can be implemented as a named graph, where the graph name (or label) is used for this purpose.
See also: <http://patterns.dataincubator.org/book/named-graphs.html>
func (*Statement) Descriptor ¶
func (*Statement) GetPredicate ¶
func (*Statement) GetSubject ¶
func (*Statement) ProtoMessage ¶
func (*Statement) ProtoMessage()
func (*Statement) XXX_DiscardUnknown ¶
func (m *Statement) XXX_DiscardUnknown()
func (*Statement) XXX_Marshal ¶
func (*Statement) XXX_Unmarshal ¶
type Type ¶
type Type struct { IRI string `protobuf:"bytes,1,opt,name=IRI,proto3" json:"IRI,omitempty"` Label string `protobuf:"bytes,2,opt,name=Label,proto3" json:"Label,omitempty"` Parents []*Type `protobuf:"bytes,3,rep,name=Parents,proto3" json:"Parents,omitempty"` Children []*Type `protobuf:"bytes,4,rep,name=Children,proto3" json:"Children,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Type) Descriptor ¶
func (*Type) GetChildren ¶
func (*Type) GetParents ¶
func (*Type) ProtoMessage ¶
func (*Type) ProtoMessage()
func (*Type) XXX_DiscardUnknown ¶
func (m *Type) XXX_DiscardUnknown()
func (*Type) XXX_Unmarshal ¶
type VersionResponse ¶
type VersionResponse struct { VersionString string `protobuf:"bytes,1,opt,name=VersionString,proto3" json:"VersionString,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VersionResponse) Descriptor ¶
func (*VersionResponse) Descriptor() ([]byte, []int)
func (*VersionResponse) GetVersionString ¶
func (m *VersionResponse) GetVersionString() string
func (*VersionResponse) ProtoMessage ¶
func (*VersionResponse) ProtoMessage()
func (*VersionResponse) Reset ¶
func (m *VersionResponse) Reset()
func (*VersionResponse) String ¶
func (m *VersionResponse) String() string
func (*VersionResponse) XXX_DiscardUnknown ¶
func (m *VersionResponse) XXX_DiscardUnknown()
func (*VersionResponse) XXX_Marshal ¶
func (m *VersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VersionResponse) XXX_Merge ¶
func (m *VersionResponse) XXX_Merge(src proto.Message)
func (*VersionResponse) XXX_Size ¶
func (m *VersionResponse) XXX_Size() int
func (*VersionResponse) XXX_Unmarshal ¶
func (m *VersionResponse) XXX_Unmarshal(b []byte) error