Documentation ¶
Index ¶
- type GrpcServer
- func (gs *GrpcServer) CreateRecord(ctx context.Context, req *shikamarupb.CreateRecordRequest) (*shikamarupb.CreateRecordResponse, error)
- func (gs *GrpcServer) DeleteRecord(ctx context.Context, req *shikamarupb.DeleteRecordRequest) (*emptypb.Empty, error)
- func (gs *GrpcServer) GetEntity(ctx context.Context, req *shikamarupb.GetEntityRequest) (*shikamarupb.GetEntityResponse, error)
- func (gs *GrpcServer) GetRecord(ctx context.Context, req *shikamarupb.GetRecordRequest) (*shikamarupb.GetRecordResponse, error)
- func (gs *GrpcServer) ListRecords(ctx context.Context, req *shikamarupb.ListRecordsRequest) (*shikamarupb.ListRecordsResponse, error)
- func (gs *GrpcServer) UpdateRecord(ctx context.Context, req *shikamarupb.UpdateRecordRequest) (*shikamarupb.UpdateRecordResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrpcServer ¶
type GrpcServer struct {
// contains filtered or unexported fields
}
GrpcServer is the implementation to handle gRPC requests to the app
func NewGrpcServer ¶
func NewGrpcServer(app *application.Application) *GrpcServer
NewGrpcServer creates a new instance of GrpcServer
func (*GrpcServer) CreateRecord ¶ added in v1.3.0
func (gs *GrpcServer) CreateRecord( ctx context.Context, req *shikamarupb.CreateRecordRequest, ) (*shikamarupb.CreateRecordResponse, error)
CreateRecord creates a new record in the data store related to an entity
func (*GrpcServer) DeleteRecord ¶ added in v1.7.0
func (gs *GrpcServer) DeleteRecord( ctx context.Context, req *shikamarupb.DeleteRecordRequest, ) (*emptypb.Empty, error)
DeleteRecord deletes a record in the data store related to an entity
func (*GrpcServer) GetEntity ¶
func (gs *GrpcServer) GetEntity( ctx context.Context, req *shikamarupb.GetEntityRequest, ) (*shikamarupb.GetEntityResponse, error)
GetEntity gets a entity according to its name
func (*GrpcServer) GetRecord ¶ added in v1.5.0
func (gs *GrpcServer) GetRecord( ctx context.Context, req *shikamarupb.GetRecordRequest, ) (*shikamarupb.GetRecordResponse, error)
GetRecord gets a record from the data store related to an entity
func (*GrpcServer) ListRecords ¶ added in v1.9.0
func (gs *GrpcServer) ListRecords( ctx context.Context, req *shikamarupb.ListRecordsRequest, ) (*shikamarupb.ListRecordsResponse, error)
ListRecords gets a record list from the data store related to an entity
func (*GrpcServer) UpdateRecord ¶ added in v1.6.0
func (gs *GrpcServer) UpdateRecord( ctx context.Context, req *shikamarupb.UpdateRecordRequest, ) (*shikamarupb.UpdateRecordResponse, error)
UpdateRecord updates a record in the data store related to an entity
Source Files ¶
Click to show internal directories.
Click to hide internal directories.