Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterAuthServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAuthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthServiceClient) error
- func RegisterAuthServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAuthServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServiceServer) error
- func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
- func RegisterLogServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterLogServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LogServiceClient) error
- func RegisterLogServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterLogServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LogServiceServer) error
- func RegisterLogServiceServer(s grpc.ServiceRegistrar, srv LogServiceServer)
- type AuthRequest
- type AuthResponse
- type AuthServiceClient
- type AuthServiceServer
- type CreateLogLineRequest
- func (*CreateLogLineRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLogLineRequest) GetCreatedAt() *timestamppb.Timestamp
- func (x *CreateLogLineRequest) GetSource() string
- func (x *CreateLogLineRequest) GetText() string
- func (*CreateLogLineRequest) ProtoMessage()
- func (x *CreateLogLineRequest) ProtoReflect() protoreflect.Message
- func (x *CreateLogLineRequest) Reset()
- func (x *CreateLogLineRequest) String() string
- type CreateLogLineResponse
- func (*CreateLogLineResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLogLineResponse) GetId() uint64
- func (*CreateLogLineResponse) ProtoMessage()
- func (x *CreateLogLineResponse) ProtoReflect() protoreflect.Message
- func (x *CreateLogLineResponse) Reset()
- func (x *CreateLogLineResponse) String() string
- type CreateLogLinesRequest
- func (*CreateLogLinesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLogLinesRequest) GetLines() []*CreateLogLineRequest
- func (*CreateLogLinesRequest) ProtoMessage()
- func (x *CreateLogLinesRequest) ProtoReflect() protoreflect.Message
- func (x *CreateLogLinesRequest) Reset()
- func (x *CreateLogLinesRequest) String() string
- type CreateLogLinesResponse
- func (*CreateLogLinesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLogLinesResponse) GetId() []uint64
- func (*CreateLogLinesResponse) ProtoMessage()
- func (x *CreateLogLinesResponse) ProtoReflect() protoreflect.Message
- func (x *CreateLogLinesResponse) Reset()
- func (x *CreateLogLinesResponse) String() string
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserRequest) GetLogin() string
- func (x *CreateUserRequest) GetPass() string
- func (*CreateUserRequest) ProtoMessage()
- func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserRequest) Reset()
- func (x *CreateUserRequest) String() string
- type CreateUserResponse
- type GetLogLineTotalResponse
- func (*GetLogLineTotalResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetLogLineTotalResponse) GetTotal() uint64
- func (*GetLogLineTotalResponse) ProtoMessage()
- func (x *GetLogLineTotalResponse) ProtoReflect() protoreflect.Message
- func (x *GetLogLineTotalResponse) Reset()
- func (x *GetLogLineTotalResponse) String() string
- type GetLogLinesHistoryRequest
- func (*GetLogLinesHistoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetLogLinesHistoryRequest) GetLimit() int32
- func (x *GetLogLinesHistoryRequest) GetSource() string
- func (*GetLogLinesHistoryRequest) ProtoMessage()
- func (x *GetLogLinesHistoryRequest) ProtoReflect() protoreflect.Message
- func (x *GetLogLinesHistoryRequest) Reset()
- func (x *GetLogLinesHistoryRequest) String() string
- type GetLogLinesHistoryResponse
- func (*GetLogLinesHistoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetLogLinesHistoryResponse) GetLines() []*LogLineHistoryRec
- func (*GetLogLinesHistoryResponse) ProtoMessage()
- func (x *GetLogLinesHistoryResponse) ProtoReflect() protoreflect.Message
- func (x *GetLogLinesHistoryResponse) Reset()
- func (x *GetLogLinesHistoryResponse) String() string
- type LogLineHistoryRec
- func (*LogLineHistoryRec) Descriptor() ([]byte, []int)deprecated
- func (x *LogLineHistoryRec) GetId() uint64
- func (x *LogLineHistoryRec) GetSource() string
- func (x *LogLineHistoryRec) GetText() string
- func (*LogLineHistoryRec) ProtoMessage()
- func (x *LogLineHistoryRec) ProtoReflect() protoreflect.Message
- func (x *LogLineHistoryRec) Reset()
- func (x *LogLineHistoryRec) String() string
- type LogServiceClient
- type LogServiceServer
- type UnimplementedAuthServiceServer
- type UnimplementedLogServiceServer
- func (UnimplementedLogServiceServer) CreateLogLine(context.Context, *CreateLogLineRequest) (*CreateLogLineResponse, error)
- func (UnimplementedLogServiceServer) CreateLogLines(context.Context, *CreateLogLinesRequest) (*CreateLogLinesResponse, error)
- func (UnimplementedLogServiceServer) GetLogLineTotal(context.Context, *emptypb.Empty) (*GetLogLineTotalResponse, error)
- func (UnimplementedLogServiceServer) GetLogLinesHistory(context.Context, *GetLogLinesHistoryRequest) (*GetLogLinesHistoryResponse, error)
- type UnsafeAuthServiceServer
- type UnsafeLogServiceServer
Constants ¶
const ( AuthService_Auth_FullMethodName = "/v1.AuthService/Auth" AuthService_CreateUser_FullMethodName = "/v1.AuthService/CreateUser" )
const ( LogService_CreateLogLine_FullMethodName = "/v1.LogService/CreateLogLine" LogService_CreateLogLines_FullMethodName = "/v1.LogService/CreateLogLines" LogService_GetLogLineTotal_FullMethodName = "/v1.LogService/GetLogLineTotal" LogService_GetLogLinesHistory_FullMethodName = "/v1.LogService/GetLogLinesHistory" )
Variables ¶
var AuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.AuthService", HandlerType: (*AuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Auth", Handler: _AuthService_Auth_Handler, }, { MethodName: "CreateUser", Handler: _AuthService_CreateUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/auth.proto", }
AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_v1_auth_proto protoreflect.FileDescriptor
var File_v1_log_proto protoreflect.FileDescriptor
var LogService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.LogService", HandlerType: (*LogServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateLogLine", Handler: _LogService_CreateLogLine_Handler, }, { MethodName: "CreateLogLines", Handler: _LogService_CreateLogLines_Handler, }, { MethodName: "GetLogLineTotal", Handler: _LogService_GetLogLineTotal_Handler, }, { MethodName: "GetLogLinesHistory", Handler: _LogService_GetLogLinesHistory_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/log.proto", }
LogService_ServiceDesc is the grpc.ServiceDesc for LogService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAuthServiceHandler ¶
func RegisterAuthServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAuthServiceHandler registers the http handlers for service AuthService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAuthServiceHandlerClient ¶
func RegisterAuthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthServiceClient) error
RegisterAuthServiceHandlerClient registers the http handlers for service AuthService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthServiceClient" to call the correct interceptors.
func RegisterAuthServiceHandlerFromEndpoint ¶
func RegisterAuthServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAuthServiceHandlerFromEndpoint is same as RegisterAuthServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAuthServiceHandlerServer ¶
func RegisterAuthServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServiceServer) error
RegisterAuthServiceHandlerServer registers the http handlers for service AuthService to "mux". UnaryRPC :call AuthServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAuthServiceHandlerFromEndpoint instead.
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
func RegisterLogServiceHandler ¶
func RegisterLogServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterLogServiceHandler registers the http handlers for service LogService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterLogServiceHandlerClient ¶
func RegisterLogServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LogServiceClient) error
RegisterLogServiceHandlerClient registers the http handlers for service LogService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LogServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LogServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LogServiceClient" to call the correct interceptors.
func RegisterLogServiceHandlerFromEndpoint ¶
func RegisterLogServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterLogServiceHandlerFromEndpoint is same as RegisterLogServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterLogServiceHandlerServer ¶
func RegisterLogServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LogServiceServer) error
RegisterLogServiceHandlerServer registers the http handlers for service LogService to "mux". UnaryRPC :call LogServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterLogServiceHandlerFromEndpoint instead.
func RegisterLogServiceServer ¶
func RegisterLogServiceServer(s grpc.ServiceRegistrar, srv LogServiceServer)
Types ¶
type AuthRequest ¶
type AuthRequest struct { Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"` Pass string `protobuf:"bytes,2,opt,name=pass,proto3" json:"pass,omitempty"` // contains filtered or unexported fields }
func (*AuthRequest) Descriptor
deprecated
func (*AuthRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthRequest.ProtoReflect.Descriptor instead.
func (*AuthRequest) GetLogin ¶
func (x *AuthRequest) GetLogin() string
func (*AuthRequest) GetPass ¶
func (x *AuthRequest) GetPass() string
func (*AuthRequest) ProtoMessage ¶
func (*AuthRequest) ProtoMessage()
func (*AuthRequest) ProtoReflect ¶
func (x *AuthRequest) ProtoReflect() protoreflect.Message
func (*AuthRequest) Reset ¶
func (x *AuthRequest) Reset()
func (*AuthRequest) String ¶
func (x *AuthRequest) String() string
type AuthResponse ¶
type AuthResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*AuthResponse) Descriptor
deprecated
func (*AuthResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthResponse.ProtoReflect.Descriptor instead.
func (*AuthResponse) GetToken ¶
func (x *AuthResponse) GetToken() string
func (*AuthResponse) ProtoMessage ¶
func (*AuthResponse) ProtoMessage()
func (*AuthResponse) ProtoReflect ¶
func (x *AuthResponse) ProtoReflect() protoreflect.Message
func (*AuthResponse) Reset ¶
func (x *AuthResponse) Reset()
func (*AuthResponse) String ¶
func (x *AuthResponse) String() string
type AuthServiceClient ¶
type AuthServiceClient interface { Auth(ctx context.Context, in *AuthRequest, opts ...grpc.CallOption) (*AuthResponse, error) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error) }
AuthServiceClient is the client API for AuthService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface { Auth(context.Context, *AuthRequest) (*AuthResponse, error) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error) // contains filtered or unexported methods }
AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility
type CreateLogLineRequest ¶
type CreateLogLineRequest struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*CreateLogLineRequest) Descriptor
deprecated
func (*CreateLogLineRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateLogLineRequest.ProtoReflect.Descriptor instead.
func (*CreateLogLineRequest) GetCreatedAt ¶
func (x *CreateLogLineRequest) GetCreatedAt() *timestamppb.Timestamp
func (*CreateLogLineRequest) GetSource ¶
func (x *CreateLogLineRequest) GetSource() string
func (*CreateLogLineRequest) GetText ¶
func (x *CreateLogLineRequest) GetText() string
func (*CreateLogLineRequest) ProtoMessage ¶
func (*CreateLogLineRequest) ProtoMessage()
func (*CreateLogLineRequest) ProtoReflect ¶
func (x *CreateLogLineRequest) ProtoReflect() protoreflect.Message
func (*CreateLogLineRequest) Reset ¶
func (x *CreateLogLineRequest) Reset()
func (*CreateLogLineRequest) String ¶
func (x *CreateLogLineRequest) String() string
type CreateLogLineResponse ¶
type CreateLogLineResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateLogLineResponse) Descriptor
deprecated
func (*CreateLogLineResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateLogLineResponse.ProtoReflect.Descriptor instead.
func (*CreateLogLineResponse) GetId ¶
func (x *CreateLogLineResponse) GetId() uint64
func (*CreateLogLineResponse) ProtoMessage ¶
func (*CreateLogLineResponse) ProtoMessage()
func (*CreateLogLineResponse) ProtoReflect ¶
func (x *CreateLogLineResponse) ProtoReflect() protoreflect.Message
func (*CreateLogLineResponse) Reset ¶
func (x *CreateLogLineResponse) Reset()
func (*CreateLogLineResponse) String ¶
func (x *CreateLogLineResponse) String() string
type CreateLogLinesRequest ¶
type CreateLogLinesRequest struct { Lines []*CreateLogLineRequest `protobuf:"bytes,1,rep,name=lines,proto3" json:"lines,omitempty"` // contains filtered or unexported fields }
func (*CreateLogLinesRequest) Descriptor
deprecated
func (*CreateLogLinesRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateLogLinesRequest.ProtoReflect.Descriptor instead.
func (*CreateLogLinesRequest) GetLines ¶
func (x *CreateLogLinesRequest) GetLines() []*CreateLogLineRequest
func (*CreateLogLinesRequest) ProtoMessage ¶
func (*CreateLogLinesRequest) ProtoMessage()
func (*CreateLogLinesRequest) ProtoReflect ¶
func (x *CreateLogLinesRequest) ProtoReflect() protoreflect.Message
func (*CreateLogLinesRequest) Reset ¶
func (x *CreateLogLinesRequest) Reset()
func (*CreateLogLinesRequest) String ¶
func (x *CreateLogLinesRequest) String() string
type CreateLogLinesResponse ¶
type CreateLogLinesResponse struct { Id []uint64 `protobuf:"varint,1,rep,packed,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateLogLinesResponse) Descriptor
deprecated
func (*CreateLogLinesResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateLogLinesResponse.ProtoReflect.Descriptor instead.
func (*CreateLogLinesResponse) GetId ¶
func (x *CreateLogLinesResponse) GetId() []uint64
func (*CreateLogLinesResponse) ProtoMessage ¶
func (*CreateLogLinesResponse) ProtoMessage()
func (*CreateLogLinesResponse) ProtoReflect ¶
func (x *CreateLogLinesResponse) ProtoReflect() protoreflect.Message
func (*CreateLogLinesResponse) Reset ¶
func (x *CreateLogLinesResponse) Reset()
func (*CreateLogLinesResponse) String ¶
func (x *CreateLogLinesResponse) String() string
type CreateUserRequest ¶
type CreateUserRequest struct { Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"` Pass string `protobuf:"bytes,2,opt,name=pass,proto3" json:"pass,omitempty"` // contains filtered or unexported fields }
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetLogin ¶
func (x *CreateUserRequest) GetLogin() string
func (*CreateUserRequest) GetPass ¶
func (x *CreateUserRequest) GetPass() string
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) ProtoReflect ¶
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
func (*CreateUserRequest) Reset ¶
func (x *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (x *CreateUserRequest) String() string
type CreateUserResponse ¶
type CreateUserResponse struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateUserResponse) Descriptor
deprecated
func (*CreateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.
func (*CreateUserResponse) GetId ¶
func (x *CreateUserResponse) GetId() int64
func (*CreateUserResponse) ProtoMessage ¶
func (*CreateUserResponse) ProtoMessage()
func (*CreateUserResponse) ProtoReflect ¶
func (x *CreateUserResponse) ProtoReflect() protoreflect.Message
func (*CreateUserResponse) Reset ¶
func (x *CreateUserResponse) Reset()
func (*CreateUserResponse) String ¶
func (x *CreateUserResponse) String() string
type GetLogLineTotalResponse ¶
type GetLogLineTotalResponse struct { Total uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*GetLogLineTotalResponse) Descriptor
deprecated
func (*GetLogLineTotalResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetLogLineTotalResponse.ProtoReflect.Descriptor instead.
func (*GetLogLineTotalResponse) GetTotal ¶
func (x *GetLogLineTotalResponse) GetTotal() uint64
func (*GetLogLineTotalResponse) ProtoMessage ¶
func (*GetLogLineTotalResponse) ProtoMessage()
func (*GetLogLineTotalResponse) ProtoReflect ¶
func (x *GetLogLineTotalResponse) ProtoReflect() protoreflect.Message
func (*GetLogLineTotalResponse) Reset ¶
func (x *GetLogLineTotalResponse) Reset()
func (*GetLogLineTotalResponse) String ¶
func (x *GetLogLineTotalResponse) String() string
type GetLogLinesHistoryRequest ¶
type GetLogLinesHistoryRequest struct { Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*GetLogLinesHistoryRequest) Descriptor
deprecated
func (*GetLogLinesHistoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLogLinesHistoryRequest.ProtoReflect.Descriptor instead.
func (*GetLogLinesHistoryRequest) GetLimit ¶
func (x *GetLogLinesHistoryRequest) GetLimit() int32
func (*GetLogLinesHistoryRequest) GetSource ¶
func (x *GetLogLinesHistoryRequest) GetSource() string
func (*GetLogLinesHistoryRequest) ProtoMessage ¶
func (*GetLogLinesHistoryRequest) ProtoMessage()
func (*GetLogLinesHistoryRequest) ProtoReflect ¶
func (x *GetLogLinesHistoryRequest) ProtoReflect() protoreflect.Message
func (*GetLogLinesHistoryRequest) Reset ¶
func (x *GetLogLinesHistoryRequest) Reset()
func (*GetLogLinesHistoryRequest) String ¶
func (x *GetLogLinesHistoryRequest) String() string
type GetLogLinesHistoryResponse ¶
type GetLogLinesHistoryResponse struct { Lines []*LogLineHistoryRec `protobuf:"bytes,1,rep,name=lines,proto3" json:"lines,omitempty"` // contains filtered or unexported fields }
func (*GetLogLinesHistoryResponse) Descriptor
deprecated
func (*GetLogLinesHistoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetLogLinesHistoryResponse.ProtoReflect.Descriptor instead.
func (*GetLogLinesHistoryResponse) GetLines ¶
func (x *GetLogLinesHistoryResponse) GetLines() []*LogLineHistoryRec
func (*GetLogLinesHistoryResponse) ProtoMessage ¶
func (*GetLogLinesHistoryResponse) ProtoMessage()
func (*GetLogLinesHistoryResponse) ProtoReflect ¶
func (x *GetLogLinesHistoryResponse) ProtoReflect() protoreflect.Message
func (*GetLogLinesHistoryResponse) Reset ¶
func (x *GetLogLinesHistoryResponse) Reset()
func (*GetLogLinesHistoryResponse) String ¶
func (x *GetLogLinesHistoryResponse) String() string
type LogLineHistoryRec ¶
type LogLineHistoryRec struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` // contains filtered or unexported fields }
func (*LogLineHistoryRec) Descriptor
deprecated
func (*LogLineHistoryRec) Descriptor() ([]byte, []int)
Deprecated: Use LogLineHistoryRec.ProtoReflect.Descriptor instead.
func (*LogLineHistoryRec) GetId ¶
func (x *LogLineHistoryRec) GetId() uint64
func (*LogLineHistoryRec) GetSource ¶
func (x *LogLineHistoryRec) GetSource() string
func (*LogLineHistoryRec) GetText ¶
func (x *LogLineHistoryRec) GetText() string
func (*LogLineHistoryRec) ProtoMessage ¶
func (*LogLineHistoryRec) ProtoMessage()
func (*LogLineHistoryRec) ProtoReflect ¶
func (x *LogLineHistoryRec) ProtoReflect() protoreflect.Message
func (*LogLineHistoryRec) Reset ¶
func (x *LogLineHistoryRec) Reset()
func (*LogLineHistoryRec) String ¶
func (x *LogLineHistoryRec) String() string
type LogServiceClient ¶
type LogServiceClient interface { CreateLogLine(ctx context.Context, in *CreateLogLineRequest, opts ...grpc.CallOption) (*CreateLogLineResponse, error) CreateLogLines(ctx context.Context, in *CreateLogLinesRequest, opts ...grpc.CallOption) (*CreateLogLinesResponse, error) GetLogLineTotal(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetLogLineTotalResponse, error) GetLogLinesHistory(ctx context.Context, in *GetLogLinesHistoryRequest, opts ...grpc.CallOption) (*GetLogLinesHistoryResponse, error) }
LogServiceClient is the client API for LogService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewLogServiceClient ¶
func NewLogServiceClient(cc grpc.ClientConnInterface) LogServiceClient
type LogServiceServer ¶
type LogServiceServer interface { CreateLogLine(context.Context, *CreateLogLineRequest) (*CreateLogLineResponse, error) CreateLogLines(context.Context, *CreateLogLinesRequest) (*CreateLogLinesResponse, error) GetLogLineTotal(context.Context, *emptypb.Empty) (*GetLogLineTotalResponse, error) GetLogLinesHistory(context.Context, *GetLogLinesHistoryRequest) (*GetLogLinesHistoryResponse, error) // contains filtered or unexported methods }
LogServiceServer is the server API for LogService service. All implementations must embed UnimplementedLogServiceServer for forward compatibility
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServiceServer) Auth ¶
func (UnimplementedAuthServiceServer) Auth(context.Context, *AuthRequest) (*AuthResponse, error)
func (UnimplementedAuthServiceServer) CreateUser ¶
func (UnimplementedAuthServiceServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
type UnimplementedLogServiceServer ¶
type UnimplementedLogServiceServer struct { }
UnimplementedLogServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedLogServiceServer) CreateLogLine ¶
func (UnimplementedLogServiceServer) CreateLogLine(context.Context, *CreateLogLineRequest) (*CreateLogLineResponse, error)
func (UnimplementedLogServiceServer) CreateLogLines ¶
func (UnimplementedLogServiceServer) CreateLogLines(context.Context, *CreateLogLinesRequest) (*CreateLogLinesResponse, error)
func (UnimplementedLogServiceServer) GetLogLineTotal ¶
func (UnimplementedLogServiceServer) GetLogLineTotal(context.Context, *emptypb.Empty) (*GetLogLineTotalResponse, error)
func (UnimplementedLogServiceServer) GetLogLinesHistory ¶
func (UnimplementedLogServiceServer) GetLogLinesHistory(context.Context, *GetLogLinesHistoryRequest) (*GetLogLinesHistoryResponse, error)
type UnsafeAuthServiceServer ¶
type UnsafeAuthServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.
type UnsafeLogServiceServer ¶
type UnsafeLogServiceServer interface {
// contains filtered or unexported methods
}
UnsafeLogServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LogServiceServer will result in compilation errors.