coreapi

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

func (*InfoReply) GetServices added in v0.11.0

func (m *InfoReply) GetServices() []*InfoReply_CoreService

func (*InfoReply) GetVersion added in v0.11.0

func (m *InfoReply) GetVersion() string

func (*InfoReply) ProtoMessage added in v0.11.0

func (*InfoReply) ProtoMessage()

func (*InfoReply) Reset added in v0.11.0

func (m *InfoReply) Reset()

func (*InfoReply) String added in v0.11.0

func (m *InfoReply) String() string

func (*InfoReply) XXX_DiscardUnknown added in v0.11.0

func (m *InfoReply) XXX_DiscardUnknown()

func (*InfoReply) XXX_Marshal added in v0.11.0

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

func (*InfoReply) XXX_Merge added in v0.11.0

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

func (*InfoReply) XXX_Size added in v0.11.0

func (m *InfoReply) XXX_Size() int

func (*InfoReply) XXX_Unmarshal added in v0.11.0

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

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

Jump to

Keyboard shortcuts

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