server

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2021 License: BSD-2-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	api.UnimplementedApiServer
	// contains filtered or unexported fields
}

Server is the main API server implementation.

func New

func New(config configuration.ServerConfiguration, db *gorm.DB, logger zerolog.Logger) *Server

New creates a new Server.

func (*Server) CreateFeed

CreateFeed creates a new Feed.

func (*Server) CreateFeeds

CreateFeeds creates new Feeds.

func (*Server) CreateQueryTwitterSource

CreateQueryTwitterSource creates a new Query Twitter Source.

func (*Server) CreateQueryTwitterSources

CreateQueryTwitterSources creates new Query Twitter Sources.

func (*Server) CreateUserTwitterSource

CreateUserTwitterSource creates a new User Twitter Source.

func (*Server) CreateUserTwitterSources

CreateUserTwitterSources creates new User Twitter Sources.

func (*Server) DeleteFeed

DeleteFeed deletes a Feed.

func (*Server) DeleteQueryTwitterSource

DeleteQueryTwitterSource deletes a Query Twitter Source.

func (*Server) DeleteUserTwitterSource

DeleteUserTwitterSource deletes a User Twitter Source.

func (*Server) GetFeed

func (s *Server) GetFeed(_ context.Context, req *api.GetFeedRequest) (*api.GetFeedResponse, error)

GetFeed gets a Feed.

func (*Server) GetFeeds

GetFeeds gets all Feeds.

func (*Server) GetQueryTwitterSource

GetQueryTwitterSource gets all Query Twitter Sources.

func (*Server) GetQueryTwitterSources

GetQueryTwitterSources gets all Query Twitter Sources.

func (*Server) GetUserTwitterSource

GetUserTwitterSource gets a User Twitter Source.

func (*Server) GetUserTwitterSources

GetUserTwitterSources gets all User Twitter Sources.

func (*Server) Run

func (s *Server) Run() error

Run runs the server according to its configuration.

func (*Server) UpdateFeed

UpdateFeed updates a Feed.

func (*Server) UpdateQueryTwitterSource

UpdateQueryTwitterSource updates a Query Twitter Source.

func (*Server) UpdateUserTwitterSource

UpdateUserTwitterSource updates a User Twitter Source.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL