| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728 |
- // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
- // versions:
- // - protoc-gen-go-grpc v1.5.1
- // - protoc (unknown)
- // source: olivetin/api/v1/olivetin.proto
- package apiv1
- import (
- context "context"
- httpbody "google.golang.org/genproto/googleapis/api/httpbody"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- )
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- // Requires gRPC-Go v1.64.0 or later.
- const _ = grpc.SupportPackageIsVersion9
- const (
- OliveTinApiService_GetDashboardComponents_FullMethodName = "/olivetin.api.v1.OliveTinApiService/GetDashboardComponents"
- OliveTinApiService_StartAction_FullMethodName = "/olivetin.api.v1.OliveTinApiService/StartAction"
- OliveTinApiService_StartActionAndWait_FullMethodName = "/olivetin.api.v1.OliveTinApiService/StartActionAndWait"
- OliveTinApiService_StartActionByGet_FullMethodName = "/olivetin.api.v1.OliveTinApiService/StartActionByGet"
- OliveTinApiService_StartActionByGetAndWait_FullMethodName = "/olivetin.api.v1.OliveTinApiService/StartActionByGetAndWait"
- OliveTinApiService_KillAction_FullMethodName = "/olivetin.api.v1.OliveTinApiService/KillAction"
- OliveTinApiService_ExecutionStatus_FullMethodName = "/olivetin.api.v1.OliveTinApiService/ExecutionStatus"
- OliveTinApiService_GetLogs_FullMethodName = "/olivetin.api.v1.OliveTinApiService/GetLogs"
- OliveTinApiService_ValidateArgumentType_FullMethodName = "/olivetin.api.v1.OliveTinApiService/ValidateArgumentType"
- OliveTinApiService_WhoAmI_FullMethodName = "/olivetin.api.v1.OliveTinApiService/WhoAmI"
- OliveTinApiService_SosReport_FullMethodName = "/olivetin.api.v1.OliveTinApiService/SosReport"
- OliveTinApiService_DumpVars_FullMethodName = "/olivetin.api.v1.OliveTinApiService/DumpVars"
- OliveTinApiService_DumpPublicIdActionMap_FullMethodName = "/olivetin.api.v1.OliveTinApiService/DumpPublicIdActionMap"
- OliveTinApiService_GetReadyz_FullMethodName = "/olivetin.api.v1.OliveTinApiService/GetReadyz"
- OliveTinApiService_LocalUserLogin_FullMethodName = "/olivetin.api.v1.OliveTinApiService/LocalUserLogin"
- OliveTinApiService_PasswordHash_FullMethodName = "/olivetin.api.v1.OliveTinApiService/PasswordHash"
- OliveTinApiService_Logout_FullMethodName = "/olivetin.api.v1.OliveTinApiService/Logout"
- )
- // OliveTinApiServiceClient is the client API for OliveTinApiService 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.
- type OliveTinApiServiceClient interface {
- GetDashboardComponents(ctx context.Context, in *GetDashboardComponentsRequest, opts ...grpc.CallOption) (*GetDashboardComponentsResponse, error)
- StartAction(ctx context.Context, in *StartActionRequest, opts ...grpc.CallOption) (*StartActionResponse, error)
- StartActionAndWait(ctx context.Context, in *StartActionAndWaitRequest, opts ...grpc.CallOption) (*StartActionAndWaitResponse, error)
- StartActionByGet(ctx context.Context, in *StartActionByGetRequest, opts ...grpc.CallOption) (*StartActionByGetResponse, error)
- StartActionByGetAndWait(ctx context.Context, in *StartActionByGetAndWaitRequest, opts ...grpc.CallOption) (*StartActionByGetAndWaitResponse, error)
- KillAction(ctx context.Context, in *KillActionRequest, opts ...grpc.CallOption) (*KillActionResponse, error)
- ExecutionStatus(ctx context.Context, in *ExecutionStatusRequest, opts ...grpc.CallOption) (*ExecutionStatusResponse, error)
- GetLogs(ctx context.Context, in *GetLogsRequest, opts ...grpc.CallOption) (*GetLogsResponse, error)
- ValidateArgumentType(ctx context.Context, in *ValidateArgumentTypeRequest, opts ...grpc.CallOption) (*ValidateArgumentTypeResponse, error)
- WhoAmI(ctx context.Context, in *WhoAmIRequest, opts ...grpc.CallOption) (*WhoAmIResponse, error)
- SosReport(ctx context.Context, in *SosReportRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error)
- DumpVars(ctx context.Context, in *DumpVarsRequest, opts ...grpc.CallOption) (*DumpVarsResponse, error)
- DumpPublicIdActionMap(ctx context.Context, in *DumpPublicIdActionMapRequest, opts ...grpc.CallOption) (*DumpPublicIdActionMapResponse, error)
- GetReadyz(ctx context.Context, in *GetReadyzRequest, opts ...grpc.CallOption) (*GetReadyzResponse, error)
- LocalUserLogin(ctx context.Context, in *LocalUserLoginRequest, opts ...grpc.CallOption) (*LocalUserLoginResponse, error)
- PasswordHash(ctx context.Context, in *PasswordHashRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error)
- Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error)
- }
- type oliveTinApiServiceClient struct {
- cc grpc.ClientConnInterface
- }
- func NewOliveTinApiServiceClient(cc grpc.ClientConnInterface) OliveTinApiServiceClient {
- return &oliveTinApiServiceClient{cc}
- }
- func (c *oliveTinApiServiceClient) GetDashboardComponents(ctx context.Context, in *GetDashboardComponentsRequest, opts ...grpc.CallOption) (*GetDashboardComponentsResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(GetDashboardComponentsResponse)
- err := c.cc.Invoke(ctx, OliveTinApiService_GetDashboardComponents_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *oliveTinApiServiceClient) StartAction(ctx context.Context, in *StartActionRequest, opts ...grpc.CallOption) (*StartActionResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(StartActionResponse)
- err := c.cc.Invoke(ctx, OliveTinApiService_StartAction_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *oliveTinApiServiceClient) StartActionAndWait(ctx context.Context, in *StartActionAndWaitRequest, opts ...grpc.CallOption) (*StartActionAndWaitResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(StartActionAndWaitResponse)
- err := c.cc.Invoke(ctx, OliveTinApiService_StartActionAndWait_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *oliveTinApiServiceClient) StartActionByGet(ctx context.Context, in *StartActionByGetRequest, opts ...grpc.CallOption) (*StartActionByGetResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(StartActionByGetResponse)
- err := c.cc.Invoke(ctx, OliveTinApiService_StartActionByGet_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *oliveTinApiServiceClient) StartActionByGetAndWait(ctx context.Context, in *StartActionByGetAndWaitRequest, opts ...grpc.CallOption) (*StartActionByGetAndWaitResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(StartActionByGetAndWaitResponse)
- err := c.cc.Invoke(ctx, OliveTinApiService_StartActionByGetAndWait_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *oliveTinApiServiceClient) KillAction(ctx context.Context, in *KillActionRequest, opts ...grpc.CallOption) (*KillActionResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(KillActionResponse)
- err := c.cc.Invoke(ctx, OliveTinApiService_KillAction_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *oliveTinApiServiceClient) ExecutionStatus(ctx context.Context, in *ExecutionStatusRequest, opts ...grpc.CallOption) (*ExecutionStatusResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ExecutionStatusResponse)
- err := c.cc.Invoke(ctx, OliveTinApiService_ExecutionStatus_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *oliveTinApiServiceClient) GetLogs(ctx context.Context, in *GetLogsRequest, opts ...grpc.CallOption) (*GetLogsResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(GetLogsResponse)
- err := c.cc.Invoke(ctx, OliveTinApiService_GetLogs_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *oliveTinApiServiceClient) ValidateArgumentType(ctx context.Context, in *ValidateArgumentTypeRequest, opts ...grpc.CallOption) (*ValidateArgumentTypeResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ValidateArgumentTypeResponse)
- err := c.cc.Invoke(ctx, OliveTinApiService_ValidateArgumentType_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *oliveTinApiServiceClient) WhoAmI(ctx context.Context, in *WhoAmIRequest, opts ...grpc.CallOption) (*WhoAmIResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(WhoAmIResponse)
- err := c.cc.Invoke(ctx, OliveTinApiService_WhoAmI_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *oliveTinApiServiceClient) SosReport(ctx context.Context, in *SosReportRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(httpbody.HttpBody)
- err := c.cc.Invoke(ctx, OliveTinApiService_SosReport_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *oliveTinApiServiceClient) DumpVars(ctx context.Context, in *DumpVarsRequest, opts ...grpc.CallOption) (*DumpVarsResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(DumpVarsResponse)
- err := c.cc.Invoke(ctx, OliveTinApiService_DumpVars_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *oliveTinApiServiceClient) DumpPublicIdActionMap(ctx context.Context, in *DumpPublicIdActionMapRequest, opts ...grpc.CallOption) (*DumpPublicIdActionMapResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(DumpPublicIdActionMapResponse)
- err := c.cc.Invoke(ctx, OliveTinApiService_DumpPublicIdActionMap_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *oliveTinApiServiceClient) GetReadyz(ctx context.Context, in *GetReadyzRequest, opts ...grpc.CallOption) (*GetReadyzResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(GetReadyzResponse)
- err := c.cc.Invoke(ctx, OliveTinApiService_GetReadyz_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *oliveTinApiServiceClient) LocalUserLogin(ctx context.Context, in *LocalUserLoginRequest, opts ...grpc.CallOption) (*LocalUserLoginResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(LocalUserLoginResponse)
- err := c.cc.Invoke(ctx, OliveTinApiService_LocalUserLogin_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *oliveTinApiServiceClient) PasswordHash(ctx context.Context, in *PasswordHashRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(httpbody.HttpBody)
- err := c.cc.Invoke(ctx, OliveTinApiService_PasswordHash_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *oliveTinApiServiceClient) Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(httpbody.HttpBody)
- err := c.cc.Invoke(ctx, OliveTinApiService_Logout_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // OliveTinApiServiceServer is the server API for OliveTinApiService service.
- // All implementations should embed UnimplementedOliveTinApiServiceServer
- // for forward compatibility.
- type OliveTinApiServiceServer interface {
- GetDashboardComponents(context.Context, *GetDashboardComponentsRequest) (*GetDashboardComponentsResponse, error)
- StartAction(context.Context, *StartActionRequest) (*StartActionResponse, error)
- StartActionAndWait(context.Context, *StartActionAndWaitRequest) (*StartActionAndWaitResponse, error)
- StartActionByGet(context.Context, *StartActionByGetRequest) (*StartActionByGetResponse, error)
- StartActionByGetAndWait(context.Context, *StartActionByGetAndWaitRequest) (*StartActionByGetAndWaitResponse, error)
- KillAction(context.Context, *KillActionRequest) (*KillActionResponse, error)
- ExecutionStatus(context.Context, *ExecutionStatusRequest) (*ExecutionStatusResponse, error)
- GetLogs(context.Context, *GetLogsRequest) (*GetLogsResponse, error)
- ValidateArgumentType(context.Context, *ValidateArgumentTypeRequest) (*ValidateArgumentTypeResponse, error)
- WhoAmI(context.Context, *WhoAmIRequest) (*WhoAmIResponse, error)
- SosReport(context.Context, *SosReportRequest) (*httpbody.HttpBody, error)
- DumpVars(context.Context, *DumpVarsRequest) (*DumpVarsResponse, error)
- DumpPublicIdActionMap(context.Context, *DumpPublicIdActionMapRequest) (*DumpPublicIdActionMapResponse, error)
- GetReadyz(context.Context, *GetReadyzRequest) (*GetReadyzResponse, error)
- LocalUserLogin(context.Context, *LocalUserLoginRequest) (*LocalUserLoginResponse, error)
- PasswordHash(context.Context, *PasswordHashRequest) (*httpbody.HttpBody, error)
- Logout(context.Context, *LogoutRequest) (*httpbody.HttpBody, error)
- }
- // UnimplementedOliveTinApiServiceServer should be embedded to have
- // forward compatible implementations.
- //
- // NOTE: this should be embedded by value instead of pointer to avoid a nil
- // pointer dereference when methods are called.
- type UnimplementedOliveTinApiServiceServer struct{}
- func (UnimplementedOliveTinApiServiceServer) GetDashboardComponents(context.Context, *GetDashboardComponentsRequest) (*GetDashboardComponentsResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetDashboardComponents not implemented")
- }
- func (UnimplementedOliveTinApiServiceServer) StartAction(context.Context, *StartActionRequest) (*StartActionResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method StartAction not implemented")
- }
- func (UnimplementedOliveTinApiServiceServer) StartActionAndWait(context.Context, *StartActionAndWaitRequest) (*StartActionAndWaitResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method StartActionAndWait not implemented")
- }
- func (UnimplementedOliveTinApiServiceServer) StartActionByGet(context.Context, *StartActionByGetRequest) (*StartActionByGetResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method StartActionByGet not implemented")
- }
- func (UnimplementedOliveTinApiServiceServer) StartActionByGetAndWait(context.Context, *StartActionByGetAndWaitRequest) (*StartActionByGetAndWaitResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method StartActionByGetAndWait not implemented")
- }
- func (UnimplementedOliveTinApiServiceServer) KillAction(context.Context, *KillActionRequest) (*KillActionResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method KillAction not implemented")
- }
- func (UnimplementedOliveTinApiServiceServer) ExecutionStatus(context.Context, *ExecutionStatusRequest) (*ExecutionStatusResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ExecutionStatus not implemented")
- }
- func (UnimplementedOliveTinApiServiceServer) GetLogs(context.Context, *GetLogsRequest) (*GetLogsResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetLogs not implemented")
- }
- func (UnimplementedOliveTinApiServiceServer) ValidateArgumentType(context.Context, *ValidateArgumentTypeRequest) (*ValidateArgumentTypeResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ValidateArgumentType not implemented")
- }
- func (UnimplementedOliveTinApiServiceServer) WhoAmI(context.Context, *WhoAmIRequest) (*WhoAmIResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method WhoAmI not implemented")
- }
- func (UnimplementedOliveTinApiServiceServer) SosReport(context.Context, *SosReportRequest) (*httpbody.HttpBody, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SosReport not implemented")
- }
- func (UnimplementedOliveTinApiServiceServer) DumpVars(context.Context, *DumpVarsRequest) (*DumpVarsResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DumpVars not implemented")
- }
- func (UnimplementedOliveTinApiServiceServer) DumpPublicIdActionMap(context.Context, *DumpPublicIdActionMapRequest) (*DumpPublicIdActionMapResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DumpPublicIdActionMap not implemented")
- }
- func (UnimplementedOliveTinApiServiceServer) GetReadyz(context.Context, *GetReadyzRequest) (*GetReadyzResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetReadyz not implemented")
- }
- func (UnimplementedOliveTinApiServiceServer) LocalUserLogin(context.Context, *LocalUserLoginRequest) (*LocalUserLoginResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method LocalUserLogin not implemented")
- }
- func (UnimplementedOliveTinApiServiceServer) PasswordHash(context.Context, *PasswordHashRequest) (*httpbody.HttpBody, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PasswordHash not implemented")
- }
- func (UnimplementedOliveTinApiServiceServer) Logout(context.Context, *LogoutRequest) (*httpbody.HttpBody, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Logout not implemented")
- }
- func (UnimplementedOliveTinApiServiceServer) testEmbeddedByValue() {}
- // UnsafeOliveTinApiServiceServer may be embedded to opt out of forward compatibility for this service.
- // Use of this interface is not recommended, as added methods to OliveTinApiServiceServer will
- // result in compilation errors.
- type UnsafeOliveTinApiServiceServer interface {
- mustEmbedUnimplementedOliveTinApiServiceServer()
- }
- func RegisterOliveTinApiServiceServer(s grpc.ServiceRegistrar, srv OliveTinApiServiceServer) {
- // If the following call pancis, it indicates UnimplementedOliveTinApiServiceServer was
- // embedded by pointer and is nil. This will cause panics if an
- // unimplemented method is ever invoked, so we test this at initialization
- // time to prevent it from happening at runtime later due to I/O.
- if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
- t.testEmbeddedByValue()
- }
- s.RegisterService(&OliveTinApiService_ServiceDesc, srv)
- }
- func _OliveTinApiService_GetDashboardComponents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetDashboardComponentsRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OliveTinApiServiceServer).GetDashboardComponents(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: OliveTinApiService_GetDashboardComponents_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OliveTinApiServiceServer).GetDashboardComponents(ctx, req.(*GetDashboardComponentsRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _OliveTinApiService_StartAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(StartActionRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OliveTinApiServiceServer).StartAction(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: OliveTinApiService_StartAction_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OliveTinApiServiceServer).StartAction(ctx, req.(*StartActionRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _OliveTinApiService_StartActionAndWait_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(StartActionAndWaitRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OliveTinApiServiceServer).StartActionAndWait(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: OliveTinApiService_StartActionAndWait_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OliveTinApiServiceServer).StartActionAndWait(ctx, req.(*StartActionAndWaitRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _OliveTinApiService_StartActionByGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(StartActionByGetRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OliveTinApiServiceServer).StartActionByGet(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: OliveTinApiService_StartActionByGet_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OliveTinApiServiceServer).StartActionByGet(ctx, req.(*StartActionByGetRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _OliveTinApiService_StartActionByGetAndWait_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(StartActionByGetAndWaitRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OliveTinApiServiceServer).StartActionByGetAndWait(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: OliveTinApiService_StartActionByGetAndWait_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OliveTinApiServiceServer).StartActionByGetAndWait(ctx, req.(*StartActionByGetAndWaitRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _OliveTinApiService_KillAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(KillActionRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OliveTinApiServiceServer).KillAction(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: OliveTinApiService_KillAction_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OliveTinApiServiceServer).KillAction(ctx, req.(*KillActionRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _OliveTinApiService_ExecutionStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ExecutionStatusRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OliveTinApiServiceServer).ExecutionStatus(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: OliveTinApiService_ExecutionStatus_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OliveTinApiServiceServer).ExecutionStatus(ctx, req.(*ExecutionStatusRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _OliveTinApiService_GetLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetLogsRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OliveTinApiServiceServer).GetLogs(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: OliveTinApiService_GetLogs_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OliveTinApiServiceServer).GetLogs(ctx, req.(*GetLogsRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _OliveTinApiService_ValidateArgumentType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ValidateArgumentTypeRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OliveTinApiServiceServer).ValidateArgumentType(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: OliveTinApiService_ValidateArgumentType_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OliveTinApiServiceServer).ValidateArgumentType(ctx, req.(*ValidateArgumentTypeRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _OliveTinApiService_WhoAmI_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(WhoAmIRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OliveTinApiServiceServer).WhoAmI(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: OliveTinApiService_WhoAmI_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OliveTinApiServiceServer).WhoAmI(ctx, req.(*WhoAmIRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _OliveTinApiService_SosReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SosReportRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OliveTinApiServiceServer).SosReport(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: OliveTinApiService_SosReport_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OliveTinApiServiceServer).SosReport(ctx, req.(*SosReportRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _OliveTinApiService_DumpVars_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DumpVarsRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OliveTinApiServiceServer).DumpVars(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: OliveTinApiService_DumpVars_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OliveTinApiServiceServer).DumpVars(ctx, req.(*DumpVarsRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _OliveTinApiService_DumpPublicIdActionMap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DumpPublicIdActionMapRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OliveTinApiServiceServer).DumpPublicIdActionMap(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: OliveTinApiService_DumpPublicIdActionMap_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OliveTinApiServiceServer).DumpPublicIdActionMap(ctx, req.(*DumpPublicIdActionMapRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _OliveTinApiService_GetReadyz_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetReadyzRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OliveTinApiServiceServer).GetReadyz(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: OliveTinApiService_GetReadyz_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OliveTinApiServiceServer).GetReadyz(ctx, req.(*GetReadyzRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _OliveTinApiService_LocalUserLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(LocalUserLoginRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OliveTinApiServiceServer).LocalUserLogin(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: OliveTinApiService_LocalUserLogin_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OliveTinApiServiceServer).LocalUserLogin(ctx, req.(*LocalUserLoginRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _OliveTinApiService_PasswordHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(PasswordHashRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OliveTinApiServiceServer).PasswordHash(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: OliveTinApiService_PasswordHash_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OliveTinApiServiceServer).PasswordHash(ctx, req.(*PasswordHashRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _OliveTinApiService_Logout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(LogoutRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OliveTinApiServiceServer).Logout(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: OliveTinApiService_Logout_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OliveTinApiServiceServer).Logout(ctx, req.(*LogoutRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- // OliveTinApiService_ServiceDesc is the grpc.ServiceDesc for OliveTinApiService service.
- // It's only intended for direct use with grpc.RegisterService,
- // and not to be introspected or modified (even as a copy)
- var OliveTinApiService_ServiceDesc = grpc.ServiceDesc{
- ServiceName: "olivetin.api.v1.OliveTinApiService",
- HandlerType: (*OliveTinApiServiceServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "GetDashboardComponents",
- Handler: _OliveTinApiService_GetDashboardComponents_Handler,
- },
- {
- MethodName: "StartAction",
- Handler: _OliveTinApiService_StartAction_Handler,
- },
- {
- MethodName: "StartActionAndWait",
- Handler: _OliveTinApiService_StartActionAndWait_Handler,
- },
- {
- MethodName: "StartActionByGet",
- Handler: _OliveTinApiService_StartActionByGet_Handler,
- },
- {
- MethodName: "StartActionByGetAndWait",
- Handler: _OliveTinApiService_StartActionByGetAndWait_Handler,
- },
- {
- MethodName: "KillAction",
- Handler: _OliveTinApiService_KillAction_Handler,
- },
- {
- MethodName: "ExecutionStatus",
- Handler: _OliveTinApiService_ExecutionStatus_Handler,
- },
- {
- MethodName: "GetLogs",
- Handler: _OliveTinApiService_GetLogs_Handler,
- },
- {
- MethodName: "ValidateArgumentType",
- Handler: _OliveTinApiService_ValidateArgumentType_Handler,
- },
- {
- MethodName: "WhoAmI",
- Handler: _OliveTinApiService_WhoAmI_Handler,
- },
- {
- MethodName: "SosReport",
- Handler: _OliveTinApiService_SosReport_Handler,
- },
- {
- MethodName: "DumpVars",
- Handler: _OliveTinApiService_DumpVars_Handler,
- },
- {
- MethodName: "DumpPublicIdActionMap",
- Handler: _OliveTinApiService_DumpPublicIdActionMap_Handler,
- },
- {
- MethodName: "GetReadyz",
- Handler: _OliveTinApiService_GetReadyz_Handler,
- },
- {
- MethodName: "LocalUserLogin",
- Handler: _OliveTinApiService_LocalUserLogin_Handler,
- },
- {
- MethodName: "PasswordHash",
- Handler: _OliveTinApiService_PasswordHash_Handler,
- },
- {
- MethodName: "Logout",
- Handler: _OliveTinApiService_Logout_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "olivetin/api/v1/olivetin.proto",
- }
|