github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/service/notify_simplefs.go (about)

     1  // Copyright 2015 Keybase, Inc. All rights reserved. Use of
     2  // this source code is governed by the included BSD license.
     3  
     4  package service
     5  
     6  import (
     7  	"golang.org/x/net/context"
     8  
     9  	"github.com/keybase/client/go/chat/globals"
    10  	"github.com/keybase/client/go/libkb"
    11  	keybase1 "github.com/keybase/client/go/protocol/keybase1"
    12  	"github.com/keybase/go-framed-msgpack-rpc/rpc"
    13  )
    14  
    15  type NotifySimpleFSHandler struct {
    16  	*BaseHandler
    17  	libkb.Contextified
    18  	globals.ChatContextified
    19  	service *Service
    20  }
    21  
    22  func NewNotifySimpleFSHandler(xp rpc.Transporter, g *libkb.GlobalContext, cg *globals.ChatContext, service *Service) *NotifySimpleFSHandler {
    23  	return &NotifySimpleFSHandler{
    24  		BaseHandler:      NewBaseHandler(g, xp),
    25  		Contextified:     libkb.NewContextified(g),
    26  		ChatContextified: globals.NewChatContextified(cg),
    27  		service:          service,
    28  	}
    29  }
    30  
    31  func (h *NotifySimpleFSHandler) SimpleFSArchiveStatusChanged(ctx context.Context, status keybase1.SimpleFSArchiveStatus) error {
    32  	h.G().NotifyRouter.HandleSimpleFSArchiveStatusChanged(ctx, status)
    33  	return nil
    34  }