Documentation ¶
Index ¶
- func RegisterCoreServer(s *grpc.Server, srv CoreServer)
- type CoreClient
- type CoreServer
- type InfoReply
- func (*InfoReply) Descriptor() ([]byte, []int)
- func (m *InfoReply) GetServices() []*InfoReply_CoreService
- func (m *InfoReply) GetVersion() string
- func (*InfoReply) ProtoMessage()
- func (m *InfoReply) Reset()
- func (m *InfoReply) String() string
- func (m *InfoReply) XXX_DiscardUnknown()
- func (m *InfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InfoReply) XXX_Merge(src proto.Message)
- func (m *InfoReply) XXX_Size() int
- func (m *InfoReply) XXX_Unmarshal(b []byte) error
- type InfoReply_CoreService
- func (*InfoReply_CoreService) Descriptor() ([]byte, []int)
- func (m *InfoReply_CoreService) GetHash() []byte
- func (m *InfoReply_CoreService) GetKey() string
- func (m *InfoReply_CoreService) GetSid() string
- func (m *InfoReply_CoreService) GetUrl() string
- func (*InfoReply_CoreService) ProtoMessage()
- func (m *InfoReply_CoreService) Reset()
- func (m *InfoReply_CoreService) String() string
- func (m *InfoReply_CoreService) XXX_DiscardUnknown()
- func (m *InfoReply_CoreService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InfoReply_CoreService) XXX_Merge(src proto.Message)
- func (m *InfoReply_CoreService) XXX_Size() int
- func (m *InfoReply_CoreService) XXX_Unmarshal(b []byte) error
- type InfoRequest
- func (*InfoRequest) Descriptor() ([]byte, []int)
- func (*InfoRequest) ProtoMessage()
- func (m *InfoRequest) Reset()
- func (m *InfoRequest) String() string
- func (m *InfoRequest) XXX_DiscardUnknown()
- func (m *InfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InfoRequest) XXX_Merge(src proto.Message)
- func (m *InfoRequest) XXX_Size() int
- func (m *InfoRequest) XXX_Unmarshal(b []byte) error
- type UnimplementedCoreServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCoreServer ¶
func RegisterCoreServer(s *grpc.Server, srv CoreServer)
Types ¶
type CoreClient ¶
type CoreClient interface { // Info returns all necessary information from the core. Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoReply, error) }
CoreClient is the client API for Core service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCoreClient ¶
func NewCoreClient(cc *grpc.ClientConn) CoreClient
type CoreServer ¶
type CoreServer interface { // Info returns all necessary information from the core. Info(context.Context, *InfoRequest) (*InfoReply, error) }
CoreServer is the server API for Core service.
type InfoReply ¶ added in v0.11.0
type InfoReply struct { Services []*InfoReply_CoreService `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"` Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Information concerning the Core from the `info` API.
func (*InfoReply) Descriptor ¶ added in v0.11.0
func (*InfoReply) GetServices ¶ added in v0.11.0
func (m *InfoReply) GetServices() []*InfoReply_CoreService
func (*InfoReply) GetVersion ¶ added in v0.11.0
func (*InfoReply) ProtoMessage ¶ added in v0.11.0
func (*InfoReply) ProtoMessage()
func (*InfoReply) XXX_DiscardUnknown ¶ added in v0.11.0
func (m *InfoReply) XXX_DiscardUnknown()
func (*InfoReply) XXX_Marshal ¶ added in v0.11.0
func (*InfoReply) XXX_Unmarshal ¶ added in v0.11.0
type InfoReply_CoreService ¶ added in v0.11.0
type InfoReply_CoreService struct { Sid string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InfoReply_CoreService) Descriptor ¶ added in v0.11.0
func (*InfoReply_CoreService) Descriptor() ([]byte, []int)
func (*InfoReply_CoreService) GetHash ¶ added in v0.11.0
func (m *InfoReply_CoreService) GetHash() []byte
func (*InfoReply_CoreService) GetKey ¶ added in v0.11.0
func (m *InfoReply_CoreService) GetKey() string
func (*InfoReply_CoreService) GetSid ¶ added in v0.11.0
func (m *InfoReply_CoreService) GetSid() string
func (*InfoReply_CoreService) GetUrl ¶ added in v0.11.0
func (m *InfoReply_CoreService) GetUrl() string
func (*InfoReply_CoreService) ProtoMessage ¶ added in v0.11.0
func (*InfoReply_CoreService) ProtoMessage()
func (*InfoReply_CoreService) Reset ¶ added in v0.11.0
func (m *InfoReply_CoreService) Reset()
func (*InfoReply_CoreService) String ¶ added in v0.11.0
func (m *InfoReply_CoreService) String() string
func (*InfoReply_CoreService) XXX_DiscardUnknown ¶ added in v0.11.0
func (m *InfoReply_CoreService) XXX_DiscardUnknown()
func (*InfoReply_CoreService) XXX_Marshal ¶ added in v0.11.0
func (m *InfoReply_CoreService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InfoReply_CoreService) XXX_Merge ¶ added in v0.11.0
func (m *InfoReply_CoreService) XXX_Merge(src proto.Message)
func (*InfoReply_CoreService) XXX_Size ¶ added in v0.11.0
func (m *InfoReply_CoreService) XXX_Size() int
func (*InfoReply_CoreService) XXX_Unmarshal ¶ added in v0.11.0
func (m *InfoReply_CoreService) XXX_Unmarshal(b []byte) error
type InfoRequest ¶ added in v0.11.0
type InfoRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The request to fetch all informations of the Core
func (*InfoRequest) Descriptor ¶ added in v0.11.0
func (*InfoRequest) Descriptor() ([]byte, []int)
func (*InfoRequest) ProtoMessage ¶ added in v0.11.0
func (*InfoRequest) ProtoMessage()
func (*InfoRequest) Reset ¶ added in v0.11.0
func (m *InfoRequest) Reset()
func (*InfoRequest) String ¶ added in v0.11.0
func (m *InfoRequest) String() string
func (*InfoRequest) XXX_DiscardUnknown ¶ added in v0.11.0
func (m *InfoRequest) XXX_DiscardUnknown()
func (*InfoRequest) XXX_Marshal ¶ added in v0.11.0
func (m *InfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InfoRequest) XXX_Merge ¶ added in v0.11.0
func (m *InfoRequest) XXX_Merge(src proto.Message)
func (*InfoRequest) XXX_Size ¶ added in v0.11.0
func (m *InfoRequest) XXX_Size() int
func (*InfoRequest) XXX_Unmarshal ¶ added in v0.11.0
func (m *InfoRequest) XXX_Unmarshal(b []byte) error
type UnimplementedCoreServer ¶ added in v0.13.0
type UnimplementedCoreServer struct { }
UnimplementedCoreServer can be embedded to have forward compatible implementations.
func (*UnimplementedCoreServer) Info ¶ added in v0.13.0
func (*UnimplementedCoreServer) Info(ctx context.Context, req *InfoRequest) (*InfoReply, error)
Click to show internal directories.
Click to hide internal directories.