Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer)
- type Application
- func (app *Application) Client(ctx context.Context, name string) (*grpc.ClientConn, error)
- func (app *Application) Run(host ...string) error
- func (app *Application) Server() *grpc.Server
- func (app *Application) UnaryClientInterceptorGroups(unaryClientInterceptorGroups map[string][]grpc.UnaryClientInterceptor)
- func (app *Application) UnaryServerInterceptors(unaryServerInterceptors []grpc.UnaryServerInterceptor)
- type ServiceProvider
- type TestRequest
- func (*TestRequest) Descriptor() ([]byte, []int)
- func (m *TestRequest) GetName() string
- func (m *TestRequest) Marshal() (dAtA []byte, err error)
- func (m *TestRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *TestRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TestRequest) ProtoMessage()
- func (m *TestRequest) Reset()
- func (m *TestRequest) Size() (n int)
- func (m *TestRequest) String() string
- func (m *TestRequest) Unmarshal(dAtA []byte) error
- func (m *TestRequest) XXX_DiscardUnknown()
- func (m *TestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TestRequest) XXX_Merge(src proto.Message)
- func (m *TestRequest) XXX_Size() int
- func (m *TestRequest) XXX_Unmarshal(b []byte) error
- type TestResponse
- func (*TestResponse) Descriptor() ([]byte, []int)
- func (m *TestResponse) GetCode() int32
- func (m *TestResponse) GetMessage() string
- func (m *TestResponse) Marshal() (dAtA []byte, err error)
- func (m *TestResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *TestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TestResponse) ProtoMessage()
- func (m *TestResponse) Reset()
- func (m *TestResponse) Size() (n int)
- func (m *TestResponse) String() string
- func (m *TestResponse) Unmarshal(dAtA []byte) error
- func (m *TestResponse) XXX_DiscardUnknown()
- func (m *TestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TestResponse) XXX_Merge(src proto.Message)
- func (m *TestResponse) XXX_Size() int
- func (m *TestResponse) XXX_Unmarshal(b []byte) error
- type TestServiceClient
- type TestServiceServer
- type UnimplementedTestServiceServer
Constants ¶
View Source
const Binding = "goravel.grpc"
Variables ¶
View Source
var ( ErrInvalidLengthTest = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTest = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTest = fmt.Errorf("proto: unexpected end of group") )
View Source
var LogFacade log.Log
Functions ¶
func RegisterTestServiceServer ¶ added in v1.8.0
func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer)
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func NewApplication ¶ added in v1.4.0
func NewApplication(config config.Config) *Application
func (*Application) Client ¶ added in v1.4.0
func (app *Application) Client(ctx context.Context, name string) (*grpc.ClientConn, error)
func (*Application) Run ¶
func (app *Application) Run(host ...string) error
func (*Application) Server ¶
func (app *Application) Server() *grpc.Server
func (*Application) UnaryClientInterceptorGroups ¶ added in v1.4.0
func (app *Application) UnaryClientInterceptorGroups(unaryClientInterceptorGroups map[string][]grpc.UnaryClientInterceptor)
func (*Application) UnaryServerInterceptors ¶ added in v1.4.0
func (app *Application) UnaryServerInterceptors(unaryServerInterceptors []grpc.UnaryServerInterceptor)
type ServiceProvider ¶
type ServiceProvider struct { }
func (*ServiceProvider) Boot ¶
func (route *ServiceProvider) Boot(app foundation.Application)
func (*ServiceProvider) Register ¶
func (route *ServiceProvider) Register(app foundation.Application)
type TestRequest ¶ added in v1.8.0
type TestRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TestRequest) Descriptor ¶ added in v1.8.0
func (*TestRequest) Descriptor() ([]byte, []int)
func (*TestRequest) GetName ¶ added in v1.8.0
func (m *TestRequest) GetName() string
func (*TestRequest) Marshal ¶ added in v1.8.0
func (m *TestRequest) Marshal() (dAtA []byte, err error)
func (*TestRequest) MarshalTo ¶ added in v1.8.0
func (m *TestRequest) MarshalTo(dAtA []byte) (int, error)
func (*TestRequest) MarshalToSizedBuffer ¶ added in v1.8.0
func (m *TestRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TestRequest) ProtoMessage ¶ added in v1.8.0
func (*TestRequest) ProtoMessage()
func (*TestRequest) Reset ¶ added in v1.8.0
func (m *TestRequest) Reset()
func (*TestRequest) Size ¶ added in v1.8.0
func (m *TestRequest) Size() (n int)
func (*TestRequest) String ¶ added in v1.8.0
func (m *TestRequest) String() string
func (*TestRequest) Unmarshal ¶ added in v1.8.0
func (m *TestRequest) Unmarshal(dAtA []byte) error
func (*TestRequest) XXX_DiscardUnknown ¶ added in v1.8.0
func (m *TestRequest) XXX_DiscardUnknown()
func (*TestRequest) XXX_Marshal ¶ added in v1.8.0
func (m *TestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TestRequest) XXX_Merge ¶ added in v1.8.0
func (m *TestRequest) XXX_Merge(src proto.Message)
func (*TestRequest) XXX_Size ¶ added in v1.8.0
func (m *TestRequest) XXX_Size() int
func (*TestRequest) XXX_Unmarshal ¶ added in v1.8.0
func (m *TestRequest) XXX_Unmarshal(b []byte) error
type TestResponse ¶ added in v1.8.0
type TestResponse struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TestResponse) Descriptor ¶ added in v1.8.0
func (*TestResponse) Descriptor() ([]byte, []int)
func (*TestResponse) GetCode ¶ added in v1.8.0
func (m *TestResponse) GetCode() int32
func (*TestResponse) GetMessage ¶ added in v1.8.0
func (m *TestResponse) GetMessage() string
func (*TestResponse) Marshal ¶ added in v1.8.0
func (m *TestResponse) Marshal() (dAtA []byte, err error)
func (*TestResponse) MarshalTo ¶ added in v1.8.0
func (m *TestResponse) MarshalTo(dAtA []byte) (int, error)
func (*TestResponse) MarshalToSizedBuffer ¶ added in v1.8.0
func (m *TestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TestResponse) ProtoMessage ¶ added in v1.8.0
func (*TestResponse) ProtoMessage()
func (*TestResponse) Reset ¶ added in v1.8.0
func (m *TestResponse) Reset()
func (*TestResponse) Size ¶ added in v1.8.0
func (m *TestResponse) Size() (n int)
func (*TestResponse) String ¶ added in v1.8.0
func (m *TestResponse) String() string
func (*TestResponse) Unmarshal ¶ added in v1.8.0
func (m *TestResponse) Unmarshal(dAtA []byte) error
func (*TestResponse) XXX_DiscardUnknown ¶ added in v1.8.0
func (m *TestResponse) XXX_DiscardUnknown()
func (*TestResponse) XXX_Marshal ¶ added in v1.8.0
func (m *TestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TestResponse) XXX_Merge ¶ added in v1.8.0
func (m *TestResponse) XXX_Merge(src proto.Message)
func (*TestResponse) XXX_Size ¶ added in v1.8.0
func (m *TestResponse) XXX_Size() int
func (*TestResponse) XXX_Unmarshal ¶ added in v1.8.0
func (m *TestResponse) XXX_Unmarshal(b []byte) error
type TestServiceClient ¶ added in v1.8.0
type TestServiceClient interface {
Get(ctx context.Context, in *TestRequest, opts ...grpc.CallOption) (*TestResponse, error)
}
TestServiceClient is the client API for TestService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTestServiceClient ¶ added in v1.8.0
func NewTestServiceClient(cc *grpc.ClientConn) TestServiceClient
type TestServiceServer ¶ added in v1.8.0
type TestServiceServer interface {
Get(context.Context, *TestRequest) (*TestResponse, error)
}
TestServiceServer is the server API for TestService service.
type UnimplementedTestServiceServer ¶ added in v1.8.0
type UnimplementedTestServiceServer struct { }
UnimplementedTestServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedTestServiceServer) Get ¶ added in v1.8.0
func (*UnimplementedTestServiceServer) Get(ctx context.Context, req *TestRequest) (*TestResponse, error)
Click to show internal directories.
Click to hide internal directories.