Documentation
¶
Index ¶
- type Server
- func (s *Server) BroadcastNews(ctx context.Context, req *connect.Request[miscv1.BroadcastNewsRequest]) (*connect.Response[miscv1.BroadcastNewsResponse], error)
- func (s *Server) CreateTopic(ctx context.Context, req *connect.Request[miscv1.CreateTopicRequest]) (*connect.Response[miscv1.CreateTopicResponse], error)
- func (s *Server) ListCoinNews(ctx context.Context, req *connect.Request[miscv1.ListCoinNewsRequest]) (*connect.Response[miscv1.ListCoinNewsResponse], error)
- func (s *Server) ListOPReturn(ctx context.Context, req *connect.Request[emptypb.Empty]) (*connect.Response[miscv1.ListOPReturnResponse], error)
- func (s *Server) ListTimestamps(ctx context.Context, req *connect.Request[emptypb.Empty]) (*connect.Response[miscv1.ListTimestampsResponse], error)
- func (s *Server) ListTopics(ctx context.Context, req *connect.Request[emptypb.Empty]) (*connect.Response[miscv1.ListTopicsResponse], error)
- func (s *Server) TimestampFile(ctx context.Context, req *connect.Request[miscv1.TimestampFileRequest]) (*connect.Response[miscv1.TimestampFileResponse], error)
- func (s *Server) VerifyTimestamp(ctx context.Context, req *connect.Request[miscv1.VerifyTimestampRequest]) (*connect.Response[miscv1.VerifyTimestampResponse], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func New ¶
func New( database *sql.DB, wallet *service.Service[validatorrpc.WalletServiceClient], timestampEngine *engines.TimestampEngine, bitcoind *service.Service[corerpc.BitcoinServiceClient], ) *Server
New creates a new misc Server. Misc is a horrible name, but can't think of anything else just yet.
func (*Server) BroadcastNews ¶
func (s *Server) BroadcastNews(ctx context.Context, req *connect.Request[miscv1.BroadcastNewsRequest]) (*connect.Response[miscv1.BroadcastNewsResponse], error)
BroadcastNews implements miscv1connect.MiscServiceHandler.
func (*Server) CreateTopic ¶
func (s *Server) CreateTopic(ctx context.Context, req *connect.Request[miscv1.CreateTopicRequest]) (*connect.Response[miscv1.CreateTopicResponse], error)
CreateTopic implements miscv1connect.MiscServiceHandler.
func (*Server) ListCoinNews ¶
func (s *Server) ListCoinNews(ctx context.Context, req *connect.Request[miscv1.ListCoinNewsRequest]) (*connect.Response[miscv1.ListCoinNewsResponse], error)
ListCoinNews implements miscv1connect.MiscServiceHandler.
func (*Server) ListOPReturn ¶
func (s *Server) ListOPReturn(ctx context.Context, req *connect.Request[emptypb.Empty]) (*connect.Response[miscv1.ListOPReturnResponse], error)
ListOPReturn implements miscv1connect.MiscServiceHandler.
func (*Server) ListTimestamps ¶
func (s *Server) ListTimestamps(ctx context.Context, req *connect.Request[emptypb.Empty]) (*connect.Response[miscv1.ListTimestampsResponse], error)
ListTimestamps implements miscv1connect.MiscServiceHandler.
func (*Server) ListTopics ¶
func (s *Server) ListTopics(ctx context.Context, req *connect.Request[emptypb.Empty]) (*connect.Response[miscv1.ListTopicsResponse], error)
ListTopics implements miscv1connect.MiscServiceHandler.
func (*Server) TimestampFile ¶
func (s *Server) TimestampFile(ctx context.Context, req *connect.Request[miscv1.TimestampFileRequest]) (*connect.Response[miscv1.TimestampFileResponse], error)
TimestampFile implements miscv1connect.MiscServiceHandler.
func (*Server) VerifyTimestamp ¶
func (s *Server) VerifyTimestamp(ctx context.Context, req *connect.Request[miscv1.VerifyTimestampRequest]) (*connect.Response[miscv1.VerifyTimestampResponse], error)
VerifyTimestamp implements miscv1connect.MiscServiceHandler.
Click to show internal directories.
Click to hide internal directories.