proto

package
v0.0.0-...-f0a05f1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Code_name = map[int32]string{
	0:   "UNKNOWN",
	200: "SUCCESS",
	400: "BAD_REQUEST",
	500: "INTERNAL_SERVER_ERROR",
}
View Source
var Code_value = map[string]int32{
	"UNKNOWN":               0,
	"SUCCESS":               200,
	"BAD_REQUEST":           400,
	"INTERNAL_SERVER_ERROR": 500,
}

Functions

func RegisterBifrostGrpcServer

func RegisterBifrostGrpcServer(s *grpc.Server, srv BifrostGrpcServer)

Types

type BifrostGrpcClient

type BifrostGrpcClient interface {
	Ping(ctx context.Context, in *PingReq, opts ...grpc.CallOption) (*PingResp, error)
}

BifrostGrpcClient is the client API for BifrostGrpc service.

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

func NewBifrostGrpcClient

func NewBifrostGrpcClient(cc *grpc.ClientConn) BifrostGrpcClient

type BifrostGrpcServer

type BifrostGrpcServer interface {
	Ping(context.Context, *PingReq) (*PingResp, error)
}

BifrostGrpcServer is the server API for BifrostGrpc service.

type Code

type Code int32
const (
	Code_UNKNOWN               Code = 0
	Code_SUCCESS               Code = 200
	Code_BAD_REQUEST           Code = 400
	Code_INTERNAL_SERVER_ERROR Code = 500
)

func (Code) EnumDescriptor

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

func (Code) String

func (x Code) String() string

type PingReq

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

func (*PingReq) Descriptor

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

func (*PingReq) ProtoMessage

func (*PingReq) ProtoMessage()

func (*PingReq) Reset

func (m *PingReq) Reset()

func (*PingReq) String

func (m *PingReq) String() string

func (*PingReq) XXX_DiscardUnknown

func (m *PingReq) XXX_DiscardUnknown()

func (*PingReq) XXX_Marshal

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

func (*PingReq) XXX_Merge

func (dst *PingReq) XXX_Merge(src proto.Message)

func (*PingReq) XXX_Size

func (m *PingReq) XXX_Size() int

func (*PingReq) XXX_Unmarshal

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

type PingResp

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

func (*PingResp) Descriptor

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

func (*PingResp) ProtoMessage

func (*PingResp) ProtoMessage()

func (*PingResp) Reset

func (m *PingResp) Reset()

func (*PingResp) String

func (m *PingResp) String() string

func (*PingResp) XXX_DiscardUnknown

func (m *PingResp) XXX_DiscardUnknown()

func (*PingResp) XXX_Marshal

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

func (*PingResp) XXX_Merge

func (dst *PingResp) XXX_Merge(src proto.Message)

func (*PingResp) XXX_Size

func (m *PingResp) XXX_Size() int

func (*PingResp) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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